/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f0f0f;
  --bg-alt: #161616;
  --surface: #1c1c1e;
  --surface-hover: #252528;
  --border: #2a2a2d;
  --text: #e8e8e8;
  --text-muted: #888;
  --orange: #f59e0b;
  --orange-light: #fbbf24;
  --orange-dark: #d97706;
  --orange-glow: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #eab308;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 1120px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-light); }
img { max-width: 100%; }
code { font-family: var(--mono); background: var(--surface); padding: 1px 6px; border-radius: 4px; font-size: .85em; color: var(--orange-light); }
em { color: var(--text); font-style: normal; background: rgba(245,158,11,.12); padding: 0 4px; border-radius: 3px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(15,15,15,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.header.scrolled { background: rgba(15,15,15,.95); }
.header-inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--text-muted); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; border: none; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: var(--orange-light); color: #000; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--orange); color: var(--text); }
.btn-icon { font-size: .5rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* === Hero === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: radial-gradient(ellipse at 30% 50%, var(--orange-glow), transparent 60%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.05; margin-bottom: 20px; letter-spacing: -.02em; }
.hero-tagline { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.trust-badges { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .9rem; flex-wrap: wrap; }
.badge-dot { color: var(--orange); }
.trust-platforms { display: inline-flex; align-items: center; gap: 8px; }
.brand-icon { width: 18px; height: 18px; display: block; }

/* Hero Visual — Frying Pan */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-pan { position: relative; width: 280px; height: 280px; }
.pan-body {
  width: 240px; height: 240px; border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2d, #1c1c1e);
  border: 3px solid var(--border);
  position: absolute; top: 20px; left: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px var(--orange-glow), inset 0 0 40px rgba(0,0,0,.4);
  overflow: hidden;
}
.pan-handle {
  position: absolute; top: 50%; right: -50px; transform: translateY(-50%);
  width: 70px; height: 18px; background: linear-gradient(to right, #3a3a3d, #2a2a2d);
  border-radius: 0 8px 8px 0; border: 2px solid var(--border); border-left: none;
}
.egg { position: relative; }
.egg-white {
  width: 100px; height: 100px; background: rgba(255,255,255,.12);
  border-radius: 50% 50% 50% 50%; filter: blur(2px);
}
.egg-yolk {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--orange-light), var(--orange-dark));
  box-shadow: 0 0 20px rgba(245,158,11,.4);
  animation: sizzle 2s ease-in-out infinite;
}
.phish-text {
  position: absolute; bottom: 24px; right: 24px; font-size: 2rem;
  animation: fry 3s ease-in-out infinite;
  opacity: .6;
}
@keyframes sizzle { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.06); } }
@keyframes fry { 0%,100% { transform: rotate(0deg) scale(1); opacity:.6; } 50% { transform: rotate(10deg) scale(.9); opacity:.3; } }

/* === Sections === */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 2.25rem; font-weight: 800; text-align: center; margin-bottom: 8px; letter-spacing: -.01em; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 56px; font-size: 1.1rem; }
.section-title.align-left, .section-subtitle.align-left { text-align: left; }
.section-subtitle.align-left { margin-bottom: 32px; }

/* === Threats (problem framing) === */
.threats-lede {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.threats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 980px; margin: 0 auto;
}
.threat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .25s ease, border-color .25s ease;
}
.threat-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.threat-mock {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .82rem;
}
.threat-url {
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.threat-url em {
  color: var(--red); font-style: normal; font-weight: 700;
  background: rgba(239, 68, 68, 0.18); padding: 0 2px; border-radius: 2px;
}
.threat-badge {
  font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 12px;
  white-space: nowrap; flex-shrink: 0; color: #fff;
}
.threat-badge.danger  { background: var(--red); }
.threat-badge.caution { background: var(--yellow); color: #1a1a1a; }
.threat-badge.safe    { background: var(--green); }
.threat-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.threat-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }

/* === Steps === */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 48px; left: 16.66%; right: 16.66%;
  height: 2px; background: linear-gradient(to right, var(--orange), var(--orange-dark));
  opacity: .3;
}
.step { text-align: center; position: relative; }
.step-number {
  position: absolute; top: -8px; right: calc(50% - 56px);
  font-size: .7rem; font-weight: 700; color: var(--orange);
  background: var(--bg); border: 1px solid var(--orange); border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .95rem; max-width: 280px; margin: 0 auto; }

/* === Install Grid (where it works) === */
.install-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.install-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: all .3s; display: flex; flex-direction: column;
}
.install-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.install-icon { font-size: 1.75rem; margin-bottom: 12px; }
.install-icon-img { width: 36px; height: 36px; display: block; margin-bottom: 12px; }
.install-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.install-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.55; flex: 1; margin-bottom: 16px; }
.install-link { font-size: .85rem; font-weight: 600; }

