/* ============================================
   RIGEL — Design System
   Enterprise SaaS · Fintech-inspired
   Mobile-first · Minimal
   ============================================ */

/* Fonts loaded via <link> in HTML <head> for non-blocking render */

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

:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E4E4E7;
  --gray-300: #D4D4D8;
  --gray-400: #A1A1AA;
  --gray-500: #71717A;
  --gray-600: #52525B;
  --gray-700: #3F3F46;
  --gray-800: #27272A;
  --gray-900: #18181B;

  --accent: #351ac2;
  --accent-light: #8772ef;
  --accent-gradient: linear-gradient(135deg, #351ac2 0%, #8772ef 100%);
  --accent-rgb: 53, 26, 194;
  --accent-light-rgb: 135, 114, 239;

  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-400);
  --bg: var(--white);
  --bg-soft: var(--gray-50);
  --bg-elevated: var(--gray-100);
  --border: var(--gray-200);
  --border-light: var(--gray-100);

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem;
  --s-20: 5rem; --s-24: 6rem; --s-32: 8rem; --s-40: 10rem;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.1);

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --dur: 0.5s;
  --dur-fast: 0.2s;
  --dur-slow: 0.8s;
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.mobile-copy { display: none; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6); }
.container--narrow { max-width: 720px; }
.container--wide { max-width: 1400px; }

/* ---------- Typography ---------- */
.t-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.t-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.t-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.t-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.t-h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.t-body { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }
.t-body-lg { font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }
.t-body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }
.t-caption { font-size: 0.75rem; line-height: 1.5; color: var(--text-tertiary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--r-full);
  padding: 10px 24px;
  transition: all var(--dur-fast) ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent-gradient); color: var(--white); }
.btn--primary:hover { background: linear-gradient(135deg, #2d16a8 0%, #7a64e6 100%); }

.btn--secondary { background: var(--bg-elevated); color: var(--text-primary); }
.btn--secondary:hover { background: var(--gray-200); }

.btn--outline { background: var(--white); color: var(--text-primary); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--gray-400); }

.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: var(--gray-100); }

.btn--sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn--lg { padding: 12px 30px; font-size: 0.9375rem; }
.btn--full { width: 100%; }

.btn__icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--s-6);
}

.tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

/* ---------- Section Spacing ---------- */
.section { padding: var(--s-24) 0; }
.section--lg { padding: var(--s-32) 0; }
.section--sm { padding: var(--s-16) 0; }

.section--dark { background: var(--black); color: var(--white); }
.section--dark .t-body,
.section--dark .t-body-lg { color: var(--gray-400); }
.section--dark .tag { color: var(--gray-500); }
.section--dark .tag::before { background: var(--accent-light); }

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

/* ---------- Section Header ---------- */
.section-header { max-width: 640px; margin-bottom: var(--s-16); }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header .t-h2 { margin-bottom: var(--s-4); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid { gap: var(--s-8); }
}

/* ---------- Split Layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
  align-items: center;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-16); }
}

.split--reverse .split__media { order: -1; }

@media (min-width: 768px) {
  .split--reverse .split__media { order: 1; }
  .split--reverse .split__content { order: -1; }
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  transition: all var(--dur) var(--ease);
}

.card:hover { box-shadow: var(--shadow-md); border-color: var(--border); }

.card--dark { background: var(--gray-900); border-color: var(--gray-800); color: var(--white); }
.card--dark:hover { border-color: var(--gray-700); }
.card--dark .t-body,
.card--dark .t-body-sm { color: var(--gray-400); }

.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-6);
  color: var(--text-primary);
}

.card--dark .card__icon { background: var(--gray-800); color: var(--white); }
.card__icon svg { width: 22px; height: 22px; }

.card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.card__text { font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.card--dark .card__text { color: var(--gray-400); }
.card__number { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; color: var(--text-tertiary); margin-bottom: var(--s-4); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) ease;
}

.nav.scrolled { border-bottom-color: var(--border-light); }

.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.nav__logo {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
  letter-spacing: -0.03em; color: var(--text-primary);
}

.nav__logo-img { height: 28px; width: auto; }

.nav__links { display: none; align-items: center; gap: var(--s-1); }

@media (min-width: 1024px) { .nav__links { display: flex; } }

.nav__link {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.nav__link:hover,
.nav__link.active { color: var(--text-primary); background: var(--bg-soft); }

.nav__actions { display: flex; align-items: center; gap: var(--s-3); }

.nav__lang {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background var(--dur-fast) ease;
  text-decoration: none;
}
.nav__lang:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  background: var(--bg-soft);
}

.nav__burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: var(--s-3); min-width: 44px; min-height: 44px; margin-right: calc(var(--s-3) * -1); -webkit-tap-highlight-color: transparent; border-radius: var(--r-sm); }
.nav__burger:active { background: var(--bg-soft); }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: all var(--dur-fast) ease; transform-origin: center; }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 1024px) { .nav__burger { display: none; } }

/* Solid nav background when menu is open */
.nav.menu-is-open {
  background: var(--white) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__mobile {
  position: absolute; top: 100%; left: 0; width: 100%;
  height: calc(100vh - 64px); height: calc(100dvh - 64px);
  background: var(--white); padding: var(--s-6);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: var(--s-2);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease);
  pointer-events: none;
  z-index: 99;
}
.nav__mobile.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

@media (min-width: 1024px) { .nav__mobile { display: none; } }

.nav__mobile-link {
  display: block; padding: var(--s-4) 0; font-size: 1.125rem; font-weight: 500;
  color: var(--text-primary); border-bottom: 1px solid var(--border-light);
}

