/* ===================================================================
   BrandGuard landing page
   Design tokens mirror the Angular app (web/src/styles.scss):
   navy #0B1220 · indigo #4F46E5 · indigo-light #818CF8 · danger #EF4444
   ================================================================== */

:root {
  --navy: #0b1220;
  --navy-soft: #131c30;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --danger: #ef4444;
  --success: #16a34a;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 30px 60px rgba(17, 24, 39, 0.18);
  --maxw: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

p { margin: 0; }

a { color: var(--primary); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.30); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: rgba(79, 70, 229, 0.06); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--primary); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef0f6; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.04em;
}
.brand-mark { flex-shrink: 0; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(79, 70, 229, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(129, 140, 248, 0.10), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.10);
  border: 1px solid rgba(79, 70, 229, 0.20);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.eyebrow i { font-size: 0.55rem; color: var(--success); }
.hero-copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.hero-note { font-size: 0.9rem; color: var(--text-muted); }
.hero-note i { color: var(--success); margin-right: 0.15rem; }

/* Browser frame around the product screenshot */
.hero-visual { perspective: 1600px; }
.browser-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  background: #f1f2f6;
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd0da; }
.browser-bar .dot:nth-child(1) { background: #ff6058; }
.browser-bar .dot:nth-child(2) { background: #ffbd2e; }
.browser-bar .dot:nth-child(3) { background: #28c840; }
.browser-url {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  flex: 1;
  max-width: 320px;
}
.browser-frame img { display: block; width: 100%; height: auto; }

/* ---------- Generic section ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute;
  top: -16px;
  left: 28px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.step-icon { font-size: 1.6rem; color: var(--primary-light); margin: 0.4rem 0 0.9rem; }
.step h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(79, 70, 229, 0.35); }
.feature i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.10);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.4rem; }
.feature p { color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.plan h3 { font-size: 1.25rem; color: var(--navy); }
.price { margin: 0.75rem 0 0.25rem; }
.price .amount { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.price .per { color: var(--text-muted); font-weight: 500; }
.price-year { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 0.75rem; }
.plan-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.25rem; min-height: 2.6em; }
.plan-features { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-size: 0.97rem; }
.plan-features i { color: var(--success); }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.92rem; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\f078"; /* fa chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { color: var(--text-muted); padding: 0 0 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(129, 140, 248, 0.25), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 0.6rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; margin-bottom: 1.75rem; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand-footer { color: #fff; font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); width: 100%; text-align: center; margin-top: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .browser-frame { transform: none; }
  .steps, .features, .pricing { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .nav-links { display: none; }
  .plan-desc { min-height: 0; }
}

@media (max-width: 560px) {
  .header-actions .btn-ghost { display: none; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
  .cta-inner .hero-cta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
