/* ============================================================
   SENTRA — Verified Revenue Intelligence
   Warm ivory theme. Calm, premium, enterprise.
   ------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Buttons & pills
   5.  Header
   6.  Hero
   7.  Dashboard mockup
   8.  How it works
   9.  Features
   10. Showcase / browser frame
   11. Footer
   12. Animations
   13. Responsive
   ============================================================ */

/* ---------- 1. Tokens ------------------------------------- */
:root {
  --bg:            #F7F5F2;   /* warm ivory — never pure white */
  --surface:       #FFFFFF;
  --surface-soft:  #FCFBF9;
  --border:        #E8E8E8;
  --border-strong: #DEDCD8;
  --ink:           #0F172A;
  --ink-mid:       #475569;
  --ink-soft:      #64748B;
  --ink-faint:     #94A3B8;

  /* Brand */
  --accent:      #047857;   /* deep emerald — actions (AA on white) */
  --accent-mid:  #059669;
  --accent-lite: #10B981;
  --blue:        #2563EB;
  --sky:         #38BDF8;
  --teal:        #14B8A6;

  --radius:      16px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  /* Soft, never heavy */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .05), 0 6px 16px -10px rgba(15, 23, 42, .12);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .04), 0 18px 40px -24px rgba(15, 23, 42, .16);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .04), 0 48px 90px -46px rgba(15, 23, 42, .26);

  --font-display: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell: 1220px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section-y: 140px;
}

/* ---------- 2. Reset & base ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
button { font: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }

.icon { width: 1em; height: 1em; flex: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.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;
}

/* ---------- 3. Layout primitives -------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 32px;
}
.shell-wide { max-width: 1360px; }

.section { padding-block: var(--section-y); }
.section-alt {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.34));
}

.section-head { max-width: 720px; margin: 0 auto 76px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); margin-bottom: 18px; }
.section-sub { color: var(--ink-soft); font-size: 1.0625rem; max-width: 580px; margin-inline: auto; }

.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px;
}

/* ---------- 4. Buttons & pills ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding-inline: 22px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: .9375rem; font-weight: 500;
  letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 15px; height: 15px; }
.btn-lg { height: 54px; padding-inline: 30px; font-size: 1rem; }

/* Deep emerald keeps white text accessible and reads richer than a bright green */
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(4, 120, 87, .18), 0 12px 26px -16px rgba(4, 120, 87, .5);
}
.btn-accent:hover {
  background: var(--accent-mid);
  box-shadow: 0 1px 2px rgba(4, 120, 87, .2), 0 16px 32px -16px rgba(4, 120, 87, .55);
}