.nav__mobile-actions { margin-top: auto; padding-top: var(--s-8); display: flex; flex-direction: column; gap: var(--s-3); }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(64px + var(--s-20)) 0 var(--s-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(53, 26, 194, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 26, 194, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center center;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 30%, rgba(var(--accent-rgb), 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 25%, rgba(var(--accent-light-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 60% 85%, rgba(var(--accent-rgb), 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ai-glow-drift 12s ease-in-out infinite alternate;
}
.hero > .container {
  position: relative;
  z-index: 1;
}

.hero .tag { justify-content: center; }
.hero__title { margin-bottom: var(--s-6); }
.hero__title .text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--s-6);
  line-height: 1.7;
}

.hero__points {
  list-style: none;
  max-width: 560px;
  margin: 0 auto var(--s-10);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.hero__points li {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  line-height: 1.6;
}
.hero__points li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 639px) {
  .hero__points li::before { display: none; }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; margin-bottom: var(--s-16); }

.hero__visual {
  max-width: 1100px; margin: 0 auto;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-xl);
  background: var(--bg-soft); aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}

.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

.split__media img {
  width: 100%; height: auto; object-fit: cover;
  border-radius: var(--r-xl); border: 0; box-shadow: var(--shadow-md);
}

.visual-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-3); color: var(--text-tertiary); font-size: 0.875rem;
  width: 100%; height: 100%; min-height: 300px;
  background: var(--bg-soft); border-radius: var(--r-xl); border: 1px dashed var(--border);
}

.visual-placeholder svg { width: 32px; height: 32px; opacity: 0.4; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6);
  padding: var(--s-12) 0;
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }
.stat__number {
  font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary);
}
.stat__label { font-size: 0.8125rem; color: var(--text-tertiary); margin-top: var(--s-1); }

/* ---------- Module Card ---------- */
.module-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: var(--s-6);
  transition: all var(--dur) var(--ease);
}
.module-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }

.module-card__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.module-card__icon svg { width: 20px; height: 20px; color: var(--text-primary); }

.module-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: var(--s-2); letter-spacing: -0.01em; }
.module-card__text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.module-card__features { list-style: none; margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.module-card__features li { font-size: 0.8125rem; color: var(--text-secondary); display: flex; align-items: center; gap: var(--s-2); }
.module-card__features li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--text-tertiary); flex-shrink: 0; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }

@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }

.process__step {
  padding: var(--s-8);
  border-radius: var(--r-lg); background: var(--bg-soft); position: relative;
}

.process__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: var(--s-2); }
.process__text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- CTA Section ---------- */
.cta-section { text-align: center; padding: var(--s-24) 0; background: var(--gray-900); color: var(--white); }
.cta-section .t-h2 { color: var(--white); margin-bottom: var(--s-4); }
.cta-section .t-body-lg { color: var(--gray-400); max-width: 480px; margin: 0 auto var(--s-10); }

/* ---------- Roadmap ---------- */
.roadmap-card {
  background: var(--bg-soft); border-radius: var(--r-lg); padding: var(--s-8);
  border: 1px solid var(--border-light);
}
.roadmap-card__version { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; margin-bottom: var(--s-1); }
.roadmap-card__date { font-size: 0.8125rem; color: var(--text-tertiary); margin-bottom: var(--s-6); }
.roadmap-card__list { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.roadmap-card__list li { font-size: 0.9375rem; display: flex; align-items: center; gap: var(--s-3); }
.roadmap-card__list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); flex-shrink: 0; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-4); }
.feature-list li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: 1rem; line-height: 1.6; color: var(--text-secondary); }
.feature-list__check { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--text-primary); }

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

.faq-item__question {
  width: 100%; text-align: left; padding: var(--s-6) 0;
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}

.faq-item__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-tertiary); transition: transform var(--dur-fast) ease; }
.faq-item.open .faq-item__icon { transform: rotate(45deg); }

.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-item.open .faq-item__answer { max-height: 300px; }
.faq-item__answer-inner { padding-bottom: var(--s-6); font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: var(--s-5); }
.form__group { display: flex; flex-direction: column; gap: var(--s-2); }
.form__label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }

.form__input,
.form__textarea,
.form__select {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--text-primary);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus { outline: none; border-color: var(--gray-400); }

.form__textarea { resize: vertical; min-height: 120px; }
.form__row { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }

@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: var(--s-20) 0 var(--s-8); border-top: 1px solid var(--border-light); }

.footer__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-10);
  margin-bottom: var(--s-12);
}

@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr repeat(3, 1fr); } }

.footer__brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer__brand { grid-column: auto; } }

.footer__logo {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
  color: var(--text-primary); margin-bottom: var(--s-4);
}
.footer__logo-img { height: 24px; width: auto; }
.footer__desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; max-width: 280px; }

.footer__col-title {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: var(--s-4);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer__link { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--dur-fast) ease; }
.footer__link:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-8); border-top: 1px solid var(--border-light);
  flex-wrap: wrap; gap: var(--s-4);
}
.footer__copy { font-size: 0.8125rem; color: var(--text-tertiary); }

/* ---------- Rigel Intelligence AI Section ---------- */
.ai-section {
  position: relative;
  background: var(--gray-900);
  overflow: hidden;
}
.ai-section .container { position: relative; z-index: 1; }
.ai-section .section-header { color: var(--gray-200); }

