:root {
  --purple: #6d28d9;
  --purple-deep: #4c1d95;
  --purple-light: #8b5cf6;
  --pink: #ec4899;
  --pink-light: #f472b6;
  --lavender: #f5f3ff;
  --lavender-2: #ede9fe;
  --ink: #16112b;
  --ink-soft: #4b4560;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --border: #e9e5f5;
  --white: #ffffff;
  --green: #12b76a;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 2px 8px rgba(76, 29, 149, 0.06);
  --shadow-md: 0 8px 24px rgba(76, 29, 149, 0.12);
  --shadow-lg: 0 20px 48px rgba(76, 29, 149, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--lavender-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 16px 0 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.highlight {
  background: linear-gradient(90deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--purple-light); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--purple-deep);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(76, 29, 149, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

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

.footer-brand .logo-img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--purple); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg) translate(4px, 5px); background: var(--ink); }
.nav-toggle.open span::after { transform: rotate(-45deg) translate(4px, -5px); background: var(--ink); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 120px;
  background: radial-gradient(circle at 15% 10%, #efe7ff 0%, transparent 45%),
              radial-gradient(circle at 90% 0%, #ffe4f2 0%, transparent 40%),
              var(--white);
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}
.blob-1 { width: 420px; height: 420px; top: -120px; right: -100px; background: linear-gradient(135deg, var(--purple-light), var(--pink-light)); }
.blob-2 { width: 300px; height: 300px; bottom: -80px; left: -100px; background: linear-gradient(135deg, #a78bfa, #f9a8d4); opacity: 0.35; }

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  text-align: center;
}

.hero-copy { max-width: 760px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  margin: 20px 0 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-actions .btn { min-width: 250px; }

.hero-note {
  font-size: 13.5px;
  color: var(--gray-light);
}

/* ---------- Hero visual: chat mock ---------- */
.hero-visual { margin: 56px auto 0; max-width: 880px; }

.mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--lavender);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-title { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.mockup-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }

.chat-row { display: flex; gap: 12px; max-width: 78%; }
.chat-row.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}
.chat-row.user .chat-avatar { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.chat-row.ai .chat-avatar { background: linear-gradient(135deg, #22d3ee, #6d28d9); }

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}
.chat-row.user .chat-bubble { background: var(--lavender-2); color: var(--ink); border-top-right-radius: 4px; }
.chat-row.ai .chat-bubble { background: var(--lavender); color: var(--ink); border-top-left-radius: 4px; }

.chat-steps {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.chat-step .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: white; font-size: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chat-step.pending .check { background: var(--lavender-2); color: var(--purple); }

/* ---------- Stats bar ---------- */
.stats-bar {
  padding: 44px 0;
  background: var(--ink);
  color: white;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: "Sora", sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  background: linear-gradient(90deg, #c4b5fd, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 6px; font-size: 13.5px; color: #b8b3cc; }

/* ---------- Modes section ---------- */
.modes { padding: 120px 0; background: var(--white); }

.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode-card {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.mode-card .mode-step {
  position: absolute;
  top: 24px; right: 26px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--gray-light);
}

.mode-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: white;
}
.mode-card:nth-child(1) .mode-icon { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.mode-card:nth-child(2) .mode-icon { background: linear-gradient(135deg, var(--purple-light), var(--purple)); }
.mode-card:nth-child(3) .mode-icon { background: linear-gradient(135deg, var(--pink), #db2777); }

.mode-card h3 { font-size: 19px; margin-bottom: 10px; }
.mode-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }

.mode-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-tag {
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--radius-full);
  background: var(--lavender); color: var(--purple-deep);
}

/* ---------- Features ---------- */
.features { padding: 120px 0; background: var(--lavender); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--lavender-2);
  color: var(--purple);
}

.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Comparison ---------- */
.comparison { padding: 120px 0; background: var(--white); }

.compare-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.compare-table { width: 100%; border-collapse: collapse; }

.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--ink);
  color: white;
  font-family: "Sora", sans-serif;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare-table thead th.hl {
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.compare-table td.hl { background: var(--lavender); font-weight: 600; }

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: #faf9ff; }
.compare-table tbody tr:hover td.hl { background: var(--lavender-2); }

/* ---------- Use cases ---------- */
.use-cases { padding: 120px 0; background: var(--lavender); }

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--border);
}

.use-case-card .num {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--purple);
  margin-bottom: 14px;
}

.use-case-card h3 { font-size: 18px; margin-bottom: 10px; }
.use-case-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Security / on-premise ---------- */
.security {
  padding: 100px 0;
  background: var(--ink);
  color: white;
}
.security .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.security h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 16px; color: white; }
.security > .container > div:first-child p { color: #c9c4de; font-size: 15.5px; line-height: 1.7; margin-bottom: 8px; }

.security-list { display: flex; flex-direction: column; gap: 16px; }
.security-item {
  display: flex; gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
}
.security-item .icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  display: flex; align-items: center; justify-content: center; color: white;
}
.security-item h4 { font-size: 14.5px; margin-bottom: 4px; color: white; }
.security-item p { font-size: 13px; color: #b8b3cc; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { padding: 120px 0; background: var(--white); }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  text-align: left;
  background: var(--white);
}

.faq-q .plus {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--lavender-2); color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-size: 16px;
  font-weight: 700;
}

.faq-item.open .faq-q .plus { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.contact { padding: 100px 0 120px; background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--lavender);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
}

.contact-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-light); margin-bottom: 4px; }
.contact-card p { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- Final CTA ---------- */
.cta-final {
  margin: 0 24px 24px;
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple) 50%, var(--pink));
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-final h2 { font-size: clamp(28px, 4.4vw, 44px); color: white; margin-bottom: 16px; }
.cta-final p { font-size: 16.5px; color: #ece6ff; max-width: 560px; margin: 0 auto 32px; }
.cta-final .hero-actions { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer { padding: 64px 0 32px; background: var(--white); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { margin: 16px 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; max-width: 280px; }

.footer-col h5 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gray-light); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  font-size: 13px; color: var(--gray-light);
  flex-wrap: wrap; gap: 12px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .mode-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .use-case-grid { grid-template-columns: 1fr; }
  .security .container { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 140px 0 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .compare-table-wrap { overflow-x: auto; }
  .compare-table { min-width: 640px; }
  .cta-final { margin: 0 12px 12px; padding: 56px 24px; border-radius: 24px; }
  .security .container { gap: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; min-width: 0; }
}
