/* ============================================================
   PerolaSync — Design System v1.0
   Premium dark theme with pearl/gold accents
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --pearl-50:  #faf8f5;
  --pearl-100: #f5f0e8;
  --pearl-200: #ece3d4;
  --pearl-300: #dfd2b8;
  --pearl-400: #d4c49f;
  --pearl-500: #c9b587;
  --pearl-600: #b8a06a;
  --pearl-700: #9a844f;
  --pearl-800: #7a6940;
  --pearl-900: #5c4f30;

  --gold-400: #f0d78c;
  --gold-500: #e8c75a;
  --gold-600: #d4a832;
  --gold-700: #b58e24;

  /* Backgrounds */
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #111118;
  --bg-tertiary:   #1a1a24;
  --bg-card:       rgba(26, 26, 36, 0.7);
  --bg-glass:      rgba(26, 26, 36, 0.45);
  --bg-glass-hover:rgba(34, 34, 48, 0.6);

  /* Text */
  --text-primary:   #f0ede8;
  --text-secondary: #a8a4a0;
  --text-muted:     #6b6866;
  --text-accent:    var(--pearl-400);

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-glass:   rgba(255, 255, 255, 0.1);
  --border-accent:  rgba(212, 196, 159, 0.3);

  /* Gradients */
  --gradient-hero:    linear-gradient(135deg, #0a0a0f 0%, #151520 40%, #1a1528 70%, #0f0f1a 100%);
  --gradient-accent:  linear-gradient(135deg, var(--pearl-500), var(--gold-500));
  --gradient-card:    linear-gradient(145deg, rgba(26,26,36,0.8) 0%, rgba(20,20,30,0.5) 100%);
  --gradient-btn:     linear-gradient(135deg, var(--pearl-600), var(--gold-600));
  --gradient-btn-hover: linear-gradient(135deg, var(--pearl-500), var(--gold-500));
  --gradient-glow:    radial-gradient(ellipse at 50% 0%, rgba(212,196,159,0.15) 0%, transparent 60%);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:    0 16px 64px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 40px rgba(212,196,159,0.15);
  --shadow-btn:   0 4px 20px rgba(212,196,159,0.25);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 50px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

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

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

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: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--pearl-300);
}

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

ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }

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

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

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.nav__brand img {
  height: 36px;
  width: auto;
}

.nav__brand-accent {
  color: var(--pearl-400);
}

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

.nav__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212,196,159,0.35);
  color: var(--bg-primary);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

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

.btn--large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn--small {
  padding: 8px 20px;
  font-size: 0.85rem;
}

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

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 78svh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-2xl);
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212,196,159,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(180,130,230,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  width: 100%;
  max-width: 740px;
  padding: var(--space-md) 0;
  position: relative;
  z-index: 1;
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.hero__logo {
  width: clamp(84px, 7vw, 108px);
  height: auto;
  filter: drop-shadow(0 0 15px rgba(2, 132, 199, 0.4));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: min(100%, 520px);
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--pearl-400);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #4ecb71;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero__badge-text {
  min-width: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.35rem, 4vw, 3.45rem);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: var(--text-secondary);
  max-width: min(560px, 100%);
  margin: 0 auto var(--space-lg);
  font-weight: 400;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__actions .btn--large {
  min-height: 52px;
  padding: 14px 34px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  max-width: 620px;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-3xl);
}

.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pearl-500);
  margin-bottom: var(--space-md);
}

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

.section__description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
}

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

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