.ai-section__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--accent-rgb), 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(var(--accent-light-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 60% 80%, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 75% 65%, rgba(16, 185, 129, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 10% 75%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 10%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ai-glow-drift 12s ease-in-out infinite alternate;
}

@keyframes ai-glow-drift {
  0% {
    filter: blur(60px);
    transform: scale(1) translate(0, 0);
  }
  33% {
    filter: blur(70px);
    transform: scale(1.05) translate(2%, -1%);
  }
  66% {
    filter: blur(55px);
    transform: scale(0.98) translate(-1%, 2%);
  }
  100% {
    filter: blur(65px);
    transform: scale(1.03) translate(1%, -1%);
  }
}

.ai-title {
  background: linear-gradient(135deg, var(--white) 0%, var(--accent-light) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  padding-bottom: 0.05em;
}

.tag--ai {
  background: transparent;
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent-light);
}
.tag--ai svg { color: var(--accent-light); }

/* AI Demo Terminal */
.ai-demo {
  max-width: 740px;
  margin: var(--s-10) auto var(--s-12);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 80px rgba(var(--accent-rgb), 0.08), 0 20px 60px rgba(0,0,0,0.4);
}

.ai-demo__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ai-demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.ai-demo__dot:first-child { background: #ff5f57; }
.ai-demo__dot:nth-child(2) { background: #febc2e; }
.ai-demo__dot:nth-child(3) { background: #28c840; }

.ai-demo__label {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  text-transform: uppercase;
}

.ai-demo__body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.ai-demo__prompt,
.ai-demo__response {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray-300);
}

.ai-demo__prompt-label,
.ai-demo__response-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
  padding: 2px 8px;
  border-radius: 4px;
}
.ai-demo__prompt-label {
  color: var(--gray-400);
  background: rgba(255,255,255,0.06);
}
.ai-demo__response-label {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
}

.ai-demo__prompt p {
  color: var(--white);
  font-style: italic;
}

.ai-demo__results {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin: var(--s-3) 0;
}

.ai-demo__result {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  border-left: 2px solid var(--accent-light);
  font-size: 0.8125rem;
}

.ai-demo__match {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ai-demo__action {
  color: var(--accent-light) !important;
  font-weight: 500;
  padding-top: var(--s-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: var(--s-2);
}

/* AI Capability Grid */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 768px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ai-grid { grid-template-columns: repeat(3, 1fr); } }

.ai-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* card color: light mauve for all */
.ai-card { --card-color: var(--accent-light-rgb); --card-color-2: 196, 181, 253; }

.ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--card-color), 0.7), rgba(var(--card-color-2), 0.7), transparent);
  opacity: 0.45;
  transition: opacity var(--dur) ease;
}

.ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--card-color), 0.3);
  box-shadow: 0 8px 40px rgba(var(--card-color), 0.1), 0 0 0 1px rgba(var(--card-color), 0.1);
}
.ai-card:hover::before { opacity: 1; }

.ai-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(var(--card-color), 0.18), rgba(var(--card-color-2), 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  transition: transform var(--dur) var(--ease-bounce), background var(--dur) ease;
}
.ai-card__icon svg { width: 20px; height: 20px; color: rgb(var(--card-color)); }

.ai-card:hover .ai-card__icon {
  transform: scale(1.15) rotate(-5deg);
  background: linear-gradient(135deg, rgba(var(--card-color), 0.28), rgba(var(--card-color-2), 0.15));
}

.ai-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.ai-card__text {
  font-size: 0.8125rem;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: var(--s-3);
}

.ai-card__example {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--gray-400);
  padding: var(--s-3);
  background: rgba(var(--card-color), 0.05);
  border-radius: var(--r-sm);
}

.ai-card__example span {
  font-weight: 700;
  color: rgb(var(--card-color));
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

/* ---------- Page Header ---------- */
.page-header {
  padding: calc(64px + var(--s-16)) 0 var(--s-12);
  text-align: center;
}
.page-header .tag { justify-content: center; }
.page-header__title { margin-bottom: var(--s-4); }
.page-header__text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ---------- Scroll Reveal ---------- */
.fade-in {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.12s; }
.fade-in-delay-2 { transition-delay: 0.24s; }
.fade-in-delay-3 { transition-delay: 0.36s; }
.fade-in-delay-4 { transition-delay: 0.48s; }

/* Slide from left / right / scale */
.fade-in-left {
  opacity: 0; transform: translateX(-48px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
  opacity: 0; transform: translateX(48px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.fade-in-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

.fade-in-blur {
  opacity: 0; transform: translateY(20px); filter: blur(8px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
}
.fade-in-blur.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Stagger children system */
.stagger-children > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.6); }
}

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

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scale-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(40px) scale(0.96); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,0,0,0); }
  50% { box-shadow: 0 0 40px rgba(0,0,0,0.06); }
}

/* ---------- Tag dot animation ---------- */
.tag::before {
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* ---------- Hero Entrance Animations ---------- */
.hero .tag { animation: hero-entrance 0.9s var(--ease-out-expo) 0.1s both; }
.hero__title { animation: hero-entrance 0.9s var(--ease-out-expo) 0.2s both; }
.hero__subtitle { animation: hero-entrance 0.9s var(--ease-out-expo) 0.35s both; }
.hero__actions { animation: hero-entrance 0.9s var(--ease-out-expo) 0.5s both; }
.hero__visual {
  animation: hero-entrance 1.1s var(--ease-out-expo) 0.65s both;
}

/* Hero visual floating subtle effect */
.hero__visual {
  will-change: transform;
}

/* ---------- Enhanced Card Hover ---------- */
.card {
  transition: all var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
  transform: translateY(-6px);
}

.card__icon {
  transition: transform var(--dur) var(--ease-bounce), background var(--dur) ease;
}
.card:hover .card__icon {
  transform: scale(1.1) rotate(-3deg);
  background: var(--gray-200);
}

.card--dark:hover .card__icon {
  background: var(--gray-700);
}

/* ---------- Module Card Hover ---------- */
.module-card {
  transition: all var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-4px);
}

.module-card__icon {
  transition: transform var(--dur) var(--ease-bounce);
}
.module-card:hover .module-card__icon {
  transform: scale(1.15) rotate(-5deg);
}

