:root {
  --ink: #0f1b33;
  --ink-muted: #4a5468;
  --navy: #0f2a47;
  --deep: #1a1145;
  --violet-900: #2d1b69;
  --violet-700: #4c2889;
  --violet: #6c3ad1;
  --violet-300: #b49cf0;
  --lilac: #ede7fb;
  --canvas: #ffffff;
  --alt: #f5f4fa;
  --rule: #e3e1ec;
  --radius: 14px;
  --shadow: 0 30px 60px -20px rgba(26, 17, 69, 0.45), 0 12px 24px -12px rgba(26, 17, 69, 0.3);
  --brand-gradient: linear-gradient(135deg, #1a1145 0%, #2d1b69 30%, #4c2889 60%, #6c3ad1 100%);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.eyebrow--light { color: #d4c6ff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -10px rgba(108, 58, 209, 0.7);
}
.btn:hover { transform: translateY(-1px); background: #5a2cbc; }
.btn:focus-visible, .nav a:focus-visible, .nav__toggle:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 3px; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--light { background: #fff; color: var(--violet-900); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.btn--light:hover { background: var(--lilac); }
.btn--small { padding: 9px 18px; font-size: 0.9rem; }

/* Logo on dark backgrounds: same treatment as the app's login panel */
.logo-white { filter: brightness(0) invert(1) drop-shadow(0 0 32px rgba(255, 255, 255, 0.2)); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--ink-muted); }
.nav__links a:not(.btn):hover { color: var(--violet); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 112px 0 120px;
  background: var(--brand-gradient);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero__bg::before, .hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero__bg::before { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(167, 128, 255, 0.35) 0%, transparent 70%); }
.hero__bg::after { width: 640px; height: 640px; left: -220px; top: 30%; background: radial-gradient(circle, rgba(108, 58, 209, 0.3) 0%, transparent 70%); }
.hero__bg--soft::before { opacity: 0.6; }
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.lede { margin-top: 22px; font-size: 1.2rem; max-width: 34em; color: rgba(255, 255, 255, 0.82); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__mark { display: flex; justify-content: center; }
.hero__mark img { width: min(300px, 80%); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Sections */
.section { position: relative; padding: 104px 0; }
.section--tight { padding: 88px 0 96px; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--brand-gradient); color: #fff; overflow: hidden; }
.section--dark .split { position: relative; z-index: 1; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head p:not(.eyebrow) { margin-top: 16px; color: var(--ink-muted); font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.split--center { align-items: center; }
.stack > * + * { margin-top: 18px; }
.stack p { color: var(--ink-muted); }
.section--dark .stack p:not(.eyebrow) { color: rgba(255, 255, 255, 0.82); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 30px 34px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--violet-300); box-shadow: 0 24px 40px -24px rgba(76, 40, 137, 0.35); }
.pillar__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-gradient);
  margin-bottom: 22px;
}
.pillar__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar > p { margin-top: 8px; color: var(--ink-muted); }
.pillar ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--rule); }
.pillar li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.98rem; color: var(--ink-muted); }
.pillar li:last-child { border-bottom: 0; padding-bottom: 0; }
.pillar li b { color: var(--ink); font-weight: 600; }

/* Checks */
.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { position: relative; padding-left: 32px; margin-top: 12px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(180, 156, 240, 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23d9ccff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.checks--light li { color: #fff; }

/* Chat mock */
.chat {
  background: #f4f3f8;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 0.98rem;
}
.chat__head { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 12px 18px; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.chat__head img { height: 30px; width: auto; }
.chat__body { padding: 24px 22px 8px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.msg { max-width: 82%; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; align-self: flex-start; }
.msg--me { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.msg--typing { display: flex; gap: 5px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); opacity: 0.35; animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.2s; }
.msg--typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 40% { opacity: 1; } }
.chat__input { margin: 16px 18px 18px; display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1.5px solid var(--violet-300); border-radius: 10px; padding: 10px 10px 10px 14px; color: #8a90a0; }
.chat__input span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: 8px; font-weight: 700; }

/* Security cards */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { padding: 28px 24px; border-radius: var(--radius); background: var(--alt); border: 1px solid var(--rule); position: relative; }
.card::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--brand-gradient); margin-bottom: 20px; }
.card p { margin-top: 10px; color: var(--ink-muted); font-size: 0.98rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--rule); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 2px; background: var(--violet); }
.steps__n { font-family: var(--font-head); font-weight: 800; font-size: 0.9rem; color: var(--violet); letter-spacing: 0.1em; }
.steps h3 { margin-top: 10px; }
.steps p { margin-top: 10px; color: var(--ink-muted); }

/* CTA */
.cta { background: var(--brand-gradient); color: #fff; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0); background-size: 32px 32px; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__mark { width: 110px; margin-bottom: 8px; }
.cta p { max-width: 34em; color: rgba(255, 255, 255, 0.82); font-size: 1.12rem; }
.cta .btn { margin-top: 12px; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--rule); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 56px; width: auto; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--ink-muted); font-weight: 600; font-size: 0.95rem; }
.footer nav a:hover { color: var(--violet); }
.footer__copy { color: var(--ink-muted); font-size: 0.9rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 8px 16px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav__links .btn { margin-top: 16px; }
  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
