/* PhishGuard landing page. No build step, no external requests. */
:root {
  --bg: #060912;
  --bg-2: #0a0f1c;
  --surface: #0d1424;
  --surface-2: #111a2e;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #e6edf6;
  --muted: #9aa8bc;
  --accent: #34d399;
  --accent-strong: #10b981;
  --accent-ink: #032b1e;
  --lime: #a3e635;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* config-driven elements (store link, contact) */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; padding: .1em .35em; border-radius: 6px; background: rgba(148, 163, 184, .12); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
.btn-primary:hover { background: #4ee0ab; box-shadow: 0 8px 28px -10px rgba(52, 211, 153, .6); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .06); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6, 9, 18, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.brand-icon { width: 26px; height: 26px; fill: rgba(52, 211, 153, .12); stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.nav-menu a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 185, 129, .16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); font-size: 14px; background: rgba(255,255,255,.02); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 6.2vw, 76px); font-weight: 750; letter-spacing: -0.035em; }
.accent { background: linear-gradient(90deg, var(--accent), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; max-width: 540px; color: var(--muted); font-size: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--accent); width: 16px; height: 16px; }

/* Product mockup (light, like real Gmail and the real overlay) */
.mock { margin: 0; }
.mock figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.mock-window {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong);
  background: #f6f8fc; box-shadow: var(--shadow), 0 0 0 1px rgba(52, 211, 153, .06), 0 30px 80px -40px rgba(16, 185, 129, .35);
  color: #1f1f1f; font-family: "Google Sans", Roboto, var(--font); font-size: 13px; line-height: 1.45;
}
.mock-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #e9edf4; border-bottom: 1px solid #dde3ec; }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.url { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #5f6368; font-size: 12px; }
.url .icon { width: 12px; height: 12px; }
.gm { display: grid; grid-template-columns: 150px 1fr; min-height: 640px; }
.gm-side { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; }
.gm-compose { margin-bottom: 10px; padding: 12px 16px; border-radius: 16px; background: #c2e7ff; font-weight: 500; width: max-content; }
.gm-nav { display: flex; justify-content: space-between; padding: 6px 14px; border-radius: 999px; color: #444746; }
.gm-nav.on { background: #d3e3fd; color: #041e49; font-weight: 600; }
.gm-main { position: relative; margin: 8px 8px 8px 0; padding: 0 22px 22px; background: #fff; border-radius: 16px; overflow: hidden; }
.gm-toolbar { display: flex; gap: 14px; height: 44px; align-items: center; border-bottom: 1px solid #eceff3; }
.gm-toolbar i { width: 18px; height: 18px; border-radius: 4px; background: #e3e7ee; }
.gm-subject { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.gm-subject h3 { font-size: 19px; font-weight: 400; letter-spacing: 0; line-height: 1.3; }
.pg-badge { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px; border-radius: 999px; background: #b3261e; color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 2px 10px rgba(179, 38, 30, .35); }
.pg-badge .icon { width: 14px; height: 14px; }
.gm-from { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.gm-from strong { font-weight: 600; margin-right: 4px; }
.gm-from span, .gm-from small { color: #5f6368; font-size: 12px; }
.gm-from small { display: block; }
.gm-from time { margin-left: auto; color: #5f6368; font-size: 12px; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #7b5ea7; color: #fff; font-weight: 600; }
.gm-body { margin: 18px 0 0 44px; max-width: 300px; color: #3c4043; }
.gm-body p + p { margin-top: 10px; }
.gm-btn { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 4px; background: #1a4fa0; color: #fff; font-weight: 600; }
.gm-link { margin-top: 8px; color: #1a73e8; text-decoration: underline; font-size: 12px; }

.pg-panel {
  position: absolute; top: 112px; right: 14px; width: min(64%, 380px);
  background: #fff; border: 1px solid #dadce0; border-radius: 16px;
  box-shadow: 0 12px 32px rgba(60, 64, 67, .24), 0 2px 6px rgba(60, 64, 67, .12);
  transform-origin: top right;
}
.pg-head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid #e3e6ea; font-weight: 500; font-size: 13px; }
.pg-logo { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #0b57d0; color: #fff; font-size: 11px; font-weight: 700; }
.pg-close { margin-left: auto; width: 16px; height: 16px; color: #5f6368; }
.pg-body { padding: 12px 16px 16px; }
.pg-label { margin-top: 10px; color: #0b57d0; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pg-label:first-child { margin-top: 0; }
.pg-score { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.pg-num { color: #b3261e; font-size: 38px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.pg-num small { color: #5f6368; font-size: 16px; font-weight: 500; }
.pg-score strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.pg-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #fce8e6; color: #b3261e; font-size: 11px; font-weight: 600; }
.pg-pill .icon { width: 12px; height: 12px; }
.pg-meter { position: relative; height: 6px; margin: 12px 0 4px; border-radius: 3px; background: #e8eaed; overflow: hidden; }
.pg-meter span { position: absolute; inset: 0 8% 0 0; border-radius: 3px; background: #b3261e; transform-origin: left; }
.pg-signals { margin: 6px 0 0; padding: 0; list-style: none; }
.pg-signals li { display: flex; gap: 8px; padding: 5px 0; font-size: 12px; color: #3c4043; }
.pg-signals li + li { border-top: 1px solid #f1f3f4; }
.pg-signals .icon { width: 14px; height: 14px; margin-top: 2px; color: #b3261e; }
.pg-action { margin-top: 10px; padding: 9px 12px; border-left: 3px solid #b3261e; border-radius: 8px; background: #fce8e6; font-size: 12px; color: #3c4043; }
.pg-action strong { display: block; color: #1f1f1f; font-weight: 600; }

/* Values */
.values { padding: 8px 0 24px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--border); }
.value { padding: 30px 28px; background: var(--bg-2); }
.value h2 { margin-top: 16px; font-size: 19px; }
.value p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 17px; }
.kicker { margin-bottom: 14px; color: var(--accent); font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: rgba(52, 211, 153, .35); transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .2); }
.feature-icon .icon { width: 20px; height: 20px; }
.feature h3 { margin-top: 20px; font-size: 18px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(52, 211, 153, .4); color: var(--accent); font: 600 15px/1 var(--mono); }
.step h3 { margin-top: 20px; font-size: 18px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.ai-note { display: flex; gap: 18px; margin-top: 18px; padding: 24px 28px; border: 1px dashed rgba(52, 211, 153, .35); border-radius: var(--radius-lg); background: rgba(52, 211, 153, .04); }
.ai-note .icon-lg { flex: none; margin-top: 2px; }
.ai-note h3 { font-size: 17px; }
.ai-note p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Security */
.security-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.security-list { display: grid; gap: 14px; }
.sec-item { display: flex; gap: 16px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.sec-item > .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.sec-item h3 { font-size: 17px; }
.sec-item p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Install */
.install { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; align-items: start; }
.install-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.install-card .btn { align-self: flex-start; }
.install-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.install-top h3 { font-size: 19px; }
.install-card p { color: var(--muted); font-size: 15px; }
.install-card p.small { font-size: 14px; }
.tag { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); font: 600 12px/1.2 var(--mono); white-space: nowrap; }
.tag-accent { border-color: rgba(52, 211, 153, .4); color: var(--accent); background: rgba(52, 211, 153, .08); }
.install-steps { margin: 0; padding-left: 20px; color: var(--text); font-size: 15px; }
.install-steps li + li { margin-top: 8px; }
.install-steps li::marker { color: var(--accent); font-family: var(--mono); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(52, 211, 153, .3); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }
.faq details p a { color: var(--accent); }

/* Final CTA */
.cta { padding: 24px 0 104px; }
.cta-inner {
  position: relative; overflow: hidden; padding: 64px 32px; text-align: center;
  border: 1px solid rgba(52, 211, 153, .25); border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, .18), transparent 60%), var(--surface);
}
.cta-icon { width: 44px; height: 44px; margin: 0 auto; fill: rgba(52, 211, 153, .12); stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta h2 { margin-top: 20px; font-size: clamp(28px, 4vw, 42px); }
.cta p { margin: 14px auto 0; max-width: 520px; color: var(--muted); font-size: 17px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin-top: 12px; max-width: 360px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-base { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: #7b889c; font-size: 13px; }

/* Motion: content fades up once as it scrolls into view (only when JS and motion are available). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .pg-panel { animation: panel-in .7s cubic-bezier(.2, 0, 0, 1) .35s both; }
.js .pg-meter span { animation: meter-in 1s cubic-bezier(.2, 0, 0, 1) .8s both; }
@keyframes panel-in { from { opacity: 0; transform: scale(.96) translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes meter-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1000px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head.left { text-align: center; margin: 0 auto; max-width: 680px; }
  .install { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px; background: rgba(6, 9, 18, .97); border-bottom: 1px solid var(--border);
  }
  .nav-menu:not(.open) { display: none; }
  .nav-menu a:not(.btn) { padding: 12px 4px; font-size: 16px; }
  .nav-menu .btn { margin-top: 8px; }
  .section { padding: 72px 0; }
  .values-grid, .features, .steps { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .gm { grid-template-columns: 1fr; min-height: 0; }
  .gm-side { display: none; }
  .gm-main { margin: 8px; padding: 0 16px 16px; }
  .gm-subject { flex-direction: column; align-items: flex-start; }
  .gm-body { margin-left: 0; max-width: none; }
  .pg-panel { position: relative; top: auto; right: auto; width: 100%; margin-top: 16px; }
  .ai-note { flex-direction: column; }
  .cta-inner { padding: 48px 22px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .hero-ctas .btn { width: 100%; }
}