/* ---------- Modules Grid ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.module-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.module-chip:hover {
  border-color: var(--border-accent);
  background: var(--bg-glass-hover);
}

.module-chip__icon {
  font-size: 1.2rem;
}

.module-chip--plus {
  border-color: rgba(232, 199, 90, 0.2);
}

.module-chip--plus::after {
  content: 'PLUS';
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold-500);
  background: rgba(232, 199, 90, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.pricing-card--featured {
  border-color: var(--pearl-600);
  box-shadow: var(--shadow-glow);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.pricing-card__badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  padding: 4px 12px;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
}

.pricing-card__tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pearl-500);
  margin-bottom: var(--space-sm);
}

.pricing-card__name {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.pricing-card__currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

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

.pricing-card__annual {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.pricing-card__annual strong {
  color: var(--pearl-400);
}

.pricing-card__divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-xl) 0;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-card__feature-check {
  color: #4ecb71;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card__feature--disabled {
  opacity: 0.4;
}

.pricing-card__feature--disabled .pricing-card__feature-check {
  color: var(--text-muted);
}

.pricing-card__trial {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ---------- Pricing Toggle ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.pricing-toggle__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.pricing-toggle__label.active {
  color: var(--text-primary);
}

.pricing-toggle__switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.pricing-toggle__switch.annual {
  background: var(--pearl-700);
  border-color: var(--pearl-600);
}

.pricing-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition-base);
}

.pricing-toggle__switch.annual::after {
  transform: translateX(24px);
}

.pricing-toggle__discount {
  padding: 3px 10px;
  background: rgba(78, 203, 113, 0.15);
  color: #4ecb71;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 100%;
  background: var(--gradient-glow);
  pointer-events: none;
}

.cta__title {
  margin-bottom: var(--space-md);
  position: relative;
}

.cta__subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-secondary);
}

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

.footer__brand-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer__title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--pearl-400);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer__social a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--pearl-400);
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--pearl-500);
  box-shadow: 0 0 0 3px rgba(201, 181, 135, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6866' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-500);
  flex: 0 0 auto;
}

.consent-check a {
  color: var(--pearl-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Legal Pages ---------- */
.legal-page {
  min-height: 100vh;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-4xl);
  background: var(--gradient-hero);
}

.legal-page__container {
  max-width: 920px;
}

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

.legal-page__header h1 {
  margin-bottom: var(--space-sm);
}

.legal-page__header p {
  color: var(--text-secondary);
}

.legal-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.legal-card section + section {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

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

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.8;
}

.legal-card p + p {
  margin-top: var(--space-md);
}

.legal-card ul {
  list-style: disc;
  padding-left: var(--space-xl);
}

.legal-card li + li {
  margin-top: var(--space-sm);
}

.form-input--code {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* ---------- Verified Download Modal ---------- */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: var(--space-lg);
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.download-modal__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: min(92vh, 780px);
  overflow-y: auto;
  background: rgba(17, 17, 24, 0.98);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-xl);
}

.download-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.download-modal__close:hover,
.download-modal__close:focus {
  color: var(--text-primary);
  border-color: var(--border-accent);
  outline: none;
}

