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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-primary); background: var(--color-bg); color: var(--color-body); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8fa;
  --color-surface: #ffffff;
  --color-surface-hover: #f4f4f6;
  --color-border: rgba(0,0,0,0.08);
  --color-border-hover: rgba(99,102,241,0.4);
  --color-indigo: #6366f1;
  --color-indigo-light: #818cf8;
  --color-indigo-dark: #4f46e5;
  --color-indigo-glow: rgba(99,102,241,0.10);
  --color-indigo-subtle: rgba(99,102,241,0.06);
  --color-heading: #111113;
  --color-body: #52525b;
  --color-body-light: #71717a;
  --color-muted: #a1a1aa;
  --color-white-pure: #ffffff;
  --color-green: #22c55e;
  --color-red: #ef4444;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.12);
}

h1,h2,h3,h4,h5,h6 { color: var(--color-heading); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem,3.5vw,2.5rem); }
h3 { font-size: clamp(1.25rem,2vw,1.5rem); }
p { color: var(--color-body); line-height: 1.7; font-size: 1.0625rem; }

.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-indigo); margin-bottom: 1rem;
}

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--indigo { background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(99,102,241,0.02) 100%); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.text-center { text-align: center; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm);
}
.nav__inner { max-width: var(--container-max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { position: relative; display: flex; align-items: center; }
.nav__logo img { height: 28px; transition: opacity var(--transition-base); }
.nav__logo .logo-white { position: absolute; top: 0; left: 0; }
.nav__logo .logo-indigo { opacity: 0; }
.nav.scrolled .nav__logo .logo-white { opacity: 0; }
.nav.scrolled .nav__logo .logo-indigo { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link { font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.8); transition: color var(--transition-fast); position: relative; }
.nav__link:hover, .nav__link.active { color: #fff; }
.nav.scrolled .nav__link { color: var(--color-body-light); }
.nav.scrolled .nav__link:hover, .nav.scrolled .nav__link.active { color: var(--color-heading); }
.nav__link.active::after { content:''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--color-indigo-light); border-radius: 1px; }
.nav.scrolled .nav__link.active::after { background: var(--color-indigo); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px;
  background: var(--color-indigo); color: #fff; font-size: 0.875rem;
  font-weight: 600; border-radius: var(--radius-full);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.nav__cta:hover { background: var(--color-indigo-dark); box-shadow: var(--shadow-glow); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-base); }
.nav.scrolled .nav__hamburger span { background: var(--color-heading); }
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav {
  position: fixed; inset: 0; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav a { font-size: 1.5rem; font-weight: 600; color: var(--color-heading); }
.mobile-nav a:hover { color: var(--color-indigo); }

/* --- Hero (dark gradient for contrast) --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 120px 24px 80px;
  background: linear-gradient(180deg, #0f0f14 0%, #1a1a2e 50%, #f8f8fa 100%);
  overflow: hidden;
}
.hero h1, .hero h2 { color: #fff; }
.hero p, .hero .hero__subtitle { color: rgba(255,255,255,0.7); }
.hero .eyebrow { color: var(--color-indigo-light); }
.hero--short {
  min-height: auto; padding: 160px 24px 80px;
  background: linear-gradient(180deg, #0f0f14 0%, #1a1a2e 60%, #f8f8fa 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 800px; }
.hero__title { margin-bottom: 24px; }
.hero__subtitle { font-size: clamp(1.125rem,2vw,1.375rem); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }

/* Hero Orb */
.hero__orb-container { position: relative; width: 280px; height: 280px; margin: 0 auto 48px; }
.hero__orb {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--color-indigo-light), var(--color-indigo), var(--color-indigo-dark));
  box-shadow: 0 0 80px rgba(99,102,241,0.3), 0 0 160px rgba(99,102,241,0.15);
  animation: orbPulse 4s ease-in-out infinite, orbFloat 6s ease-in-out infinite;
}
.hero__orb::before { content:''; position: absolute; inset: -20px; border-radius: 50%; border: 1px solid rgba(99,102,241,0.2); animation: orbRing 4s ease-in-out infinite; }
.hero__orb::after { content:''; position: absolute; inset: -50px; border-radius: 50%; border: 1px solid rgba(99,102,241,0.08); animation: orbRing 4s ease-in-out infinite 1s; }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes orbFloat { 0%,100% { margin-top: 0; } 50% { margin-top: -12px; } }
@keyframes orbRing { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.1); opacity: 0.2; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius-full);
  transition: all var(--transition-fast); white-space: nowrap;
}
.btn--primary { background: var(--color-indigo); color: #fff; }
.btn--primary:hover { background: var(--color-indigo-dark); box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
/* Light variant for non-hero sections */
.btn--outline-dark { background: transparent; color: var(--color-heading); border: 1px solid var(--color-border); }
.btn--outline-dark:hover { border-color: var(--color-indigo); color: var(--color-indigo); background: var(--color-indigo-subtle); }
.btn--ghost { background: transparent; color: var(--color-indigo); padding: 14px 16px; }
.btn--ghost:hover { color: var(--color-indigo-dark); }
.btn--ghost .arrow { display: inline-block; transition: transform var(--transition-fast); }
.btn--ghost:hover .arrow { transform: translateX(4px); }
.btn--lg { padding: 18px 40px; font-size: 1rem; }
.btn--sm { padding: 10px 20px; font-size: 0.8125rem; }

/* --- Cards --- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { border-color: var(--color-border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: var(--color-indigo-subtle); border-radius: var(--radius-md); margin-bottom: 20px;
}
.card__title { font-size: 1.125rem; font-weight: 600; color: var(--color-heading); margin-bottom: 12px; }
.card__text { font-size: 0.9375rem; color: var(--color-body); line-height: 1.6; }

/* Feature Card */
.feature-card { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-card--reverse { direction: rtl; }
.feature-card--reverse > * { direction: ltr; }
.feature-card__content { padding: 40px 0; }
.feature-card__image { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.feature-card__image img { width: 100%; }

/* --- KBD --- */
kbd {
  display: inline-block; padding: 4px 10px; font-family: var(--font-mono);
  font-size: 0.8125rem; font-weight: 500; color: var(--color-heading);
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.kbd-combo { display: inline-flex; align-items: center; gap: 6px; }
.kbd-plus { color: var(--color-muted); font-size: 0.75rem; }
/* In hero (dark bg) */
.hero kbd { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: #fff; }

/* --- Tables --- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--color-bg-alt); }
th { padding: 16px 20px; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--color-body-light); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--color-border); }
td { padding: 16px 20px; font-size: 0.9375rem; color: var(--color-body); border-bottom: 1px solid var(--color-border); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition-fast); }
tbody tr:hover { background: var(--color-bg-alt); }
.check { color: var(--color-green); font-weight: 700; }
.cross { color: var(--color-muted); }

/* --- Steps --- */
.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.step { flex: 1; min-width: 240px; max-width: 320px; text-align: center; padding: 32px; }
.step__number {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.25rem; font-weight: 700;
  color: var(--color-indigo); background: var(--color-indigo-subtle);
  border: 1px solid rgba(99,102,241,0.15); border-radius: 50%;
}
.step__title { font-size: 1.125rem; font-weight: 600; color: var(--color-heading); margin-bottom: 12px; }
.step__text { font-size: 0.9375rem; color: var(--color-body); }

/* --- CTA Band --- */
.cta-band {
  padding: 100px 24px; text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(99,102,241,0.06) 50%, var(--color-bg) 100%);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Section Headers --- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 { margin-bottom: 16px; }

/* --- Screenshot --- */
.screenshot { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.screenshot img { width: 100%; display: block; }

/* --- Footer --- */
.footer { padding: 80px 24px 40px; border-top: 1px solid var(--color-border); background: #fafafa; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: var(--container-max); margin: 0 auto 60px; }
.footer__brand p { margin-top: 16px; font-size: 0.875rem; color: var(--color-body-light); max-width: 280px; }
.footer__brand img { height: 28px; }
.footer__heading { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__link { font-size: 0.875rem; color: var(--color-body-light); transition: color var(--transition-fast); }
.footer__link:hover { color: var(--color-indigo); }
.footer__bottom { max-width: var(--container-max); margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--color-muted); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: var(--color-muted); transition: color var(--transition-fast); }
.footer__social a:hover { color: var(--color-heading); }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 1.0625rem; font-weight: 600; color: var(--color-heading); text-align: left; cursor: pointer; }
.faq-question:hover { color: var(--color-indigo); }
.faq-chevron { transition: transform var(--transition-base); color: var(--color-muted); flex-shrink: 0; }
.faq-item.active .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 24px; font-size: 0.9375rem; }

/* --- Forms --- */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--color-heading); margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%; padding: 14px 16px; font-family: var(--font-primary);
  font-size: 0.9375rem; color: var(--color-heading); background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast); outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--color-indigo); box-shadow: 0 0 0 3px var(--color-indigo-subtle); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-muted); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .feature-card { grid-template-columns: 1fr; gap: 32px; }
  .feature-card--reverse { direction: ltr; }
  .footer__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 140px 24px 60px; }
  .hero__orb-container { width: 200px; height: 200px; margin-bottom: 32px; }
  .steps { flex-direction: column; align-items: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero__actions { flex-direction: column; }
  .cta-band { padding: 80px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 120px 16px 48px; }
  .card { padding: 24px; }
}
