/* =====================================================================
   SecureGard — shared design system
   ===================================================================== */

:root {
  --bg: #0b1020;
  --bg-soft: #0f172a;
  --panel: rgba(30, 41, 59, 0.62);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #c084fc;
  --grad: linear-gradient(135deg, #38bdf8 0%, #818cf8 60%, #c084fc 100%);
  --grad-soft: linear-gradient(135deg, rgba(56,189,248,0.10), rgba(192,132,252,0.08));
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 8px 24px -10px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.6;
  background:
    radial-gradient(1100px 700px at 5% -10%, rgba(56, 189, 248, 0.13), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, rgba(192, 132, 252, 0.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  body { font-size: 14.5px; }
}

/* ---------- Header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, rgba(11,16,32,0.92), rgba(11,16,32,0.65));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text-strong); }
.brand:hover { color: var(--text-strong); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(129, 140, 248, 0.7);
  display: grid; place-items: center;
}
.brand-mark svg { width: 18px; height: 18px; color: #0b1020; }
.brand-text {
  font-weight: 800; color: var(--text-strong); font-size: 16px;
  letter-spacing: -0.3px;
}
.brand-sub { color: var(--muted); font-size: 11px; margin-top: -2px; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.cta) {
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  padding: 6px 0;
}
.nav-links a:not(.cta):hover { color: var(--text); }
.nav-links .cta {
  padding: 9px 16px; border-radius: 10px;
  background: var(--grad); color: #0b1020;
  font-weight: 700; font-size: 13px;
  transition: filter 0.15s, transform 0.15s;
  display: inline-block;
}
.nav-links .cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #0b1020; }
@media (max-width: 760px) {
  .nav-links a:not(.cta):not(.signin) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent;
  transition: filter 0.15s, transform 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
  text-align: center; justify-content: center;
}
.btn.primary {
  background: var(--grad); color: #0b1020; border: none;
  box-shadow: 0 14px 36px -16px rgba(129, 140, 248, 0.6);
}
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #0b1020; }
.btn.ghost {
  background: rgba(15, 23, 42, 0.6); border-color: var(--line-strong); color: var(--text);
}
.btn.ghost:hover { background: rgba(30, 41, 59, 0.8); border-color: rgba(148, 163, 184, 0.5); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
section.hero { padding: 88px 0 56px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
  font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.4px; text-transform: uppercase; font-weight: 700;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }

h1 {
  margin: 0 auto;
  font-size: 56px; line-height: 1.05;
  font-weight: 800; letter-spacing: -1.6px;
  color: var(--text-strong); max-width: 820px;
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin: 24px auto 32px; max-width: 660px;
  color: var(--muted); font-size: 17.5px; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px;
  color: var(--muted); font-size: 12.5px;
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: #22c55e; }
@media (max-width: 720px) {
  section.hero { padding: 56px 0 40px; }
  h1 { font-size: 38px; letter-spacing: -1px; }
  .hero p.lead { font-size: 15.5px; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  margin: 44px auto 0; max-width: 940px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  font-size: 12.5px; color: var(--text);
  font-weight: 600;
}
.trust-item svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Section base ---------- */
section.section { padding: 80px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  color: var(--accent); letter-spacing: 1.6px; text-transform: uppercase;
  margin-bottom: 14px;
}
h2 {
  margin: 0 0 14px;
  font-size: 38px; line-height: 1.15;
  font-weight: 800; letter-spacing: -1.1px;
  color: var(--text-strong);
}
.section-title p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 720px) {
  section.section { padding: 56px 0; }
  h2 { font-size: 28px; }
}

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  backdrop-filter: blur(8px);
  transition: border-color 0.15s, transform 0.15s;
}
.feature:hover { border-color: rgba(129, 140, 248, 0.5); transform: translateY(-2px); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 {
  margin: 0 0 8px;
  font-size: 17px; font-weight: 700;
  color: var(--text-strong); letter-spacing: -0.2px;
}
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Use cases ---------- */
.use-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .use-cases { grid-template-columns: 1fr; } }
.use-case {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
}
.use-case .icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.28);
  color: var(--accent-3);
  display: grid; place-items: center;
}
.use-case .icon svg { width: 22px; height: 22px; }
.use-case h3 {
  margin: 0 0 6px; font-size: 15px; color: var(--text-strong); font-weight: 700;
}
.use-case p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 22px;
  backdrop-filter: blur(8px); position: relative;
}
.step .num {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--grad);
  color: #0b1020; font-weight: 800; font-size: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -6px rgba(129, 140, 248, 0.5);
}
.step h3 { margin: 0 0 8px; font-size: 16px; color: var(--text-strong); font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- Pricing ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: stretch;
}
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px 26px;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: rgba(129,140,248,0.55);
  background: linear-gradient(180deg, rgba(129,140,248,0.10), rgba(192,132,252,0.06));
  box-shadow: 0 28px 60px -28px rgba(129,140,248,0.55);
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #0b1020;
  font-weight: 800; font-size: 10.5px; letter-spacing: 1.2px;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(129,140,248,0.7);
}
.plan-name {
  font-size: 13px; font-weight: 700; color: var(--text-strong);
  letter-spacing: 0.6px; text-transform: uppercase;
}
.plan-price {
  font-size: 38px; font-weight: 800; color: var(--text-strong);
  letter-spacing: -1px; margin: 8px 0 2px;
}
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-tag { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-feats li {
  padding: 9px 0; color: var(--text); font-size: 13.5px;
  border-top: 1px dashed rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 8px;
}
.plan-feats li:first-child { border-top: none; }
.plan-feats li svg { width: 14px; height: 14px; color: #22c55e; flex: 0 0 auto; }
.plan-cta { width: 100%; }
.plans-foot {
  margin: 28px auto 0; max-width: 640px; text-align: center;
  color: var(--muted); font-size: 12.5px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px; font-weight: 700;
  color: var(--text-strong);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 14px;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  transition: transform 0.15s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-body {
  padding: 0 20px 18px;
  color: var(--muted); font-size: 14px; line-height: 1.7;
}
.faq-body p { margin: 0 0 8px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 880px; margin: 0 auto;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: border-color 0.15s, transform 0.12s;
}
.contact-card:hover { border-color: rgba(129, 140, 248, 0.4); transform: translateY(-1px); color: var(--text); }
.contact-card.no-link { cursor: default; }
.contact-card.no-link:hover { transform: none; border-color: var(--line); }
.contact-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent);
  display: grid; place-items: center;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 2px;
}
.contact-value { font-size: 14.5px; font-weight: 600; color: var(--text-strong); }
.contact-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.contact-note {
  margin: 28px auto 0; max-width: 720px; text-align: center;
  color: var(--muted); font-size: 12.5px; line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(192, 132, 252, 0.10));
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 50px 36px; text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: 32px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.6px; }
.cta-band p { margin: 0 auto 24px; max-width: 580px; color: var(--muted); font-size: 15.5px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 44px 0 32px;
  margin-top: 60px;
  background: rgba(11, 16, 32, 0.4);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 880px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-cols { grid-template-columns: 1fr; gap: 24px; } }
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text);
  font-size: 13.5px; line-height: 1.8;
  margin: 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px;
}
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--text); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  display: none;
  background: rgba(11, 16, 32, 0.97);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  padding: 18px 20px;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
