/* Seshat — marketing landing page. Self-contained (does NOT load brand.css) so the
   high-fidelity type scale and layout match the design handoff exactly. Shared app
   pages keep using brand.css. */

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

:root {
  --ink: #0F2540;
  --ink-2: #16335A;
  --gold: #D4AF37;
  --gold-hover: #c39f2f;
  --gold-hover-2: #e0bd46;
  --gold-text: #B8912F;
  --gold-icon-bg: #FBF3D9;
  --gold-on-navy: #E7C766;
  --teal: #2AC1B8;
  --teal-text: #12867D;
  --teal-icon-bg: #E5F7F5;
  --slate: #64748B;
  --muted: #5A6B82;
  --body-dark: #AEBCCE;
  --line: #E2E8F0;
  --line-2: #EEF1F5;
  --paper: #FAFAF9;
  --white: #FFFFFF;
  --navy-card: #16335A;
  --navy-card-border: #24466f;
  --navy-deep: #0B1D33;
  --sep: #CBD5E1;
  --shadow-card: 0 8px 24px rgba(15,37,64,.05);
  --shadow-card-hover: 0 18px 44px rgba(15,37,64,.09);
  --shadow-pop: 0 22px 54px rgba(212,175,55,.20);
  --shadow-mock: 0 30px 70px rgba(15,37,64,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover-2); transform: translateY(-2px); }