/* === Signals (scoring inputs) === */
.signals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.signal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: all .3s;
}
.signal-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.signal-icon { font-size: 1.75rem; margin-bottom: 12px; }
.signal-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.signal-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* === Demo === */
.demo-container {
  max-width: 600px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px;
}
.demo-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 24px; transition: border-color .2s;
}
.demo-input-wrap:focus-within { border-color: var(--orange); }
.demo-prompt { font-size: 1.1rem; }
.demo-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--mono); font-size: .95rem;
}
.demo-input::placeholder { color: var(--text-muted); }
.demo-result { display: flex; align-items: center; gap: 24px; }
.score-ring { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.score-fill {
  fill: none; stroke: var(--orange); stroke-width: 8;
  stroke-linecap: round; stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73; transition: stroke-dashoffset .8s ease, stroke .4s;
}
.score-value {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
}
.score-label { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.score-signals { color: var(--text-muted); font-size: .85rem; line-height: 1.8; }
.score-signals span { display: block; }
.score-signals span::before { content: '• '; color: var(--orange); }
.demo-note { text-align: center; max-width: 600px; margin: 24px auto 0; color: var(--text-muted); font-size: .85rem; line-height: 1.6; }

/* === Settings === */
.settings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.setting-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.setting-label { color: var(--text-muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.setting-value { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--orange); margin: 8px 0 12px; }
.setting-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.55; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px 28px; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 10px 32px rgba(0,0,0,.32); }
.pricing-featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 12px 40px rgba(245,158,11,.18);
}
.pricing-featured:hover { transform: translateY(-6px); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #000; font-size: .7rem; font-weight: 700;
  padding: 5px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.pricing-head { margin-bottom: 16px; }
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.pricing-tagline { color: var(--text-muted); font-size: .9rem; margin: 0; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.pricing-amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pricing-unit { color: var(--text-muted); font-size: .95rem; }
.pricing-billing { color: var(--text-muted); font-size: .82rem; line-height: 1.5; margin-bottom: 20px; min-height: 2.5em; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.pricing-features li {
  font-size: .88rem; color: var(--text); line-height: 1.55;
  padding: 6px 0 6px 22px; position: relative;
}
.pricing-features li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  color: var(--orange); font-weight: 700;
}
.pricing-cta { width: 100%; justify-content: center; }

/* === Verified Badge === */
.verified-layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
}
.verify-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.verify-option {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.verify-option h4 { color: var(--orange); font-size: .85rem; margin-bottom: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.verify-option pre {
  background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; font-family: var(--mono); font-size: .78rem; line-height: 1.55;
  overflow-x: auto; color: var(--text);
}
.verify-note { color: var(--text-muted); font-size: .9rem; }
.verified-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; align-items: center; gap: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.verified-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.verified-check { font-size: 2rem; font-weight: 800; color: #000; }
.verified-text strong { display: block; font-size: 1.1rem; font-family: var(--mono); margin-bottom: 4px; }
.verified-text span { color: var(--text-muted); font-size: .85rem; }

/* === API === */
.api-demo { max-width: 760px; margin: 0 auto; }
.code-block {
  background: #0a0a0a; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green { background: #22c55e; }
.code-title { margin-left: 8px; font-size: .8rem; color: var(--text-muted); }
.code-block pre {
  padding: 20px; overflow-x: auto; font-family: var(--mono);
  font-size: .85rem; line-height: 1.7; color: var(--text);
}
.code-comment { color: #555; }
.code-string { color: var(--green); }
.code-number { color: var(--orange); }
.api-note { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: .9rem; }

/* === FAQ === */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none;
  color: var(--text); font-size: 1rem; font-weight: 600; cursor: pointer;
  font-family: var(--font); text-align: left; transition: color .2s;
}
.faq-question:hover { color: var(--orange); }
.faq-chevron { font-size: 1.2rem; transition: transform .3s; color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { padding: 0 0 20px; color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

/* === CTA === */
.cta-section { padding: 80px 0; text-align: center; background: radial-gradient(ellipse at center, var(--orange-glow), transparent 60%); }
.cta-section h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* === Footer === */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-muted); font-size: .8rem; }

/* === Responsive === */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

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

@media (max-width: 1000px) {
  .install-grid { grid-template-columns: repeat(2, 1fr); }
  .signals-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .verified-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-tagline { margin: 0 auto 32px; }
  .hero-ctas { justify-content: center; }
  .trust-badges { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .steps { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .steps::before { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 12px;
  }
  .hero h1 { font-size: 2.4rem; }
  .hero-tagline { font-size: 1rem; }
  .section-title { font-size: 1.75rem; }
  .install-grid,
  .signals-grid,
  .settings-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .verify-options { grid-template-columns: 1fr; }
  .demo-result { flex-direction: column; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
