/* Nova Security — Web styles
   Color palette mirrors the Flutter app:
   - navy 900/800/700 background gradient
   - electric blue + soft purple primary accent
   - red/amber/green status accents
*/

:root {
  --navy-900: #0F1C3F;
  --navy-800: #1A2B5C;
  --navy-700: #223A78;
  --soft-purple: #6C63FF;
  --electric-blue: #3A86FF;
  --soft-silver: #BFC6D4;

  --metallic-start: #E6E9EF;
  --metallic-end: #D1D6E0;

  --text-primary: #F2F4F8;
  --text-secondary: #D2D8E3;
  --text-tertiary: rgba(242, 244, 248, 0.55);

  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-fill-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.12);

  --accent-red: #FF3B3B;
  --accent-amber: #FFA800;
  --accent-green: #00D36E;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(58, 134, 255, 0.35);

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy-900);
  color: var(--text-primary);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(108, 99, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(58, 134, 255, 0.16), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 52%, var(--navy-700) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--text-primary); text-decoration: none; }
a:hover { color: var(--electric-blue); }

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

/* ================= Navigation ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 28, 63, 0.55);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-brand-text { font-size: 18px; }
.nav-brand-text span { color: var(--electric-blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(90deg, var(--electric-blue), var(--soft-purple));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 0 80px rgba(108, 99, 255, 0.45); }
.btn-ghost {
  background: var(--glass-fill);
  color: var(--text-primary);
  border-color: var(--glass-border);
}
.btn-ghost:hover { background: var(--glass-fill-strong); color: var(--text-primary); }

/* ================= Hero ================= */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 18px 0 18px;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, var(--electric-blue), var(--soft-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #000;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-1px); color: #fff; }
.store-badge .badge-icon { font-size: 22px; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge .badge-text small { font-size: 10px; opacity: 0.75; }
.store-badge .badge-text strong { font-size: 15px; font-weight: 700; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}
.hero-art-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.35), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  max-height: 500px;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.trust-strip {
  margin-top: 56px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}
.trust-strip strong { color: var(--text-primary); font-weight: 700; }
.trust-strip .stars { color: #FFB400; letter-spacing: 2px; }

/* ================= Section primitives ================= */
section { padding: 80px 0; position: relative; }
.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-title .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric-blue);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-title p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0;
}

/* ================= Features ================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 99, 255, 0.45);
  background: var(--glass-fill-strong);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.25), rgba(108, 99, 255, 0.25));
  border: 1px solid var(--glass-border);
  font-size: 22px;
}
.feature-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ================= How it works ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
}
.step-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--soft-purple));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(58, 134, 255, 0.45);
}
.step h3 { margin: 8px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* ================= Pricing ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: linear-gradient(160deg, rgba(58, 134, 255, 0.18), rgba(108, 99, 255, 0.18));
  border-color: rgba(108, 99, 255, 0.55);
  box-shadow: 0 24px 60px rgba(58, 134, 255, 0.18);
  transform: translateY(-6px);
}
.price-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  padding: 6px 12px;
  background: linear-gradient(90deg, var(--electric-blue), var(--soft-purple));
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 4px;
}
.price-amount .currency { font-size: 22px; color: var(--text-secondary); font-weight: 700; }
.price-amount .number {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(90deg, #fff, #cdd5ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-amount .period { color: var(--text-tertiary); font-size: 14px; font-weight: 600; }
.price-strike { color: var(--text-tertiary); text-decoration: line-through; font-size: 14px; margin-bottom: 12px; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.price-features li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(0, 211, 110, 0.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D36E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.price-note {
  margin: 16px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}

/* ================= FAQ ================= */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.faq-item {
  padding: 22px 24px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.faq-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ================= CTA Banner ================= */
.cta-banner {
  margin: 40px 0 80px;
  padding: 60px 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(108, 99, 255, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(58, 134, 255, 0.15), rgba(108, 99, 255, 0.12));
  border: 1px solid var(--glass-border);
}
.cta-banner h2 {
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-banner p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 17px;
}

/* ================= Footer ================= */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--glass-border);
  background: rgba(15, 28, 63, 0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 14px 0 0;
  max-width: 320px;
}
.footer h5 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--text-tertiary);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin: 0 0 10px; }
.footer ul li a { color: var(--text-secondary); font-size: 14px; }
.footer ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= Legal pages ================= */
.legal {
  padding: 60px 0 100px;
}
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
}
.legal-wrap h1 {
  font-size: 38px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.legal-wrap .updated {
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 0 0 32px;
}
.legal-wrap h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.legal-wrap h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.legal-wrap p, .legal-wrap li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}
.legal-wrap ul { padding-left: 22px; }
.legal-wrap a { color: var(--electric-blue); text-decoration: underline; }
.legal-toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.legal-toc strong { display: block; margin-bottom: 8px; color: var(--text-primary); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-toc ol { padding-left: 20px; margin: 0; }
.legal-toc ol li { color: var(--text-secondary); font-size: 14px; margin: 4px 0; }
.legal-toc ol li a { color: var(--text-secondary); }
.legal-toc ol li a:hover { color: var(--electric-blue); }

/* ================= Responsive ================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 40px; }
  .hero-art { min-height: 320px; }
  .features, .steps, .pricing-grid, .faq-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title h2 { font-size: 32px; }
  .price-card.featured { transform: none; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .features, .steps, .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 26px; }
  .legal-wrap { padding: 32px 22px; }
  .legal-wrap h1 { font-size: 30px; }
}
