/* ============================================
   NirvanaStory - Marketing Site
   A contemplative, refined Buddhist aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Core palette */
  --navy-deep: #111126;
  --navy-dark: #1a1a2e;
  --navy-medium: #16213e;
  --navy-soft: #1e2a4a;
  --gold-primary: #c9a227;
  --gold-accent: #d4af37;
  --gold-light: #e8d5b7;
  --gold-muted: #b8943f;
  --cream: #f7f5f0;
  --cream-warm: #f0ece3;
  --white-soft: #fdfcfa;

  /* Semantic */
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.65);
  --text-on-dark: #e8d5b7;
  --text-on-dark-muted: rgba(232, 213, 183, 0.6);
  --border-light: rgba(26, 26, 46, 0.08);
  --border-gold: rgba(201, 162, 39, 0.25);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.16);
  --shadow-gold: 0 4px 24px rgba(201, 162, 39, 0.2);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Gradients */
  --gradient-hero: linear-gradient(160deg, #0f0f20 0%, #1a1a2e 40%, #16213e 100%);
  --gradient-gold: linear-gradient(135deg, #c9a227 0%, #d4af37 50%, #e8c84a 100%);
  --gradient-gold-subtle: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
  --gradient-dark-card: linear-gradient(160deg, rgba(30, 42, 74, 0.5) 0%, rgba(22, 33, 62, 0.3) 100%);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 100px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --nav-height: 72px;
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(201, 162, 39, 0.25);
  color: var(--navy-dark);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-balance {
  text-wrap: balance;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--space-3xl) 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }
  .container {
    padding: 0 var(--space-md);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(17, 17, 38, 0.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border-gold);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  z-index: 10;
}

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

.nav-logo span {
  opacity: 0.95;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-primary);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 38, 0.98);
  backdrop-filter: blur(20px);
  z-index: 5;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-mobile-menu.active {
  display: flex;
}

.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.1);
  transition: color var(--duration-fast) ease;
}

.nav-mobile-menu a:hover {
  color: var(--gold-primary);
}

@media (max-width: 900px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-gold);
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--gold-primary);
}

.btn--secondary:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--gold-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--gold-light);
  padding: 8px 16px;
}

.btn--ghost:hover {
  color: var(--gold-primary);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--block {
  width: 100%;
}

.btn--with-sub {
  flex-direction: column;
  line-height: 1.3;
}

.btn__sub {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.8;
}

/* On dark backgrounds */
.btn--secondary-light {
  color: var(--gold-light);
  border: 1.5px solid rgba(232, 213, 183, 0.3);
}

.btn--secondary-light:hover {
  background: rgba(232, 213, 183, 0.1);
  border-color: var(--gold-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Subtle radial glow */
.hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Gentle grain texture */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Floating lotus-inspired decorative elements */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero__orb--1 {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 5%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.04) 0%, transparent 70%);
  animation-delay: 0s;
  opacity: 1;
}

.hero__orb--2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 8%;
  background: radial-gradient(circle, rgba(232, 213, 183, 0.03) 0%, transparent 70%);
  animation-delay: -7s;
  opacity: 1;
}

.hero__orb--3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 20%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.03) 0%, transparent 70%);
  animation-delay: -13s;
  opacity: 1;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(15px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 15px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__title {
  color: var(--gold-light);
  margin-bottom: var(--space-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.35s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero__preview {
  animation: fadeInUp 0.8s var(--ease-out) 0.65s both;
}

.hero__preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.12);
  transition: all var(--duration-normal) var(--ease-out);
}

.hero__preview-label:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.25);
  color: var(--gold-light);
}

.hero__preview-label svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Stats bar */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

/* ============================================
   SECTION TITLES
   ============================================ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.section-header__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* On dark sections */
.section--dark .section-header__title {
  color: var(--gold-light);
}

.section--dark .section-header__desc {
  color: var(--text-on-dark-muted);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  background: var(--white-soft);
}

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

.feature-card {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient-gold-subtle);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.feature-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   STORY CARDS
   ============================================ */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.story-card {
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.story-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-dark);
}

.story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.story-card:hover .story-card__image img {
  transform: scale(1.05);
}

.story-card__play-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  transform: scale(0.8);
}

.story-card:hover .story-card__play-btn {
  opacity: 1;
  transform: scale(1);
}

.story-card__play-btn:hover {
  transform: scale(1.1);
}

.story-card__play-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--navy-dark);
  margin-left: 2px;
}

.story-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card__badge--free {
  background: rgba(201, 162, 39, 0.9);
  color: var(--navy-dark);
}