.btn-outline {
  background: var(--surface); color: var(--ink);
  border-color: var(--border-strong); box-shadow: var(--shadow-xs);
}
.btn-outline:hover { border-color: #C9C6C1; box-shadow: var(--shadow-sm); }

.btn-ghost { background: none; color: var(--ink-soft); height: 40px; padding-inline: 14px; }
.btn-ghost:hover { color: var(--ink); }

.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.4); pointer-events: none;
  animation: ripple .6s var(--ease) forwards;
}
.btn-outline .ripple { background: rgba(15,23,42,.07); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.pill {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: .625rem; font-weight: 500; line-height: 1.6;
}
.pill-green { background: rgba(4,120,87,.09); color: var(--accent); }
.pill-blue  { background: rgba(37,99,235,.09); color: var(--blue); }

/* ---------- 5. Header ------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 10px 30px -24px rgba(15,23,42,.28);
}

.header-inner { display: flex; align-items: center; gap: 40px; height: 78px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600;
  letter-spacing: -.035em; color: var(--ink);
}
/* Mark is 256x220 — constrain by height so the aspect ratio holds */
.brand-mark { width: auto; height: 24px; object-fit: contain; }

/* No nav links — brand sits left, auth actions right */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn-accent { height: 42px; padding-inline: 20px; font-size: .875rem; }

/* Signed-in identity */
.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 4px 14px 4px 5px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: .875rem; color: var(--ink); white-space: nowrap;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
a.user-chip:hover { border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.user-chip .avatar { width: 28px; height: 28px; font-size: .75rem; }

/* ---------- 6. Hero --------------------------------------- */
.hero {
  position: relative;
  padding-top: 150px;
  overflow: hidden;
  background: var(--bg);
}

/* Aurora — enormous, heavily blurred, 5–8% opacity.
   Sky blue and mint. No circle edge should ever be perceptible. */
.aurora { position: absolute; inset: -15% -10% auto -10%; height: 125%; pointer-events: none; z-index: 0; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(140px); will-change: transform; }

.aurora-sky {
  width: 1000px; height: 1000px; top: -14%; left: -4%;
  background: radial-gradient(circle, rgba(56,189,248,.08) 0%, rgba(56,189,248,0) 68%);
  animation: drift-a 30s ease-in-out infinite alternate;
}
.aurora-mint {
  width: 920px; height: 920px; top: 2%; right: -2%;
  background: radial-gradient(circle, rgba(16,185,129,.07) 0%, rgba(16,185,129,0) 68%);
  animation: drift-b 36s ease-in-out infinite alternate;
}
.aurora-cyan {
  width: 880px; height: 760px; bottom: -16%; left: 34%;
  background: radial-gradient(circle, rgba(103,232,249,.055) 0%, rgba(103,232,249,0) 70%);
  animation: drift-c 42s ease-in-out infinite alternate;
}

/* Barely-there grid, faded out at the edges */
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,23,42,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 88% 66% at 50% 32%, #000 22%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 88% 66% at 50% 32%, #000 22%, transparent 76%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 76px;
}

/* Pulsing indicator on the hero panel's "Live analysis" label */
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-lite);
  box-shadow: 0 0 0 3px rgba(16,185,129,.16);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 4.4vw, 3.875rem);
  letter-spacing: -.042em; line-height: 1.08;
  color: var(--ink); margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--accent); }