@media (max-width: 720px) { .cookie-inner { grid-template-columns: 1fr; } }
.cookie-text {
  color: var(--text); font-size: 13.5px; line-height: 1.55;
}
.cookie-text strong { color: var(--text-strong); display: block; margin-bottom: 4px; font-size: 14px; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions button {
  padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: rgba(15,23,42,0.7); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.cookie-actions button.primary { background: var(--grad); color: #0b1020; border: none; font-weight: 700; }
.cookie-actions button:hover { filter: brightness(1.08); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 1001;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.cookie-modal.show { display: flex; }
.cookie-modal-card {
  width: 520px; max-width: 100%;
  max-height: 85vh; overflow-y: auto;
  background: rgba(30, 41, 59, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 24px 26px;
}
.cookie-modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px; color: var(--text-strong); font-weight: 700;
}
.cookie-modal-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
.cookie-cat {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.cookie-cat-name { font-size: 14px; color: var(--text-strong); font-weight: 700; }
.cookie-cat-desc { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 4px; }
.cookie-toggle {
  position: relative; width: 42px; height: 24px;
  background: rgba(15,23,42,0.8); border-radius: 999px; border: 1px solid var(--line-strong);
  cursor: pointer; transition: background 0.15s;
}
.cookie-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--muted);
  transition: transform 0.15s, background 0.15s;
}
.cookie-toggle.on { background: var(--grad); }
.cookie-toggle.on::after { transform: translateX(18px); background: #0b1020; }
.cookie-toggle.locked { opacity: 0.6; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px;
}
.cookie-modal-actions button {
  padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  border: 1px solid var(--line-strong); background: rgba(15,23,42,0.6); color: var(--text);
}
.cookie-modal-actions button.primary { background: var(--grad); color: #0b1020; border: none; font-weight: 700; }

/* ---------- Legal page layout ---------- */
.legal {
  max-width: 820px; margin: 0 auto;
  padding: 60px 28px 40px;
}
.legal h1 {
  font-size: 36px; line-height: 1.15; letter-spacing: -0.8px; max-width: none;
  text-align: left; margin-bottom: 8px;
}
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.legal h2 {
  font-size: 22px; margin: 36px 0 12px;
  letter-spacing: -0.4px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.legal h3 { font-size: 16px; margin: 24px 0 8px; color: var(--text-strong); font-weight: 700; }
.legal p, .legal li { color: var(--text); font-size: 14.5px; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 14px 0 22px;
  background: rgba(15,23,42,0.55); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.legal th, .legal td {
  padding: 10px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.legal th { background: rgba(15,23,42,0.8); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 11.5px; }
.legal tr:last-child td { border-bottom: none; }
.legal code {
  background: rgba(15,23,42,0.8); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace; font-size: 12.5px;
}
