/* ==========================================================================
   Easave Landing Page Styles
   ========================================================================== */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Slate */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-850: #172033;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Emerald */
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  /* Amber */
  --amber-500: #f59e0b;

  /* Red */
  --red-500: #ef4444;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--slate-900);
  color: var(--slate-50);
  line-height: 1.6;
}

a {
  color: var(--emerald-500);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--emerald-400);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--slate-800);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--slate-50);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--slate-300);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--emerald-500);
}

.cta-btn {
  background: var(--emerald-500);
  color: var(--slate-900) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}

.cta-btn:hover {
  background: var(--emerald-400);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--slate-50);
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  background-color: var(--slate-900);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.4) 0%,
    rgba(15, 23, 42, 0.7) 50%,
    rgba(15, 23, 42, 1) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: var(--emerald-500);
}

.hero-text p {
  font-size: 20px;
  color: var(--slate-400);
  margin-bottom: 32px;
  max-width: 500px;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-500);
  color: var(--emerald-400);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.free-badge svg {
  width: 18px;
  height: 18px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background: var(--emerald-500);
  color: var(--slate-900);
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--emerald-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: var(--slate-800);
  color: var(--slate-50);
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--slate-700);
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--slate-700);
  border-color: var(--slate-600);
}

/* ==========================================================================
   Store Buttons
   ========================================================================== */
.store-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  text-decoration: none;
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-text span:first-child {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

.store-btn-text span:last-child {
  font-size: 16px;
  font-weight: 600;
}

.store-btn.google-play,
.store-btn.app-store {
  background: #000;
  color: #fff;
  border: 2px solid #333;
  position: relative;
}

.store-btn.google-play:hover,
.store-btn.app-store:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.store-btn .beta-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--amber-500);
  color: var(--slate-900);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.web-link {
  margin-top: 8px;
}

.web-link a {
  color: var(--slate-400);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.web-link a:hover {
  color: var(--emerald-500);
}

/* ==========================================================================
   Phone Mockup & Carousel
   ========================================================================== */
.mockup {
  width: 316px;
  height: 691px;
  background: var(--slate-800);
  border-radius: 40px;
  border: 4px solid var(--slate-700);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.phone-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.phone-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.phone-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-carousel-dots {
  display: none !important;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  gap: 8px;
  z-index: 10;
}

.phone-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.phone-carousel-dot.active {
  background: var(--emerald-500);
  width: 24px;
  border-radius: 4px;
}

.mockup-header {
  background: var(--slate-850);
  padding: 48px 24px 24px;
  text-align: center;
}

.mockup-header .greeting {
  color: var(--slate-400);
  font-size: 14px;
}

.mockup-header .amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--emerald-500);
  margin-top: 8px;
}

.mockup-header .label {
  color: var(--slate-400);
  font-size: 13px;
  margin-top: 4px;
}

.mockup-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-card {
  background: var(--slate-850);
  border-radius: 16px;
  padding: 16px;
}

.mockup-card-title {
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 8px;
}

.mockup-card-value {
  font-size: 24px;
  font-weight: 600;
}

.mockup-card-value.positive {
  color: var(--emerald-500);
}

.mockup-card-value.warning {
  color: var(--amber-500);
}

.mockup-progress {
  height: 8px;
  background: var(--slate-700);
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.mockup-progress-bar {
  height: 100%;
  background: var(--emerald-500);
  border-radius: 4px;
  width: 65%;
}

/* ==========================================================================
   Section Header (Shared)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--slate-400);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 120px 0;
  background: var(--slate-900);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--slate-850);
  border: 1px solid var(--slate-800);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--emerald-500);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon .material-icons-outlined {
  font-size: 28px;
  color: var(--emerald-500);
}

.feature-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--slate-400);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Plans Section
   ========================================================================== */
.plans {
  padding: 120px 0;
  background: var(--slate-850);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.plan-card {
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: var(--slate-600);
}

.plan-card.recommended {
  border-color: var(--emerald-500);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-500);
  color: var(--slate-900);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.plan-icon {
  margin-bottom: 16px;
}

.plan-icon .material-icons-outlined {
  font-size: 40px;
  color: var(--emerald-500);
}

.plan-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.plan-percent {
  font-size: 36px;
  font-weight: 700;
  color: var(--emerald-500);
  margin-bottom: 8px;
}

.plan-card p {
  color: var(--slate-400);
  font-size: 14px;
}

/* ==========================================================================
   Security Section
   ========================================================================== */
.security {
  padding: 120px 0;
  background: var(--slate-900);
}

.security-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.security-text h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}

.security-text p {
  color: var(--slate-400);
  font-size: 18px;
  margin-bottom: 32px;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--slate-850);
  border-radius: 12px;
}

.security-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security-item-icon .material-icons-outlined {
  font-size: 24px;
  color: var(--emerald-500);
}

.security-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.security-item p {
  color: var(--slate-400);
  font-size: 14px;
  margin: 0;
}

.security-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.shield-icon {
  width: 200px;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--emerald-500) 0%,
    var(--emerald-600) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 32px 64px rgba(16, 185, 129, 0.3);
}

.shield-icon .material-icons-outlined {
  font-size: 80px;
  color: white;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  padding: 120px 0;
  background: linear-gradient(
    135deg,
    var(--emerald-600) 0%,
    var(--emerald-500) 100%
  );
  text-align: center;
}

.cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  color: var(--slate-800);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-dark {
  background: var(--slate-900);
  color: var(--slate-50);
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.cta .btn-dark:hover {
  background: var(--slate-800);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--slate-950);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 14px;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-300);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--emerald-500);
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--slate-500);
  font-size: 14px;
}

.footer-bottom .social-links {
  display: flex;
  gap: 16px;
}

.footer-bottom .social-links a {
  color: var(--slate-400);
  font-size: 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .mockup {
    width: 280px;
    height: 560px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .security-visual {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.recommended {
    transform: none;
  }

  .security-text h2 {
    font-size: 32px;
  }

  .cta h2 {
    font-size: 32px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   Beta Modal
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: var(--slate-700);
  color: var(--slate-200);
}

.modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--slate-50);
}

.modal-description {
  color: var(--slate-300);
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-300);
}

.form-input {
  background-color: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--slate-50);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.submit-btn {
  background-color: var(--emerald-500);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background-color: var(--emerald-600);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.grecaptcha-badge {
  visibility: hidden;
}

.success-message {
  text-align: center;
  padding: 24px 0;
  display: none;
}

.success-icon {
  font-size: 48px;
  color: var(--emerald-500);
  margin-bottom: 16px;
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background-color: #1e293b;
  border-top: 1px solid #334155;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  animation: slideUpBanner 0.3s ease-out;
}

@keyframes slideUpBanner {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner__content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__content p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner__content p a {
  color: #10b981;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
}

.cookie-banner__btn--accept {
  background-color: #10b981;
  color: #ffffff;
}

.cookie-banner__btn--accept:hover {
  background-color: #059669;
}

.cookie-banner__btn--reject {
  background-color: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}

.cookie-banner__btn--reject:hover {
  background-color: #334155;
  color: #f8fafc;
}

@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}