/* Domain search */
.domain-search {
  display: flex; align-items: center; gap: 10px;
  /* Wide enough that the placeholder never truncates behind the button */
  width: min(100%, 580px);
  /* Sits directly under the headline now — no subhead to space away from */
  margin-top: 12px; padding: 8px 8px 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.domain-search:focus-within {
  border-color: rgba(4,120,87,.34);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(4,120,87,.08);
}
.domain-search.is-busy { opacity: .75; }
.domain-icon { color: var(--ink-faint); font-size: 19px; }

.domain-search input {
  flex: 1 1 auto; min-width: 0; height: 48px;
  border: 0; background: none; outline: none;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.domain-search input::placeholder { color: var(--ink-faint); }
/* Button keeps its intrinsic width instead of squeezing the field */
.domain-search .btn { flex: none; }

.domain-note { margin-top: 14px; font-size: .8125rem; min-height: 20px; color: var(--ink-soft); }
.domain-note.is-ok { color: var(--accent); }
.domain-note.is-err { color: #B91C1C; }

.proof-row {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  margin-top: 26px; font-size: .875rem; color: var(--ink-mid);
}
.proof-row li { display: inline-flex; align-items: center; gap: 8px; }
.proof-row .icon { width: 17px; height: 17px; color: var(--accent); }

/* --- Hero live-analysis panel --- */
.hero-visual { position: relative; }

.scan-panel {
  position: relative;
  max-width: 460px;
  margin-left: auto;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.scan-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.scan-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
.scan-domain {
  font-size: .8125rem; color: var(--ink-soft);
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--border);
}

/* Score ring */
.scan-score { display: flex; align-items: center; gap: 20px; padding-block: 24px; }
.ring-wrap { position: relative; width: 92px; height: 92px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring-track { stroke: #EDEBE7; }
.ring-value {
  stroke: var(--accent);
  /* r=34 → circumference ≈ 213.6; 87% leaves ≈ 27.8 undrawn */
  stroke-dasharray: 213.6;
  stroke-dashoffset: 213.6;
  animation: ring-draw 1.6s var(--ease) .5s forwards;
}
.ring-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 500;
  letter-spacing: -.04em; color: var(--ink);
}
.scan-score-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scan-score-meta b { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; }
.scan-score-meta span { font-size: .875rem; color: var(--ink-mid); }
.scan-score-meta small { font-size: .75rem; color: var(--ink-faint); }

/* Signal rows — stagger in once, then hold */
.scan-list { display: flex; flex-direction: column; gap: 2px; }
.scan-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; margin-inline: -12px;
  border-radius: 10px;
  opacity: 0;
  animation: row-in .6s var(--ease) forwards;
  animation-delay: calc(.8s + var(--i) * .28s);
}
.scan-list li + li { box-shadow: 0 -1px 0 var(--border); }

.scan-check {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(4,120,87,.09); color: var(--accent);
}
.scan-check .icon { width: 13px; height: 13px; }

.scan-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.scan-meta b { font-size: .875rem; font-weight: 500; color: var(--ink); }
.scan-meta small { font-size: .75rem; color: var(--ink-faint); }

.scan-src {
  margin-left: auto; flex: none;
  font-size: .6875rem; color: var(--ink-faint);
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--border);
}

/* Last row reads as still working */
.scan-list .is-scanning .scan-meta b { color: var(--ink-soft); }
.scan-spinner {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  border: 2px solid #EDEBE7;
  border-top-color: var(--accent);
  animation: spin 1.1s linear infinite;
}

/* Chips drifting just outside the panel */
.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: .8125rem; color: var(--ink-mid); white-space: nowrap;
  opacity: 0;
  animation: row-in .7s var(--ease) forwards, float-y var(--fd) ease-in-out infinite;
}
.hero-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-teal  { background: var(--teal);       box-shadow: 0 0 0 3px rgba(20,184,166,.14); }
.dot-green { background: var(--accent-lite); box-shadow: 0 0 0 3px rgba(16,185,129,.14); }

.chip-1 { top: 12px;    left: -18px; --fd: 9s;  animation-delay: 1.9s, 2.6s; }
.chip-2 { bottom: 26px; left: -34px; --fd: 11s; animation-delay: 2.2s, 2.9s; }

/* ---------- 7. Dashboard mockup --------------------------- */
/* Variant tokens — one rule set drives both mockups */
.dash {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 12px; line-height: 1.4; letter-spacing: -.005em;
  --d-bg:     var(--surface-soft);
  --d-panel:  var(--surface);
  --d-border: #EDEBE7;
  --d-text:   var(--ink);
  --d-muted:  var(--ink-soft);
  background: var(--d-bg);
  border: 1px solid var(--border);
  color: var(--d-text);
}
/* Sidebar */
.dash-side {
  display: flex; flex-direction: column;
  padding: 16px 12px;
  border-right: 1px solid var(--d-border);
  background: #F7F5F3;
}
.dash-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 18px; }
.dash-brand .brand-mark { height: 16px; }
.dash-brand .brand-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: -.03em; color: var(--d-text);
}

.dash-nav { display: flex; flex-direction: column; gap: 1px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 8px;
  color: var(--d-muted); font-size: 11.5px;
}
.dash-nav-item .icon { width: 13px; height: 13px; }
.dash-nav-item.is-active { background: rgba(37,99,235,.07); color: var(--blue); font-weight: 500; }

.dash-user {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding: 10px 8px 2px;
  border-top: 1px solid var(--d-border); color: var(--d-muted);
}
.dash-user .icon { width: 12px; height: 12px; margin-left: auto; }
.dash-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.dash-user-meta b { font-size: 11px; font-weight: 500; color: var(--d-text); }
.dash-user-meta small { font-size: 9.5px; color: var(--d-muted); }

/* Main */
.dash-main { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 18px; }

.dash-crumb { font-size: 10.5px; color: var(--d-muted); margin-bottom: 6px; }
.dash-crumb span { margin-inline: 5px; opacity: .5; }

