/* ==========================================================================
   Background Landing Page
   Design: Refined organic aesthetic with earthy tones and subtle depth
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Brand Colors from app/src/theme.js
   -------------------------------------------------------------------------- */
:root {
  /* Primary palette */
  --primary: #384134;
  --primary-light: #55634f;
  --primary-dark: #2a312a;

  /* Accent */
  --accent: #e1f782;
  --accent-dark: #c4d96e;

  /* Neutrals */
  --bg-page: #f7f8f5;
  --bg-paper: #ffffff;
  --bg-warm: #f0efe8;
  --bg-muted: #e8ebe6;

  /* Text */
  --text-primary: #384134;
  --text-secondary: #55634f;
  --text-muted: #7a8575;

  /* Borders */
  --border-light: #e4e6e2;
  --border-medium: #d4d8d2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(56, 65, 52, 0.04);
  --shadow-md: 0 4px 12px rgba(56, 65, 52, 0.08);
  --shadow-lg: 0 12px 40px rgba(56, 65, 52, 0.12);
  --shadow-xl: 0 24px 64px rgba(56, 65, 52, 0.16);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Grain Overlay - Subtle texture for organic feel
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-signin {
  padding: 0.6rem 1.25rem;
  color: var(--text-primary) !important;
  font-weight: 500;
  border: 1.5px solid var(--border-medium);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-signin:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

.nav-cta {
  margin-left: calc(var(--space-lg) * -1 + 0.5rem);
  padding: 0.6rem 1.25rem;
  background: var(--primary);
  color: white !important;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(56, 65, 52, 0);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(56, 65, 52, 0.08);
}

.btn-primary svg {
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: var(--bg-muted);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
  width: 100%;
  justify-content: center;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--bg-muted);
}

.btn-cta {
  background: var(--accent);
  color: var(--primary);
  font-size: 1rem;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 85vh;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  overflow: hidden;
}

/* Trace paper layers */
.trace-layer {
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(rgba(56,65,52,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,65,52,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.trace-layer:nth-child(1) {
  animation: traceShift1 8s ease-in-out infinite;
  opacity: 0.7;
}

.trace-layer:nth-child(2) {
  animation: traceShift2 10s ease-in-out infinite;
  background-position: 20px 20px;
  opacity: 0.5;
}

.trace-layer:nth-child(3) {
  animation: traceShift3 12s ease-in-out infinite;
  background-size: 80px 80px;
  background-image:
    linear-gradient(rgba(56,65,52,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,65,52,0.06) 1px, transparent 1px);
  opacity: 0.4;
}

@keyframes traceShift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(3px, -2px) rotate(0.3deg); }
}

@keyframes traceShift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, 3px) rotate(-0.4deg); }
}

@keyframes traceShift3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2px, 4px) rotate(0.2deg); }
}

.hero-blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-muted);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 12px;
  background: var(--accent);
  z-index: -1;
  opacity: 0.7;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-note svg {
  color: var(--primary-light);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.3s forwards;
  opacity: 0;
}

.app-preview {
  position: relative;
  background: var(--bg-paper);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.preview-header {
  padding: 12px 16px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
}

.preview-dots span:first-child {
  background: #ff6b6b;
}

.preview-dots span:nth-child(2) {
  background: #ffd93d;
}

.preview-dots span:last-child {
  background: #6bcb77;
}

.preview-image {
  width: 100%;
  display: block;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-paper);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.card-1 {
  top: 20%;
  left: -40px;
  animation: float 4s ease-in-out infinite;
}

.card-2 {
  bottom: 15%;
  right: -30px;
  animation: float 4s ease-in-out infinite 1s;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border-radius: 10px;
  color: var(--text-secondary);
}

.card-icon.green {
  background: rgba(225, 247, 130, 0.3);
  color: var(--primary);
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero gradient */
.hero-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(225, 247, 130, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
section {
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--bg-muted);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-paper);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-lg);
  background: var(--bg-page);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease, transform 0.15s ease-out;
  opacity: 0;
  transform: translateY(20px);
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  color: var(--primary);
  margin-bottom: var(--space-md);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Feature Showcase Section
   -------------------------------------------------------------------------- */
.feature-showcase {
  padding: var(--space-3xl) var(--space-md);
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin: var(--space-sm) 0 var(--space-md);
}

.showcase-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.showcase-image img {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(56, 65, 52, 0.1);
}

.showcase-layout {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.showcase-layout.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works {
  position: relative;
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-warm);
}

.steps-alt {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto;
}

.step-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-xl);
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.step-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-row-reverse {
  direction: rtl;
}