.btn-gold-sm { padding: 10px 18px; }
.btn-gold-sm:hover { background: var(--gold-hover); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--slate); }
.btn-block { width: 100%; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow.on-navy { color: var(--gold-on-navy); }

/* ---------- nav ---------- */
.site-header { position: relative; z-index: 40; }   /* desktop: sticky-free per design */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { height: 40px; width: auto; }
.brand .lock { display: inline-flex; flex-direction: column; line-height: 1; }
.brand .word { font-size: 22px; font-weight: 600; color: var(--ink); }
.brand .tag { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right .signin { font-size: 15px; color: var(--ink-2); }
.nav-right .signin:hover { color: var(--ink); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.hamburger svg { width: 26px; height: 26px; }
.mobile-drawer { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  border-radius: 24px; padding: 76px 60px 150px; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 340px at 22% 8%, #D4AF3722, transparent 70%),
    radial-gradient(720px 360px at 82% 30%, #2AC1B81f, transparent 72%);
}
.hero > * { position: relative; }
.pill {
  display: inline-block; text-align: center;
  border: 1px solid rgba(212,175,55,.4); color: var(--gold-on-navy);
  font-size: 13px; font-weight: 500; padding: 8px 18px; border-radius: 999px; margin-bottom: 26px;
}
.pill .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); vertical-align: middle; margin-right: 8px; }
.hero h1 {
  color: var(--white); font-size: 68px; line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 auto 22px; max-width: 14ch;
}
.hero .sub { color: var(--body-dark); font-size: 19px; max-width: 560px; margin: 0 auto 34px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- product dashboard mock ---------- */
.mock-wrap { max-width: 1000px; margin: -108px auto 0; padding: 0 40px; position: relative; z-index: 2; }
.mock {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-mock); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.mock-dots { display: flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: #DBE2EA; display: block; }
.mock-search {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 13px; font-size: 13.5px; color: var(--slate);
}
.mock-search svg { width: 15px; height: 15px; color: var(--slate); }
.mock-online { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--teal-text); white-space: nowrap; }
.mock-online .live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulseDot 2s infinite; }
.mock-body { display: grid; grid-template-columns: 210px 1fr; gap: 0; }
.mock-side { border-right: 1px solid var(--line-2); padding: 20px 18px; }
.mock-side .lbl { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.yr { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 3px; }
.yr .n { color: var(--slate); font-variant-numeric: tabular-nums; }
.yr.on { background: var(--ink); color: var(--white); }
.yr.on .n { color: #AEBCCE; }
.mock-main { padding: 22px 24px; }
.mock-main .rt { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.mock-main .rt h4 { font-size: 16px; font-weight: 600; }
.mock-main .rt .pct { font-size: 15px; font-weight: 600; color: var(--teal-text); font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 999px; background: #EEF2F6; overflow: hidden; margin-bottom: 22px; }
.meter i { display: block; height: 100%; width: 96%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--teal)); }
.vrow { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.vrow .tile { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vrow .tile.ok { background: var(--teal-icon-bg); color: var(--teal-text); }
.vrow .tile.busy { background: var(--navy-deep); color: var(--gold); }
.vrow .tile svg { width: 17px; height: 17px; }
.vrow .g { flex: 1; min-width: 0; }
.vrow .t { font-size: 14px; font-weight: 500; }
.vrow .s { font-size: 12.5px; color: var(--slate); }
.vrow .flag { font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--teal-text); }
.spin { animation: spin 3s linear infinite; }

/* ---------- trust strip ---------- */
.trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; padding: 40px 0 8px; }
.trust .item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.trust .item .sq { width: 15px; height: 15px; border-radius: 4px; border: 2px solid var(--teal); flex-shrink: 0; }
.trust .sep { color: var(--sep); }

/* ---------- sections ---------- */
section.pad { padding: 74px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

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

/* feature cards */
.fcard { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.itile { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.itile.gold { background: var(--gold-icon-bg); color: var(--gold-text); }
.itile svg { width: 22px; height: 22px; }
.fcard h3 { font-size: 20px; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 14.5px; }

/* how it works */
.step { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow-card); }
.step .num { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.place { border-radius: 14px; padding: 22px; text-align: center; border: 1px solid var(--line); background: var(--white); }
.place.vault { background: var(--ink); border-color: var(--ink); }
.place .plbl { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.place.vault .plbl { color: var(--gold-on-navy); }
.place .pd { font-size: 14px; color: var(--muted); margin-top: 8px; }
.place.vault .pd { color: var(--body-dark); }

/* ---------- security (full-bleed navy) ---------- */
.security { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.security::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 360px at 15% 0%, #D4AF3722, transparent 70%),
    radial-gradient(760px 380px at 88% 60%, #2AC1B824, transparent 72%);
}
.security > .wrap { position: relative; }
.security .section-head h2 { color: var(--white); }
.security .section-head p { color: var(--body-dark); }
.scard { background: var(--navy-card); border: 1px solid var(--navy-card-border); border-radius: 16px; padding: 26px; transition: border-color .18s ease, transform .18s ease; }
.scard:hover { border-color: var(--gold); transform: translateY(-3px); }
.scard .itile { background: rgba(212,175,55,.12); color: var(--gold); }
.scard h3 { font-size: 19px; color: var(--white); margin-bottom: 8px; }
.scard p { color: var(--body-dark); font-size: 14.5px; }
.attacker-lbl { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-on-navy); margin: 52px 0 18px; }
.layers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.layer { background: var(--navy-deep); border: 1px solid var(--navy-card-border); border-radius: 12px; padding: 18px 16px; }
.layer .ln { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--teal); margin-bottom: 8px; }
.layer .lt { font-size: 14px; font-weight: 500; color: var(--white); }

/* ---------- pricing ---------- */
.toggle-wrap { display: flex; justify-content: center; margin: -18px 0 40px; }
.toggle { display: inline-flex; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.toggle button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); padding: 9px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .14s, color .14s; }
.toggle button.on { background: var(--ink); color: var(--white); }
.toggle .save { font-size: 11px; font-weight: 600; color: var(--gold-text); }
.toggle button.on .save { color: var(--gold-on-navy); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow-card); }
.tier.pop { border: 2px solid var(--gold); box-shadow: var(--shadow-pop); }
.tier .badge-pop { display: inline-block; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.tier .tname { font-size: 20px; font-weight: 600; }
.tier .tblurb { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tier .price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.tier .price .amt { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier .price .per { font-size: 16px; color: var(--muted); }
.tier .pnote { font-size: 13px; color: var(--teal-text); min-height: 19px; margin-bottom: 20px; }
.tier .divider { height: 1px; background: var(--line-2); margin: 20px 0; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { position: relative; padding: 7px 0 7px 26px; font-size: 14.5px; color: var(--muted); }
.tier li svg { position: absolute; left: 0; top: 9px; width: 16px; height: 16px; color: var(--teal); }
.footnote { text-align: center; font-size: 13px; color: var(--slate); max-width: 760px; margin: 28px auto 0; }

/* ---------- final CTA ---------- */
.final { background: var(--ink); color: var(--white); border-radius: 24px; padding: 68px 40px; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px 320px at 50% 0%, #D4AF3722, transparent 70%); }
.final > * { position: relative; }
.final .mark { height: 44px; margin: 0 auto 22px; }
.final h2 { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); margin-bottom: 16px; }
.final p { color: var(--body-dark); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 6px; padding: 30px 0 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot .fbrand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.foot .fbrand .mark { height: 24px; }
.foot .flinks { display: flex; flex-wrap: wrap; gap: 6px 4px; font-size: 13px; color: var(--slate); }
.foot .flinks a:hover { color: var(--ink); }
.foot .flinks .d { color: var(--sep); }

/* ---------- scroll reveal ----------
   Hidden state is applied ONLY when JS is active (html.js-anim), so a no-JS
   render — or one where IntersectionObserver never fires — stays fully visible. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal { opacity: 0; transform: translateY(24px); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* small desktop / large tablet: thin the widest grids */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .layers { grid-template-columns: repeat(3, 1fr); }
}

/* mobile header: sticky + translucent blur (tablet & phone) */
@media (max-width: 860px) {
  .site-header {
    position: sticky; top: 0;
    background: rgba(250,250,249,.9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226,232,240,.6);
  }
  .nav { padding: 13px 0; }
}

/* tablet (641–860): hamburger nav, medium headline, 2-col grids — NOT full phone */
@media (min-width: 641px) and (max-width: 860px) {
  .nav-links, .nav-right .signin, .nav-right .btn { display: none; }
  .hamburger { display: inline-flex; }
  .wrap { padding: 0 28px; }
  .hero { border-radius: 22px; padding: 62px 40px 132px; }
  .hero h1 { font-size: 48px; letter-spacing: -0.025em; }
  .hero .sub { font-size: 17px; }
  .section-head h2, .final h2 { font-size: 34px; }
  .security .grid-3 { grid-template-columns: repeat(2, 1fr); }  /* 6 cards → 3×2 */
}

/* phone (≤640): single column everything */
@media (max-width: 640px) {
  .nav-links, .nav-right .signin, .nav-right .btn { display: none; }
  .hamburger { display: inline-flex; }
  .wrap { padding: 0 22px; }
  .hero { border-radius: 20px; padding: 54px 24px 128px; }
  .hero h1 { font-size: 33px; letter-spacing: -0.02em; }
  .hero .sub { font-size: 15px; }
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; }
  .pill-full { display: none; }               /* shorten hero pill on phones */
  .mock-wrap { padding: 0 16px; margin-top: -100px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-bar { flex-wrap: wrap; }              /* keep "VAULT ONLINE" from clipping */
  .mock-search { order: 3; flex-basis: 100%; }
  section.pad { padding: 44px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2, .final h2 { font-size: 27px; }
  .section-head p { font-size: 15px; }
  .grid-3, .grid-4, .tiers, .places, .layers { grid-template-columns: 1fr; }
  .trust { flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 0 4px; }
  .trust .sep { display: none; }
  .fcard, .step, .tier { padding: 22px; }
  .fcard h3 { font-size: 18px; }
  .tier .price .amt { font-size: 32px; }
  .attacker-lbl { margin-top: 36px; }
  .final { border-radius: 20px; padding: 48px 24px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- mobile drawer ---------- */
.mobile-drawer.open { display: block; }
.mobile-drawer {
  position: fixed; inset: 0; z-index: 50; background: rgba(15,37,64,.5);
}
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; width: min(84vw, 340px); height: 100%;
  background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: -20px 0 60px rgba(15,37,64,.25);
}
.mobile-drawer .panel .x { align-self: flex-end; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
.mobile-drawer .panel a { padding: 13px 8px; font-size: 16px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.mobile-drawer .panel a.btn { border-bottom: 0; margin-top: 14px; justify-content: center; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock-online .live, .spin, .meter i { animation: none !important; }
  .btn, .fcard, .scard, .place { transition: none; }
}

@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 0 rgba(42,193,184,.5); } 50% { box-shadow: 0 0 0 5px rgba(42,193,184,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .7s ease both; }