.dash-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-title { font-size: 20px; letter-spacing: -.035em; color: var(--d-text); }
.dash-actions { display: flex; gap: 7px; margin-left: auto; }
.dash-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--d-border); background: var(--surface);
  font-size: 10.5px; color: var(--d-muted); white-space: nowrap;
}
.dash-btn .icon { width: 11px; height: 11px; }

.dash-tabs {
  display: flex; gap: 18px; margin-top: 14px;
  padding-bottom: 9px; border-bottom: 1px solid var(--d-border);
  overflow-x: auto; scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab { font-size: 11.5px; color: var(--d-muted); white-space: nowrap; padding-bottom: 2px; }
.dash-tab.is-active { color: var(--d-text); font-weight: 500; box-shadow: 0 9px 0 -7.5px var(--blue); }

/* Stat row */
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dash-stat {
  padding: 12px 13px; border-radius: 10px;
  background: var(--d-panel); border: 1px solid var(--d-border);
}
.dash-stat-label { font-size: 10px; color: var(--d-muted); margin-bottom: 5px; }
.dash-stat-value {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: -.04em; color: var(--d-text); line-height: 1.1;
}
.dash-stat-value small { font-size: 11px; color: var(--d-muted); margin-left: 2px; letter-spacing: -.02em; }
.dash-stat-value.is-accent { color: var(--accent); }
.dash-stat-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }
.spark { width: 46px; height: 16px; color: var(--accent-lite); flex: none; }

/* Panels */
/* Five panels across — the frame is wide enough to hold them at 12px */
.dash-panels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; flex: 1; }

.dash-panel {
  display: flex; flex-direction: column;
  padding: 12px 13px; border-radius: 10px;
  background: var(--d-panel); border: 1px solid var(--d-border);
}
.dash-panel h4 {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; color: var(--d-text); margin-bottom: 10px;
}
.dash-panel h4 .icon { width: 12px; height: 12px; color: var(--d-muted); margin-left: auto; }

.signal-list, .contact-list { display: flex; flex-direction: column; gap: 9px; }
.signal-list li, .contact-list li { display: flex; align-items: center; gap: 8px; }

.signal-icon {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: rgba(37,99,235,.07); color: var(--blue);
}
.signal-icon .icon { width: 12px; height: 12px; }

.signal-meta, .contact-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.signal-meta b, .contact-meta b {
  font-size: 10.5px; font-weight: 500; color: var(--d-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.signal-meta small, .contact-meta small { font-size: 9px; color: var(--d-muted); }

.signal-score {
  margin-left: auto; flex: none;
  min-width: 18px; height: 18px; padding-inline: 5px;
  display: grid; place-items: center; border-radius: 5px;
  background: rgba(4,120,87,.08); color: var(--accent);
  font-size: 10px; font-weight: 500;
}

.avatar {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(140deg, var(--sky), var(--teal));
  color: #fff; font-size: 9px; font-weight: 500; letter-spacing: 0;
}
.contact-in { margin-left: auto; color: var(--blue); }
.contact-in .icon { width: 13px; height: 13px; }

.bc-list { display: flex; flex-direction: column; gap: 9px; }
.bc-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: start; }
.bc-row dt { font-size: 10px; color: var(--d-muted); }
.bc-row dd { font-size: 10px; color: var(--d-text); line-height: 1.4; }

.bc-note { font-size: 9.5px; color: var(--d-muted); line-height: 1.5; margin-bottom: 6px; }
.bc-note b { color: var(--d-text); font-weight: 500; }

.dash-link {
  margin-top: auto; padding-top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--blue);
}
.dash-link .icon { width: 11px; height: 11px; }

.dash-cta {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start; margin-top: auto;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(4,120,87,.09); color: var(--accent);
  font-size: 10px; font-weight: 500;
}
.dash-cta .icon { width: 11px; height: 11px; }