.step-row-reverse > * {
  direction: ltr;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-img img {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(56, 65, 52, 0.1);
}

.works-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-page), transparent);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Testimonial Section
   -------------------------------------------------------------------------- */
.testimonial {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-medium) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-medium) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, black 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, black 80%);
}

.testimonial-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.testimonial-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0 0 var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-light);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-at {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--border-light);
  line-height: 1;
}

.testimonial-logo-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.testimonial-logo-link:hover {
  opacity: 0.7;
}

.testimonial-logo {
  height: 22px;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Ruler Dividers
   -------------------------------------------------------------------------- */
.ruler-divider {
  padding: var(--space-sm) 0;
}

.ruler-line {
  position: relative;
  height: 1px;
  background: var(--border-light);
  overflow: visible;
}

.ruler-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--border-medium);
}

.ruler-line.animate::before {
  animation: rulerDraw 2s ease-out forwards;
}

.ruler-ticks {
  display: flex;
  justify-content: space-between;
  position: relative;
  top: -4px;
}

.ruler-tick {
  width: 1px;
  height: 8px;
  background: var(--border-medium);
  opacity: 0;
}

.ruler-tick:nth-child(even) {
  height: 5px;
}

.ruler-tick.animate {
  animation: tickFade 0.3s ease forwards;
}

@keyframes rulerDraw {
  to { width: 100%; }
}

@keyframes tickFade {
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-paper);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

.pricing-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--bg-page);
  border-radius: 20px;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-card:nth-child(3) { transition-delay: 0.2s; }

.pricing-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.02);
}

.pricing-card.featured.visible {
  transform: scale(1.02) translateY(0);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-card:not(.featured):hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 100px;
}

.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.pricing-card.featured .pricing-header h3,
.pricing-card.featured .pricing-header p {
  color: white;
}

.pricing-card.featured .pricing-header p {
  opacity: 0.8;
}

.pricing-amount {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.pricing-card.featured .pricing-amount {
  border-color: rgba(255, 255, 255, 0.2);
}

.price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.pricing-card.featured .price {
  color: white;
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card.featured .period {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card.featured .pricing-features li {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-features svg {
  flex-shrink: 0;
  color: var(--primary-light);
}

.pricing-card.featured .pricing-features svg {
  color: var(--accent);
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.75rem;
  margin-bottom: var(--space-sm);
}

.pricing-card.featured .pricing-note {
  color: rgba(255, 255, 255, 0.6);
}

.billing-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 3px;
  margin-bottom: var(--space-md);
}

.toggle-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.toggle-btn.active {
  background: white;
  color: var(--primary);
}

.save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.25rem;
}

.toggle-btn.active .save-badge {
  color: var(--primary-light);
}

.feature-disabled {
  color: var(--text-muted) !important;
  opacity: 0.6;
}

.pricing-card.featured .feature-disabled {
  opacity: 0.5;
}

.pricing-card.featured .btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.pricing-card.featured .btn-primary:hover {
  background: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: var(--space-3xl) var(--space-md);
  background: var(--primary);
  overflow: hidden;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: white;
  margin-bottom: var(--space-sm);
}

.cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
}

.cta-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(225, 247, 130, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(225, 247, 130, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-3xl) var(--space-md) var(--space-xl);
  background: var(--bg-warm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  height: 30px;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 250px;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

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

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

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .card-1 {
    left: 0;
  }

  .card-2 {
    right: 0;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured.visible {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

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

@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-paper);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 0;
  }

  .nav-signin {
    text-align: center;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
  }

  .nav-cta {
    text-align: center;
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
  }

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

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

  .step-row,
  .step-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .step-img {
    order: 2;
  }

  .step-text {
    order: 1;
  }

  .showcase-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .showcase-title {
    font-size: 1.5rem;
  }

  .testimonial-quote {
    font-size: 1.15rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Legal Pages (Privacy & Terms)
   ======================================== */
.legal-page {
  padding: calc(80px + var(--space-2xl)) 0 var(--space-3xl);
}

.legal-container {
  max-width: 760px;
}

.legal-container h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.5px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--muted);
}

.legal-container h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.3px;
}

.legal-container h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal-container p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-container ul {
  margin: 0 0 var(--space-md) var(--space-md);
  padding: 0;
  list-style: none;
}

.legal-container ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-container ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-container ul ul {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.legal-container ul ul li::before {
  width: 5px;
  height: 5px;
  background: var(--muted);
  border: 1px solid var(--primary-light);
}

.legal-container a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.legal-container a:hover {
  color: var(--primary-light);
}

.legal-container strong {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .legal-container h1 {
    font-size: 1.75rem;
  }

  .legal-page {
    padding: calc(70px + var(--space-lg)) 0 var(--space-2xl);
  }
}