/* ---------- Button Hover Animations ---------- */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--dur-fast) ease, transform var(--dur-fast) var(--ease-bounce);
}

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
  pointer-events: none;
}

.btn:hover::after { opacity: 1; }

.btn--primary:hover {
  background: linear-gradient(135deg, #2d16a8 0%, #7a64e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.35);
}

.btn--primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
}

.btn--secondary:hover {
  transform: translateY(-2px);
}

.btn--outline:hover {
  transform: translateY(-2px);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Arrow icon in buttons slides on hover */
.btn .btn__icon {
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ---------- Link underline animation ---------- */
.nav__link {
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; width: 0; height: 1.5px;
  background: var(--accent-gradient);
  transition: width var(--dur-fast) var(--ease), left var(--dur-fast) var(--ease);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: calc(100% - var(--s-8)); left: var(--s-4);
}

.footer__link {
  position: relative;
  display: inline-block;
}
.footer__link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease);
}
.footer__link:hover::after { width: 100%; }

/* ---------- Process step hover ---------- */
.process__step {
  transition: all var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.process__step:hover {
  background: var(--bg-elevated);
  transform: translateY(-4px);
}
.process__step::before {
  transition: color var(--dur) ease;
}
.process__step:hover::before {
  color: var(--accent);
}

/* ---------- CTA section animated gradient ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--accent-rgb), 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(var(--accent-light-rgb), 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 60% 80%, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ai-glow-drift 12s ease-in-out infinite alternate;
}

.cta-section .container { position: relative; z-index: 1; }

/* ---------- Section gradient orbs (decorative) ---------- */
.section--dark {
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute; top: 0; left: 50%; width: 800px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- Stats number shimmer ---------- */
.stat__number,
.stats__number {
  background: linear-gradient(90deg, var(--accent) 30%, var(--accent-light) 50%, var(--accent) 70%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

.section--dark .stats__number {
  background: linear-gradient(90deg, #5b41dc 30%, #ab9cf5 50%, #5b41dc 70%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

/* ---------- Visual placeholder ---------- */
.visual-placeholder {
  position: relative;
  overflow: hidden;
}

/* ---------- Hero visual glowing border ---------- */
.hero__visual {
  position: relative;
}
.hero__visual::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, transparent 40%, transparent 60%, rgba(var(--accent-light-rgb), 0.2) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero__visual:hover::before { opacity: 1; }

/* ---------- AI card hover (now in ai-section block above) ---------- */

/* ---------- Roadmap card hover ---------- */
.roadmap-card {
  transition: all var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

/* ---------- FAQ answer smooth ---------- */

/* ---------- Tilt cards (JS-enhanced) ---------- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

/* ---------- Demo form glow (handled by .demo-form-card now) ---------- */

/* ---------- Page header entrance ---------- */
.page-header .tag { animation: hero-entrance 0.8s var(--ease-out-expo) 0.1s both; }
.page-header__title { animation: hero-entrance 0.8s var(--ease-out-expo) 0.2s both; }
.page-header__text { animation: hero-entrance 0.8s var(--ease-out-expo) 0.35s both; }

/* ---------- Smooth image loading ---------- */
img {
  transition: opacity 0.4s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

@media (max-width: 1023px) {
  .nav__actions .btn { display: none; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.mb-12 { margin-bottom: var(--s-12); }
.mb-16 { margin-bottom: var(--s-16); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }
.max-w-md { max-width: 640px; }
.max-w-sm { max-width: 480px; }

/* ---------- Stats (About page) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stats__item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.stats__number {
  display: block;
  font-family: var(--font-heading); font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--white);
}
.stats__label { display: block; font-size: 0.8125rem; color: var(--gray-400); margin-top: var(--s-1); }

/* ---------- FAQ (New selectors) ---------- */
.faq { max-width: 780px; margin-left: auto; margin-right: auto; }
.faq__item {
  border-bottom: 1px solid var(--border-light);
  padding: 0 var(--s-6);
  margin: 0 calc(var(--s-6) * -1);
  border-radius: var(--r-lg);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.faq__item:first-child { border-top: 1px solid var(--border-light); }
.faq__item:hover {
  background: var(--bg-soft);
  border-color: transparent;
}
.faq__item.open {
  background: var(--bg-soft);
  border-color: transparent;
}
.faq__question {
  width: 100%; text-align: left;
  padding: var(--s-5) 0;
  font-size: 1.0625rem; font-weight: 600; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  cursor: pointer; background: none; border: none; line-height: 1.5;
  transition: color 0.2s ease;
}
.faq__question:hover { color: var(--accent); }
.faq__icon {
  position: relative;
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0,0,0,0.04);
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text-tertiary);
  border-radius: 1px;
  transition: background 0.3s ease;
}
.faq__icon::before {
  width: 14px; height: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 2px; height: 14px;
  transform: translate(-50%, -50%);
}
.faq__item:hover .faq__icon { background: rgba(0,0,0,0.06); }
.faq__item.open .faq__icon { transform: rotate(45deg); background: var(--accent); }
.faq__item.open .faq__icon::before,
.faq__item.open .faq__icon::after { background: var(--white); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__item.open .faq__answer { max-height: 600px; }
.faq__answer p { padding-bottom: var(--s-3); font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; }
.faq__answer p:last-child { padding-bottom: var(--s-6); margin-bottom: 0; }

/* ---------- Comparison Lists ---------- */
.comparison-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }
.comparison-list li { font-size: 0.9375rem; display: flex; align-items: flex-start; gap: var(--s-3); line-height: 1.5; }
.comparison-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.comparison-list--negative li { color: var(--text-secondary); }
.comparison-list--negative li::before { background: var(--gray-300); }
.comparison-list--positive li { color: var(--white); }
.comparison-list--positive li::before { background: var(--accent-light); }

/* ---------- Demo Hero ---------- */
.demo-hero {
  position: relative;
  background: var(--white);
  padding: calc(64px + var(--s-16)) 0 var(--s-16);
  overflow: hidden;
  text-align: center;
}

.demo-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(var(--accent-light-rgb), 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 60% 80%, rgba(var(--accent-rgb), 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ai-glow-drift 12s ease-in-out infinite alternate;
}

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

.demo-hero__header {
  max-width: 640px;
  margin: 0 auto var(--s-12);
}

.demo-hero__title {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--accent) 60%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: var(--s-4);
  margin-bottom: var(--s-5);
  line-height: 1.15;
  padding-bottom: 0.05em;
}

.demo-hero__subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.demo-hero .tag {
  justify-content: center;
}

/* Demo trust chips */
.demo-chips {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  flex-wrap: wrap;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.demo-chip:hover {
  background: var(--bg-elevated);
  border-color: rgba(var(--accent-light-rgb), 0.3);
}

.demo-chip svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Demo form card */
.demo-form-card {
  max-width: 740px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-10);
  box-shadow: var(--shadow-lg);
  text-align: left;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}

.demo-form-card:focus-within {
  border-color: rgba(var(--accent-light-rgb), 0.4);
  box-shadow: 0 8px 48px rgba(var(--accent-rgb), 0.08), 0 0 0 1px rgba(var(--accent-light-rgb), 0.2);
}

.demo-form-card .t-h3 {
  text-align: center;
}

.demo-form-card .form__input:focus,
.demo-form-card .form__textarea:focus,
.demo-form-card .form__select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
  transform: none;
}

.demo-form-card .form__row {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 639px) {
  .demo-form-card .form__row {
    grid-template-columns: 1fr;
  }
}

/* Demo process section */
.demo-process .process__step {
  background: var(--white);
  border: 1px solid var(--border);
}

.demo-process .process__step:hover {
  border-color: rgba(var(--accent-light-rgb), 0.3);
}

.demo-process .process__step::before {
  color: var(--accent);
}

.form__note { font-size: 0.8125rem; color: var(--text-tertiary); text-align: center; margin-top: var(--s-2); }
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2371717A' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* ---------- Demo responsive ---------- */
@media (max-width: 767px) {
  .demo-hero { padding: calc(64px + var(--s-10)) 0 var(--s-10); }
  .demo-hero__header { margin-bottom: var(--s-8); }
  .demo-form-card { padding: var(--s-6); }
  .demo-chips { gap: var(--s-2); }
  .demo-chip { font-size: 0.75rem; padding: 6px 14px; }
}

/* ---------- Page Header Tall (kept for other pages) ---------- */
.page-header--tall { padding-bottom: var(--s-16); }

/* ---------- Process Number Override ---------- */
.process__number {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700;
  color: var(--text-tertiary); margin-bottom: var(--s-4);
}

/* ---------- Accessibility: Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.btn:focus-visible { outline-offset: 3px; }

.nav__link:focus-visible,
.footer__link:focus-visible { outline-offset: 2px; }

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

/* Skip-to-content link */
.skip-link {
  position: fixed; top: -100%; left: var(--s-4);
  z-index: 9999; padding: var(--s-3) var(--s-6);
  background: var(--black); color: var(--white);
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--r-md);
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent-gradient); z-index: 9999;
  width: 0; transition: none;
  pointer-events: none;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: var(--s-8);
  right: calc(var(--s-6) + 56px);
  z-index: 999;
  height: 44px;
  border-radius: 50px;
  background: #25D366;
  border: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 44px;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.whatsapp-btn.visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
  animation: wa-expand 7s ease 1.5s infinite;
}
.whatsapp-btn:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  fill: #fff;
}
.whatsapp-btn__text {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
}
.whatsapp-btn.visible .whatsapp-btn__text {
  animation: wa-text-fade 7s ease 1.5s infinite;
}

@keyframes wa-expand {
  0%, 5%   { max-width: 44px;  padding: 0 11px; gap: 0;    }
  12%      { max-width: 280px; padding: 0 18px; gap: 10px; }
  34%      { max-width: 280px; padding: 0 18px; gap: 10px; }
  46%      { max-width: 44px;  padding: 0 11px; gap: 0;    }
  100%     { max-width: 44px;  padding: 0 11px; gap: 0;    }
}

@keyframes wa-text-fade {
  0%, 5%   { opacity: 0; }
  12%      { opacity: 1; }
  34%      { opacity: 1; }
  46%      { opacity: 0; }
  100%     { opacity: 0; }
}

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed; bottom: var(--s-8);
  right: var(--s-6); z-index: 999;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; color: var(--text-primary); }


/* ============================================
   RESPONSIVE — Mobile & Tablet Optimization
   ============================================ */

/* --- Extra-small devices (< 480px) --- */
@media (max-width: 479px) {
  .container { padding: 0 var(--s-4); }

  /* Section spacing */
  .section { padding: var(--s-16) 0; }
  .section--lg { padding: var(--s-20) 0; }
  .section--sm { padding: var(--s-10) 0; }

  /* Hero */
  .hero { padding: calc(64px + var(--s-12)) 0 var(--s-12); }
  .hero__title br { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { border-radius: var(--r-xl); }
  .hero__subtitle { font-size: 0.9375rem; }

  /* Page header */
  .page-header { padding: calc(64px + var(--s-10)) 0 var(--s-8); }
  .page-header__text { font-size: 0.9375rem; }

  /* Typography tightening */
  .t-display { letter-spacing: -0.025em; }
  .t-body-lg { font-size: 1rem; }
  .section-header { margin-bottom: var(--s-10); }

  /* Grids */
  .grid--4 { grid-template-columns: 1fr; }
  .grid { gap: var(--s-4); }

  /* Cards */
  .card { padding: var(--s-6); }
  .module-card { padding: var(--s-5); }
  .module-card__icon { width: 36px; height: 36px; }
  .module-card__icon svg { width: 18px; height: 18px; }
  .roadmap-card { padding: var(--s-6); }
  .ai-card { padding: var(--s-5); }
  .ai-demo { margin: var(--s-8) auto var(--s-10); }
  .ai-demo__body { padding: var(--s-4); }
  .ai-demo__result { flex-direction: column; gap: var(--s-1); }

  /* Buttons */
  .btn--lg { padding: 16px 28px; font-size: 0.9375rem; }
  .btn--sm { padding: 12px 22px; }

  /* Split layout */
  .split { gap: var(--s-8); }

  /* CTA */
  .cta-section { padding: var(--s-16) 0; }
  .cta-section::before { width: 250px; height: 250px; top: -30%; right: -20%; }
  .cta-section::after { width: 200px; height: 200px; bottom: -25%; left: -15%; }
  .cta-section .btn--lg { width: 100%; }

  /* Stats */
  .stats-bar { gap: var(--s-4); padding: var(--s-8) 0; }
  .stat__number { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Process */
  .process { gap: var(--s-3); }
  .process__step { padding: var(--s-6); }

  /* FAQ */
  .faq__question { font-size: 0.9375rem; padding: var(--s-4) 0; }

  /* Footer */
  .footer { padding: var(--s-12) 0 var(--s-6); }
  .footer__grid { gap: var(--s-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Visual placeholders */
  .visual-placeholder { min-height: 200px; }

  /* Margin utilities */
  .mb-16 { margin-bottom: var(--s-10) !important; }
  .mb-12 { margin-bottom: var(--s-8) !important; }

  /* Feature list */
  .feature-list li { font-size: 0.9375rem; }
  .feature-list__check { width: 18px; height: 18px; }

  /* Comparison lists */
  .comparison-list li { font-size: 0.875rem; }
}

/* --- Small devices / landscape phones (480px – 767px) --- */
@media (min-width: 480px) and (max-width: 767px) {
  /* Section spacing */
  .section { padding: var(--s-16) 0; }
  .section--lg { padding: var(--s-24) 0; }

  /* Hero */
  .hero { padding: calc(64px + var(--s-16)) 0 var(--s-16); }
  .hero__title br { display: none; }

  /* Page header */
  .page-header { padding: calc(64px + var(--s-12)) 0 var(--s-10); }

  /* Grid: 3-col gets an intermediate 2-col step */
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Cards */
  .card { padding: var(--s-6); }

  /* Section header */
  .section-header { margin-bottom: var(--s-12); }

  /* CTA */
  .cta-section { padding: var(--s-16) 0; }
  .cta-section::before { width: 300px; height: 300px; }
  .cta-section::after { width: 250px; height: 250px; }

  /* Stats: show 4-col on sm+ since numbers are compact */
  .stats-bar { grid-template-columns: repeat(4, 1fr); }

  /* Margin utilities */
  .mb-16 { margin-bottom: var(--s-12) !important; }
}

/* --- Tablet (768px – 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Section spacing */
  .section { padding: var(--s-20) 0; }
  .section--lg { padding: var(--s-24) 0; }

  /* Hero */
  .hero { padding: calc(64px + var(--s-16)) 0 var(--s-16); }

  /* CTA */
  .cta-section { padding: var(--s-20) 0; }

  /* Section header */
  .section-header { margin-bottom: var(--s-12); }

  /* Margin utilities */
  .mb-16 { margin-bottom: var(--s-12) !important; }

  /* Split gap */
  .split { gap: var(--s-10); }

  /* Nav inner padding for tablet */
  .nav__inner { padding: 0 var(--s-8); }
}

/* --- Touch improvements for all mobile/tablet --- */
@media (max-width: 1023px) {
  /* Landing-page navigation: keep only the brand and language switcher. */
  .nav__burger,
  .nav__mobile { display: none !important; }

  /* Ensure minimum touch targets (44px) */
  .btn--sm { min-height: 44px; }
  .faq__question { min-height: 48px; }
  /* Mobile link spacing */
  .nav__mobile-link {
    padding: var(--s-4) var(--s-2);
    font-size: 1.0625rem;
    border-radius: var(--r-sm);
    transition: background var(--dur-fast) ease;
  }
  .nav__mobile-link:active { background: var(--bg-soft); }

  /* Mobile nav CTA */
  .nav__mobile-actions { padding-top: var(--s-6); }
  .nav__mobile-actions .btn { min-height: 52px; font-size: 1rem; }

  /* Disable hover card transform on touch — use active instead */
  .card:hover,
  .module-card:hover,
  .ai-card:hover,
  .roadmap-card:hover,
  .process__step:hover {
    transform: none;
  }
  .card:active { transform: scale(0.98); }
  .module-card:active { transform: scale(0.98); }

  /* Footer simplification */
  .footer__desc { max-width: 100%; }
}

/* --- Desktop enhancements (1024px+) --- */
@media (min-width: 1024px) {
  /* Container breathing room */
  .container { padding: 0 var(--s-8); }

  /* Ensure grids with many items gap well */
  .grid--4 { gap: var(--s-6); }
}

/* --- Large desktop (1200px+) --- */
@media (min-width: 1200px) {
  .container { padding: 0 var(--s-6); }
}


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in, .fade-in-left, .fade-in-right, .fade-in-scale, .fade-in-blur { opacity: 1; transform: none; filter: none; }
  .stagger-children > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .stat__number, .stats__number { -webkit-text-fill-color: initial; background: none; }
}

/* ============================================
   MOBILE EXPERIENCE — compact, tactile, calm
   ============================================ */
@media (max-width: 767px) {
  :root {
    --mobile-gutter: clamp(18px, 5.3vw, 24px);
  }

  html { scroll-padding-top: 76px; }
  body { font-size: 16px; line-height: 1.55; }
  .container { padding-inline: var(--mobile-gutter); }

  /* A clearer, more useful top bar on small screens. */
  .nav { background: rgba(255,255,255,.96); }
  .nav__inner {
    height: 64px;
    padding-inline: var(--mobile-gutter);
  }
  .nav__logo-img { height: 26px; }
  .nav__actions { gap: 8px; }
  .nav__lang {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .nav__burger { margin-right: -10px; }
  .nav__mobile {
    height: calc(100dvh - 64px);
    padding: 12px var(--mobile-gutter) max(20px, env(safe-area-inset-bottom));
    gap: 0;
    overscroll-behavior: contain;
  }
  .nav__mobile-link {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 12px 4px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 650;
  }
  .nav__mobile-link.active { color: var(--accent); }
  .nav__mobile-actions {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 18px;
    background: linear-gradient(to bottom, transparent, var(--white) 18px);
  }

  /* Mobile typography should feel editorial, never squeezed. */
  .t-display { font-size: clamp(2.2rem, 9.7vw, 2.65rem); line-height: 1.06; }
  .t-h1 { font-size: clamp(1.9rem, 8vw, 2.35rem); line-height: 1.1; }
  .t-h2 { font-size: clamp(1.55rem, 6.8vw, 1.75rem); line-height: 1.16; }
  .t-h3 { font-size: 1.2rem; }
  .t-body-lg { font-size: 1rem; line-height: 1.65; }
  .tag { margin-bottom: 16px; font-size: .7rem; letter-spacing: .09em; }

  .section,
  .section--lg { padding-block: 56px; }
  .section--sm { padding-block: 42px; }
  .section-header { margin-bottom: 30px; }
  .section-header .t-h2 { margin-bottom: 12px; }

  /* First screen: one message, one action, one product proof. */
  .hero {
    padding: 104px 0 48px;
  }
  .hero::before { background-size: 64px 64px; }
  .hero .tag { margin-bottom: 18px; }
  .hero__title { margin-bottom: 18px; }
  .hero__subtitle {
    max-width: 35ch;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.62;
  }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .hero__points { margin-bottom: 26px; }
  .hero__points li { font-size: .94rem; line-height: 1.45; }
  .hero__actions { margin-bottom: 36px; gap: 12px; }
  .hero__visual {
    width: calc(100% + 8px);
    margin-left: -4px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(24,24,27,.12);
  }

  .page-header,
  .page-header--tall { padding: 108px 0 44px; }
  .page-header__title { max-width: 16ch; }
  .page-header__text { max-width: 38ch; }

  /* Dense card collections become swipeable shelves instead of long walls. */
  .grid--3,
  .grid--4,
  .ai-grid,
  .process {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 330px);
    grid-template-columns: none;
    gap: 14px;
    width: calc(100% + var(--mobile-gutter));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: var(--mobile-gutter);
    padding: 2px var(--mobile-gutter) 16px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
  }
  .grid--3 > *,
  .grid--4 > *,
  .ai-grid > *,
  .process > * { scroll-snap-align: start; }
  .grid--3 > :last-child:nth-child(odd) { grid-column: auto; }
  .grid--2 { gap: 16px; }

  .card,
  .module-card,
  .ai-card,
  .process__step,
  .roadmap-card { padding: 22px; }
  .card__icon { margin-bottom: 18px; }
  .module-card { min-height: 210px; }
  .ai-card { min-height: 250px; }

  .split { gap: 30px; }
  .split__content .tag { margin-bottom: 14px; }
  .split__content .mb-8 { margin-bottom: 24px !important; }
  .split__media img { border-radius: 14px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .stats__item { padding: 22px 14px; }
  .stats__number { font-size: 1.05rem; }
  .stats__label { font-size: .78rem; line-height: 1.5; }

  .feature-list { gap: 14px; }
  .feature-list li { line-height: 1.5; }

  .faq__question {
    min-height: 58px;
    padding-block: 16px;
    line-height: 1.4;
  }
  .faq__answer p { line-height: 1.65; }

  .cta-section { padding-block: 56px; }
  .cta-section .t-body-lg { margin-bottom: 26px; }

  /* Forms stay comfortable and do not trigger iOS input zoom. */
  .demo-hero { padding: 104px 0 48px; }
  .demo-hero__header { margin-bottom: 26px; }
  .demo-form-card {
    padding: 22px 18px;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(24,24,27,.08);
  }
  .form { gap: 18px; }
  .form__row { gap: 18px; }
  .form__input,
  .form__textarea,
  .form__select {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 16px;
  }
  .form__textarea { min-height: 112px; }

  .btn { min-height: 48px; padding-inline: 22px; }
  .btn--lg { min-height: 52px; }

  .legal-nav {
    display: flex;
    max-width: none;
    margin-inline: calc(var(--mobile-gutter) * -1);
    padding-inline: var(--mobile-gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    white-space: nowrap;
  }
  .legal-nav__link { scroll-snap-align: start; min-height: 44px; }
  .legal-table-wrap {
    margin-inline: calc(var(--mobile-gutter) * -1);
    padding-inline: var(--mobile-gutter);
    border: 0;
    border-radius: 0;
    overflow-x: auto;
  }
  .legal-table { min-width: 620px; }

  .founder-card { grid-template-columns: 1fr; }
  .founder-card__photo { min-height: 300px; }
  .founder-card__content { padding: 26px 22px; }

  .footer {
    padding: 42px 0 max(26px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  }
  .footer__grid,
  .footer__grid[style] {
    grid-template-columns: 1fr !important;
    gap: 0;
    margin-bottom: 28px;
  }
  .footer__brand {
    grid-column: auto;
    padding-bottom: 26px;
  }
  .footer__logo { margin-bottom: 12px; }
  .footer__logo-img { height: 28px; }
  .footer__desc {
    max-width: 31ch;
    font-size: .9375rem;
    line-height: 1.6;
  }
  .footer__grid > div:not(.footer__brand) {
    padding: 22px 0;
    border-top: 1px solid var(--border);
  }
  .footer__col-title {
    margin-bottom: 12px;
    font-size: .7rem;
    color: var(--gray-500);
  }
  .footer__links { gap: 2px; }
  .footer__link {
    position: relative;
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding-right: 32px;
    font-size: .9375rem;
    color: var(--text-primary);
  }
  .footer__link::after {
    content: '›';
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.35rem;
    line-height: 1;
    transition: transform var(--dur-fast) ease;
  }
  .footer__link:active::after { transform: translate(3px, -50%); }
  .footer__link[href="demo"] {
    min-height: 52px;
    padding: 0 18px;
    justify-content: center;
    border-radius: var(--r-full);
    background: var(--accent-gradient);
    color: var(--white);
    font-weight: 650;
  }
  .footer__link[href="demo"]::after { display: none; }
  .footer--demo .footer__grid > div:nth-child(2),
  .footer--demo .footer__grid > div:nth-child(3) { display: none; }
  .footer__bottom {
    justify-content: center;
    padding-top: 22px;
    text-align: center;
  }
  .footer__copy { font-size: .75rem; }

  /* Floating controls remain useful without covering content. */
  .back-to-top,
  .whatsapp-btn { bottom: max(18px, env(safe-area-inset-bottom)); }
  .back-to-top { right: 16px; }
  .whatsapp-btn { right: 68px; }
  .whatsapp-btn.visible { animation: none; }
  .whatsapp-btn.visible .whatsapp-btn__text { animation: none; display: none; }
}

@media (max-width: 359px) {
  .t-display { font-size: 2.1rem; }
  .nav__lang { display: none; }
  .grid--3,
  .grid--4,
  .ai-grid,
  .process { grid-auto-columns: 86vw; }
}

@media (hover: none) and (pointer: coarse) {
  a, button { -webkit-tap-highlight-color: rgba(var(--accent-rgb), .12); }
  .card:active,
  .module-card:active { transform: none; }
}

/* ---------- Founder Card ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
.founder-card__photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0eef8 0%, #e8e4f5 100%);
}
.founder-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-card__content {
  position: relative;
  padding: 48px 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.founder-card__tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 14px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.founder-card__mark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.18;
  position: absolute;
  top: 20px;
  right: 40px;
  pointer-events: none;
  user-select: none;
}
.founder-card__quote {
  margin: 0;
  padding: 0;
  border: none;
}
.founder-card__quote p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a4a5a;
  margin-bottom: 16px;
}
.founder-card__quote p:last-child {
  margin-bottom: 0;
}
.founder-card__highlight {
  font-size: 1.2rem !important;
  font-weight: 700;
  color: var(--gray-900) !important;
  -webkit-text-fill-color: var(--gray-900);
  letter-spacing: -0.01em;
}
.founder-card__divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin: 24px 0;
  border-radius: 2px;
}
.founder-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.founder-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.founder-card__role {
  font-size: 0.85rem;
  color: #8a8a9a;
}
@media (max-width: 768px) {
  .founder-card {
    grid-template-columns: 1fr;
  }
  .founder-card__photo {
    height: 320px;
  }
  .founder-card__content {
    padding: 36px 28px 32px;
  }
  .founder-card__mark {
    font-size: 3.5rem;
    top: 14px;
    right: 24px;
  }
}

/* ---------- Legal Pages ---------- */
.legal-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.legal-nav__link {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.legal-nav__link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.legal-section {
  scroll-margin-top: 100px;
}
.legal-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.legal-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 12px;
}
.legal-content h3:first-child {
  margin-top: 0;
}
.legal-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px 20px;
  padding: 0;
}
.legal-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--accent);
}
.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  background: var(--bg-soft);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}
.legal-table td {
  color: var(--text-secondary);
}
.legal-table tr:last-child td {
  border-bottom: none;
}

/* ---------- Print ---------- */
@media print {
  .nav, .back-to-top, .scroll-progress, .cta-section { display: none !important; }
  .fade-in, .fade-in-left, .fade-in-right, .fade-in-scale, .fade-in-blur { opacity: 1; transform: none; filter: none; }
  .stagger-children > * { opacity: 1; transform: none; }
  body { padding: 0; font-size: 12pt; }
  .section--dark { background: #fff; color: #000; }
}

/* Keep page-specific blocks above from overriding the mobile system. */
@media (max-width: 767px) {
  .founder-card { grid-template-columns: 1fr; }
  .founder-card__photo { height: 290px; min-height: 0; }
  .founder-card__content { padding: 26px 22px; }

  .legal-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 24px calc(var(--mobile-gutter) * -1) 0;
    padding-inline: var(--mobile-gutter);
    overflow-x: auto;
  }
  .legal-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    flex: 0 0 auto;
  }
  .legal-content h3 { margin-top: 32px; }
  .legal-content p,
  .legal-content li { line-height: 1.65; }
  .legal-table-wrap {
    margin: 16px calc(var(--mobile-gutter) * -1) 24px;
    padding-inline: var(--mobile-gutter);
    border: 0;
    border-radius: 0;
  }
  .legal-table { min-width: 620px; }
}