/* ---------- 8. How it works ------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; text-align: center; padding-inline: 6px; }

.step-icon {
  display: grid; place-items: center;
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%;
  transition: transform .3s var(--ease);
}
.step-icon .icon { width: 24px; height: 24px; }
.step:hover .step-icon { transform: translateY(-3px); }

.tint-blue   { background: rgba(37,99,235,.08);  color: var(--blue); }
.tint-indigo { background: rgba(99,102,241,.08); color: #6366F1; }
.tint-green  { background: rgba(4,120,87,.08);   color: var(--accent); }
.tint-amber  { background: rgba(245,158,11,.1);  color: #D97706; }
.tint-sky    { background: rgba(56,189,248,.11); color: #0284C7; }

.step h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.step p { font-size: .875rem; color: var(--ink-soft); line-height: 1.55; }

.step-arrow {
  position: absolute; top: 31px; left: calc(50% + 42px); right: calc(-50% + 42px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 11px);
}
.step-arrow::after {
  content: ""; position: absolute; right: -1px; top: -2.5px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

/* ---------- 9. Features ----------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-xs);
}
.feature { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.feature-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(4,120,87,.07); color: var(--accent);
  margin-bottom: 24px; transition: background-color .3s var(--ease);
}
.feature-icon .icon { width: 21px; height: 21px; }
.feature:hover .feature-icon { background: rgba(4,120,87,.12); }

.feature h3 { font-size: 1.125rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; }

/* ---------- 10. Showcase / browser frame ------------------ */
.browser {
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 18px;
  height: 50px; padding-inline: 20px;
  border-bottom: 1px solid var(--border); background: var(--surface-soft);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E2E0DC; }
.url-pill {
  flex: 1; max-width: 360px; margin-inline: auto;
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--border);
  font-size: .75rem; color: var(--ink-soft); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-canvas .dash { border: 0; border-radius: 0; min-height: 460px; }

/* ---------- 11. Auth notice page -------------------------- */
.notice-wrap {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 120px 24px 80px;
}
.notice-card {
  position: relative; z-index: 2;
  width: min(100%, 480px);
  padding: 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.notice-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin: 0 auto 22px;
  border-radius: 14px;
  background: rgba(4,120,87,.07); color: var(--accent);
}
.notice-icon .icon { width: 24px; height: 24px; }
.notice-card h1 { font-size: 1.75rem; margin-bottom: 12px; }
.notice-card > p { color: var(--ink-soft); font-size: .9375rem; }
.notice-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- 12. Footer ------------------------------------ */
/* Single row: mark, links, status. Nothing else earns its place here. */
.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}
.footer-base {
  display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap;
  padding-block: 34px 38px;
  font-size: .8125rem; color: var(--ink-faint);
}
.footer-base .brand { font-size: 1.125rem; }
.footer-base .brand-mark { height: 20px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--ink-soft); font-size: .875rem; }
.footer-links a:hover { color: var(--ink); }

.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-lite);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
  animation: pulse 2.6s ease-in-out infinite;
}