.download-modal__header {
  padding-right: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

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

.download-modal__subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.download-step {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.download-step--active {
  color: var(--bg-primary);
  border-color: transparent;
  background: var(--gradient-accent);
}

.download-message {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  line-height: 1.5;
}

.download-message.visible {
  display: block;
}

.download-message--error {
  color: #ffb4a8;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
}

.download-message--success {
  color: #9be7b0;
  background: rgba(78, 203, 113, 0.12);
  border: 1px solid rgba(78, 203, 113, 0.35);
}

.download-message--info {
  color: var(--pearl-300);
  background: rgba(212, 196, 159, 0.12);
  border: 1px solid rgba(212, 196, 159, 0.28);
}

.download-form {
  display: block;
}

.download-form .btn + .btn {
  margin-top: var(--space-md);
}

.download-result {
  text-align: center;
}

.download-result__eyebrow {
  color: #9be7b0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

.download-result__title {
  margin-bottom: var(--space-sm);
}

.download-result__text,
.download-result__hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.download-result__serial {
  display: block;
  width: 100%;
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border: 1px dashed var(--pearl-500);
  border-radius: var(--radius-sm);
  color: var(--pearl-300);
  background: rgba(255, 255, 255, 0.03);
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 800;
  word-break: break-word;
}

.download-result__hint {
  margin-top: var(--space-md);
}

/* ---------- Animations ---------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.animate-fade-in-up {
  animation: fade-in-up 0.7s var(--ease-out) both;
}

.animate-fade-in {
  animation: fade-in 0.5s var(--ease-out) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Intersection Observer driven */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Alert / Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
}

.badge--success {
  background: rgba(78, 203, 113, 0.15);
  color: #4ecb71;
}

.badge--warning {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}

.badge--info {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

.badge--accent {
  background: rgba(212, 196, 159, 0.15);
  color: var(--pearl-400);
}

/* ---------- Status ---------- */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot--active { background: #4ecb71; }
.status-dot--inactive { background: var(--text-muted); }
.status-dot--warning { background: #f39c12; }

/* ---------- Table (Admin) ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: var(--space-md);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: var(--bg-glass);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-xl));
  }

  .hero__content {
    padding-bottom: var(--space-xl);
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
  }

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

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

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

@media (max-width: 480px) {
  .legal-card {
    padding: var(--space-lg);
  }

  .download-modal {
    padding: var(--space-sm);
  }

  .download-modal__panel {
    padding: var(--space-lg);
  }

  .download-steps {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__badge {
    align-items: center;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr);
    line-height: 1.35;
    margin-left: auto;
    margin-right: auto;
    max-width: calc(100vw - 48px);
    padding: 8px 12px;
    text-align: left;
    white-space: normal;
    width: 100%;
  }

  .hero__badge-dot {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .hero__badge-text,
  .hero__subtitle,
  .hero__title {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

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

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.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); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.section--muted {
  background: var(--bg-secondary);
}

.page-section {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  min-height: 100vh;
}

.page-section--center {
  display: flex;
  align-items: center;
}

.container--narrow {
  max-width: 600px;
}

.section__header--compact {
  margin-bottom: var(--space-2xl);
}

.title-center {
  text-align: center;
}

.title-tight {
  margin-bottom: 4px;
}

.title-small {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.8rem;
}

.text-md {
  font-size: 0.9rem;
}

.text-strong-secondary {
  color: var(--text-secondary);
}

.font-mono {
  font-family: var(--font-mono);
}

.eyebrow-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.button-offset {
  margin-top: 8px;
}

.glass-card--padded {
  padding: 24px;
}

.status-box {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  padding: 10px;
}

.status-box--success {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.5);
  color: #2ecc71;
}

.status-box--error {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.5);
  color: #e74c3c;
}

.badge--danger {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.form-alert {
  padding: 10px;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
}

.field-help {
  font-size: 0.75rem;
}

.textarea-vertical {
  resize: vertical;
}

.form-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 32px 0;
}

.table-empty {
  text-align: center;
}

.modal-open {
  overflow: hidden;
}

.modules-section-alt {
  background: var(--bg-secondary);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  position: relative;
}

.footer__link--disabled,
.footer__social-disabled {
  cursor: default;
  opacity: 0.4;
}

.checkout-error {
  border-color: rgba(231, 76, 60, 0.5);
  color: #e74c3c;
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding: 16px;
  text-align: center;
}

.checkout-plan-card {
  margin-bottom: 32px;
  padding: 24px;
}

.checkout-plan-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.checkout-price {
  color: var(--pearl-400);
  font-size: 1.3rem;
  font-weight: 700;
}

.checkout-total {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ---------- Checkout Stepper ---------- */
.checkout-stepper {
  align-items: center;
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 32px;
  padding: 0 20px;
}

.checkout-step {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.checkout-step__number {
  align-items: center;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  font-size: 0.85rem;
  font-weight: 600;
  height: 36px;
  justify-content: center;
  transition: all 0.3s ease;
  width: 36px;
}

.checkout-step__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.checkout-step.active .checkout-step__number {
  background: var(--gradient-accent);
  border-color: var(--pearl-500);
  color: #0a0a0f;
}

.checkout-step.active .checkout-step__label {
  color: var(--pearl-400);
}

.checkout-step.completed .checkout-step__number {
  background: var(--pearl-700);
  border-color: var(--pearl-600);
  color: #fff;
}

.checkout-step.completed .checkout-step__number::after {
  content: '✓';
  font-size: 0.85rem;
}

.checkout-step.completed .checkout-step__label {
  color: var(--text-secondary);
}

.checkout-step__line {
  background: var(--border-glass);
  flex: 1;
  height: 2px;
  margin: 0 8px;
  margin-bottom: 22px;
  min-width: 40px;
  transition: background 0.3s ease;
}

.checkout-step__line.completed {
  background: var(--pearl-600);
}

/* ---------- Checkout Panels ---------- */
.checkout-panel {
  animation: fadeIn 0.3s ease;
  display: none;
}

.checkout-panel.active {
  display: block;
}

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

/* ---------- Checkout Success Alert ---------- */
.checkout-success {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.4);
  color: #27ae60;
  font-size: 0.9rem;
  margin-bottom: 24px;
  padding: 16px;
  text-align: center;
}

/* ---------- Checkout Verify Card ---------- */
.checkout-verify-card {
  padding: 40px 24px;
  text-align: center;
}

.checkout-verify-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.checkout-verify-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.checkout-verify-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.checkout-code-input {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem !important;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
}

.checkout-verify-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* ---------- Checkout Payment Options ---------- */
.checkout-payment-title {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.checkout-payment-options {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}

.checkout-payment-card {
  align-items: center;
  background: var(--bg-glass);
  border: 2px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  position: relative;
  text-align: center;
  transition: all 0.25s ease;
}

.checkout-payment-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.checkout-payment-card.selected {
  background: rgba(212, 196, 159, 0.08);
  border-color: var(--pearl-500);
  box-shadow: 0 0 20px rgba(212, 196, 159, 0.15);
}

.checkout-payment-card__icon {
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.checkout-payment-card.selected .checkout-payment-card__icon {
  color: var(--pearl-400);
}

.checkout-payment-card__label {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.checkout-payment-card__desc {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.checkout-payment-card__check {
  align-items: center;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-glass);
  border-radius: 50%;
  color: transparent;
  display: flex;
  font-size: 0.7rem;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 10px;
  transition: all 0.25s ease;
  width: 22px;
}

.checkout-payment-card.selected .checkout-payment-card__check {
  background: var(--pearl-500);
  border-color: var(--pearl-500);
  color: #0a0a0f;
}

.checkout-payment-info {
  align-items: center;
  background: rgba(212, 196, 159, 0.05);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--text-secondary);
  display: flex;
  font-size: 0.82rem;
  gap: 8px;
  line-height: 1.4;
  margin-bottom: 24px;
  padding: 14px 16px;
}

.checkout-payment-info__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.badge--accent {
  background: rgba(212, 196, 159, 0.15);
  border: 1px solid var(--pearl-600);
  color: var(--pearl-400);
}

@media (max-width: 480px) {
  .checkout-payment-options {
    grid-template-columns: 1fr;
  }

  .checkout-stepper {
    padding: 0 10px;
  }

  .checkout-step__line {
    min-width: 24px;
  }
}

.success-title {
  margin-bottom: var(--space-md);
}

.success-description {
  margin-bottom: var(--space-lg);
}

.serial-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.success-next-card {
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-md);
  text-align: left;
}

.success-next-title {
  color: var(--pearl-300);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.success-next-list {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  padding-left: 20px;
}

.success-footnote {
  font-size: 0.8rem;
  margin-top: var(--space-lg);
}

.btn--copied {
  border-color: var(--pearl-400);
  color: var(--pearl-400);
}

.admin-brand-badge {
  background: rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  color: var(--pearl-400);
  font-size: 0.75rem;
  margin-left: 8px;
  padding: 2px 8px;
  vertical-align: middle;
}

.admin-user-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.admin-user-name {
  color: var(--pearl-300);
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.settings-panel {
  margin-top: 16px;
  max-width: 500px;
}

.action-btn--success,
.action-btn--danger {
  border: 0;
  color: #fff;
}

.action-btn--success {
  background: #2ecc71;
}

.action-btn--danger {
  background: #e74c3c;
}

.tier-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.tier-label--plus {
  color: var(--pearl-400);
}

.inline-code {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.8rem;
  padding: 4px 8px;
}

.generated-code {
  color: var(--pearl-400);
  font-size: 1.1rem;
}

.panel-title {
  margin-bottom: 8px;
  text-align: center;
}

.panel-description {
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-align: center;
}

.license-card-header {
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.license-tier-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.license-key-display {
  color: var(--pearl-400);
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.machine-card {
  padding: 24px;
}

.machine-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.machine-desc {
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- Business Models Section ---------- */
.business-models-section {
  background-color: #0b1329;
  padding: 80px 0;
}

.business-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.model-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  transition: transform var(--transition-base), border-color var(--transition-fast), box-shadow var(--transition-base);
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.model-card__icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.model-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.model-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Module Detail Section ---------- */
.modules-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.module-detail-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 25px;
  transition: transform var(--transition-base), border-color var(--transition-fast), box-shadow var(--transition-base);
}

.module-detail-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(212, 196, 159, 0.1);
}

.module-detail-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-detail-card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