.story-card__badge--premium {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.story-card__lock {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.story-card__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.story-card__title {
  font-size: 1.05rem;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.story-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.story-card__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gradient-gold-subtle);
  color: var(--gold-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Story card player (inline) */
.story-card__player {
  padding: 0 var(--space-md) var(--space-md);
}

.player-progress {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 6px;
  overflow: hidden;
}

.player-progress__bar {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 2px;
  width: 0%;
  transition: width 100ms linear;
}

.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  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)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.pricing__grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  border: 1px solid transparent;
  transition: transform var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.pricing-card__features {
  flex: 1;
}

.pricing-card .btn {
  margin-top: auto;
}

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

.pricing-card--featured {
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-gold), 0 0 60px rgba(201, 162, 39, 0.08);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: var(--navy-dark);
  padding: 5px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pricing-card__plan {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.pricing-card__price {
  margin-bottom: var(--space-sm);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1;
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-card__savings {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.pricing-card__features {
  margin: var(--space-lg) 0;
}

.pricing-card__features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .pricing__grid--three {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ============================================
   DOWNLOAD / CTA
   ============================================ */
.download {
  background: var(--cream-warm);
  text-align: center;
}

.download__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.download__badge-link img {
  height: 48px;
  transition: transform var(--duration-normal) var(--ease-out);
}

.download__badge-link:hover img {
  transform: scale(1.05);
}

.download__web-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.download__web-link a {
  color: var(--gold-primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast) ease;
}

.download__web-link a:hover {
  border-bottom-color: var(--gold-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  padding-right: var(--space-xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
}

.footer__logo img {
  height: 24px;
  width: 24px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.footer__column h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.footer__column li {
  margin-bottom: 10px;
}

.footer__column a {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  transition: color var(--duration-fast) ease;
}

.footer__column a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-lg);
  }
  .footer__brand {
    grid-column: span 2;
    padding-right: 0;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__brand {
    grid-column: span 1;
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.form-input::placeholder {
  color: rgba(26, 26, 46, 0.35);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%231a1a2e' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.form-success {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 38, 0.7);
  backdrop-filter: blur(8px);
  padding: var(--space-md);
  animation: fadeIn var(--duration-normal) ease;
}

.modal__content {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.modal__close:hover {
  background: var(--cream-warm);
  color: var(--text-primary);
}

.modal__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.modal__title {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.modal__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   FILTER CHIPS
   ============================================ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  color: var(--text-secondary);
}

.chip:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.chip--active {
  background: var(--navy-dark);
  color: var(--gold-light);
  border-color: var(--navy-dark);
}

.chip--active:hover {
  background: var(--navy-medium);
  border-color: var(--navy-medium);
  color: var(--gold-light);
}

/* ============================================
   SEARCH
   ============================================ */
.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  background: white;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.search-input::placeholder {
  color: rgba(26, 26, 46, 0.35);
}

.search-wrapper {
  position: relative;
}

.search-wrapper svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Large hero-style search */
.search-input--large {
  padding: 18px 24px 18px 52px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.pagination__btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: white;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  color: var(--text-primary);
}

.pagination__btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.pagination__btn--active {
  background: var(--navy-dark);
  color: var(--gold-light);
  border-color: var(--navy-dark);
}

.pagination__ellipsis {
  color: var(--text-secondary);
  padding: 0 4px;
}

/* ============================================
   FAQ / HELP
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item summary {
  padding: var(--space-md) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--text-primary);
  transition: color var(--duration-fast) ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  color: var(--gold-primary);
}

.faq-answer {
  padding-bottom: var(--space-lg);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: var(--space-md);
}

.faq-answer ul, .faq-answer ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  list-style: disc;
}

.faq-answer ol {
  list-style: decimal;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-answer a {
  color: var(--gold-primary);
  border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
  border-bottom-color: var(--gold-primary);
}

.faq-answer strong {
  color: var(--text-primary);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-document {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-3xl);
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.legal-header__date {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.legal-toc {
  background: var(--cream-warm);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.legal-toc h2 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.legal-toc ul {
  list-style: decimal;
  padding-left: var(--space-lg);
}

.legal-toc li {
  margin-bottom: 8px;
}

.legal-toc a {
  color: var(--gold-primary);
  font-size: 0.92rem;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-section {
  margin-bottom: var(--space-xl);
}

.legal-section h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--gold-primary);
}

.legal-section h3 {
  font-size: 1.05rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-section p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-section ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-section li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-section a {
  color: var(--gold-primary);
}

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */
.page-hero {
  background: var(--gradient-hero);
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  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)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1 {
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  text-align: center;
  padding: var(--space-lg);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.error-page h2 {
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.error-page p {
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-page__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   LOADING
   ============================================ */
.loading-spinner {
  width: 36px;
  height: 36px;
  margin: var(--space-2xl) auto;
  border: 3px solid var(--border-light);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, rgba(26, 26, 46, 0.04) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section--dark {
  background: var(--gradient-hero);
  color: var(--text-on-dark);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* No results state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-secondary);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  .hero__stats {
    gap: var(--space-lg);
  }

  .hero__stat-value {
    font-size: 1.4rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    text-align: center;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .nav, .footer, .btn, .hero__bg, .modal {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  section {
    padding: 1rem 0;
  }
}