/* ---------- 12. Animations -------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ring-draw { to { stroke-dashoffset: 27.8; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); }    to { transform: translate3d(60px,40px,0) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-70px,50px,0) scale(1); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(1); }    to { transform: translate3d(50px,-40px,0) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 16. Responsive -------------------------------- */
@media (max-width: 1120px) {
  :root { --section-y: 116px; }

  .hero { padding-top: 132px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { max-width: 640px; }
  /* Panel centres once it's no longer beside the copy */
  .scan-panel { margin-inline: auto; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .step-arrow { display: none; }   /* arrows only read in an unbroken row */

}

@media (max-width: 980px) {
  .header-inner { justify-content: space-between; gap: 16px; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  /* The mockup stops being legible below this — scroll it rather than
     letting it crush or break the page width */
  .browser-canvas {
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .browser-canvas::-webkit-scrollbar { display: none; }
  .browser-canvas .dash { min-width: 1180px; }
}

@media (max-width: 720px) {
  :root { --section-y: 88px; }

  body { font-size: 16px; }
  .shell { padding-inline: 20px; }

  /* Keep the avatar, drop the name so the header can't wrap */
  .user-chip span:last-child { display: none; }
  .user-chip { padding: 4px; }
  .notice-card { padding: 28px 24px; }

  .hero { padding-top: 118px; }
  .hero-inner { padding-bottom: 48px; gap: 44px; }
  .hero-title { font-size: clamp(2.125rem, 8vw, 2.75rem); letter-spacing: -.035em; }

  .domain-search {
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 10px; border-radius: var(--radius);
  }
  .domain-icon { display: none; }
  .domain-search input { height: 44px; padding-inline: 10px; }
  .domain-search .btn { width: 100%; }

  .proof-row { gap: 10px 20px; font-size: .8125rem; }

  /* No room to hang chips outside the panel at this width */
  .hero-chip { display: none; }
  .scan-panel { padding: 22px; border-radius: var(--radius); }
  .scan-score { gap: 16px; padding-block: 20px; }
  .ring-wrap { width: 78px; height: 78px; }
  .ring-num { font-size: 1.5rem; }

  .section-head { margin-bottom: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }

  .browser { border-radius: var(--radius); }
  .browser-bar { height: 44px; padding-inline: 14px; }
  .url-pill { font-size: .6875rem; }

  .footer-base { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-status { margin-left: 0; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
}

/* User Profile Dropdown and Header Height */
.header-inner { height: 60px !important; }

.user-menu { position: relative; }
.user-chip-btn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.user-chip-btn:hover { transform: scale(1.05); }
.user-chip-btn img, .user-chip-btn .avatar {
  width: 32px; height: 32px; font-size: 14px; border-radius: 50%;
}
.dropdown-menu {
  position: absolute; right: 0; top: 120%;
  width: 220px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.2s cubic-bezier(.22, .61, .36, 1), transform 0.2s cubic-bezier(.22, .61, .36, 1), visibility 0.2s;
  z-index: 100;
  display: flex; flex-direction: column; padding: 6px;
}
.dropdown-menu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-header {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.dropdown-header strong { font-size: 14px; color: var(--ink); line-height: 1.2; }
.dropdown-header small { font-size: 12px; color: var(--ink-soft); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; text-align: left;
  font-size: 14px; color: var(--ink-mid); border-radius: 8px; cursor: pointer;
}
.dropdown-item:hover { background: rgba(37,99,235,0.06); color: var(--blue); }
.dropdown-item .icon { width: 16px; height: 16px; }

/* Sidebar and Hero additions */
.app-sidebar {
  position: fixed; top: 60px; left: 0; bottom: 0; width: 260px;
  background: #F7F5F3; border-right: 1px solid var(--border);
  transition: left 0.3s var(--ease); z-index: 70; padding: 20px 16px;
}
.app-sidebar.is-open { left: 0; }
.app-sidebar-nav { display: flex; flex-direction: column; gap: 8px; }
.app-sidebar-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 8px; color: var(--ink-soft); font-weight: 500; font-size: 15px;
}
.app-sidebar-nav a:hover, .app-sidebar-nav a.active {
  background: rgba(37,99,235,.07); color: var(--blue);
}
.app-sidebar-nav .icon { width: 18px; height: 18px; }

body.has-sidebar main { padding-left: 260px; transition: padding-left 0.3s ease; }
.menu-toggle-btn { display: none; }

@media (max-width: 980px) { 
  .app-sidebar { left: -260px; box-shadow: var(--shadow-sm); }
  body.has-sidebar main { padding-left: 0; }
  .menu-toggle-btn { display: block; }
}

.hero-banner {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); padding: 40px; border-radius: 8px;
  margin-bottom: 40px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ""; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%); border-radius: 50%;
}
.hero-banner h2 { color: var(--ink); margin-bottom: 12px; font-size: 2.2rem; position: relative; z-index: 2; font-family: var(--font-display); }
.hero-banner p { color: var(--ink-soft); font-size: 1.1rem; max-width: 600px; line-height: 1.6; position: relative; z-index: 2; }

/* Skeleton Loading */
.skeleton-card { position: relative; overflow: hidden; pointer-events: none; }
.skeleton-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.4) 50%, transparent 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; z-index: 10;
  background-color: #EFEFEF; color: transparent;
}
.skeleton-card * { visibility: hidden; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

