/* ===========================================================
   Form Guardian — Landing styles
   Theme: "Deep Focus"  |  Font: Inter
   Palette: charcoal #1A202C · blue #3182CE · green #38A169 · light #E2E8F0
   =========================================================== */

:root {
  --bg:          #1A202C;
  --bg-alt:      #1E2733;
  --surface:     #222C3A;
  --surface-2:   #2A3647;
  --border:      #2F3B4D;
  --text:        #E2E8F0;
  --text-dim:    #A0AEC0;
  --blue:        #3182CE;
  --blue-hover:  #4399E6;
  --green:       #38A169;
  --green-hover: #43B97A;
  --radius:      14px;
  --radius-sm:   10px;
  --maxw:        1080px;
  --shadow:      0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue-hover); outline-offset: 2px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); color: #fff; border-color: var(--surface-2); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 32, 44, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; }
.brand-name { font-size: 17px; letter-spacing: -0.01em; }
.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.header-nav a:hover { color: var(--text); }
.site-header .btn-primary { margin-left: 6px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 420px at 75% -10%, rgba(49, 130, 206, 0.18), transparent 60%),
    radial-gradient(700px 360px at 12% 8%, rgba(56, 161, 105, 0.10), transparent 60%);
}
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-hover);
  background: rgba(49, 130, 206, 0.12);
  border: 1px solid rgba(49, 130, 206, 0.28);
  padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 18px; }
.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-dim); max-width: 640px; margin: 0 auto 28px; }
.lede strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-dim); }

/* Hero demo mock */
.hero-demo { margin: 52px auto 0; max-width: 620px; }
.demo-window {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow);
}
.demo-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.demo-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a4658; }
.demo-body { padding: 28px; display: flex; justify-content: center; background:
  radial-gradient(500px 200px at 50% 0%, rgba(49,130,206,0.08), transparent); }
.demo-popup {
  width: 100%; max-width: 340px; text-align: left;
  background: #fff; color: #1A202C; border-radius: 12px; padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.demo-popup-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.demo-found { font-size: 13px; color: #4A5568; margin-bottom: 14px; }
.demo-found b { color: #1A202C; }
.demo-field { background: #F1F4F8; border-radius: 8px; padding: 9px 11px; margin-bottom: 9px; }
.demo-field span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #718096; font-weight: 600; }
.demo-field em { font-style: normal; font-size: 13px; color: #2D3748; }
.demo-restore {
  width: 100%; margin-top: 6px; border: 0; cursor: pointer;
  background: var(--green); color: #fff; font-weight: 600; font-size: 14px;
  padding: 11px; border-radius: 8px; font-family: inherit;
}
.demo-meta { font-size: 11px; color: #A0AEC0; text-align: center; margin: 10px 0 0; }

/* ---------------- Trust strip ---------------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 24px; }
.trust-item { text-align: center; }
.trust-item strong { display: block; color: var(--text); font-size: 16px; }
.trust-item span { color: var(--text-dim); font-size: 13px; }

/* ---------------- Sections ---------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 4vw, 36px); text-align: center; }
.section-sub { text-align: center; color: var(--text-dim); max-width: 620px; margin: 0 auto 44px; font-size: 17px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(49, 130, 206, 0.14); color: var(--blue-hover);
  font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--text-dim); margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .15s ease, border-color .15s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(49,130,206,0.4); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--surface-2);
}
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* Use cases */
.usecases {
  list-style: none; margin: 0 auto; padding: 0; max-width: 760px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.usecases li {
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 18px; border-radius: 999px; font-size: 15px; color: var(--text);
}

/* Privacy */
.privacy-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.privacy-copy .section-title { text-align: left; }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-dim); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-hover); font-weight: 800;
}
.privacy-badge { display: flex; justify-content: center; }
.privacy-badge-inner {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  width: 220px; height: 220px; justify-content: center;
  border-radius: 24px; background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(56,161,105,0.12), 0 16px 40px rgba(0,0,0,0.3);
}
.privacy-lock { font-size: 44px; }
.privacy-badge-inner strong { font-size: 16px; }
.privacy-badge-inner span { color: var(--text-dim); font-size: 13px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 600; font-size: 17px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--text-dim); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-dim); margin: 0 0 16px; font-size: 15px; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(26px, 4vw, 38px); }
.final-cta p { color: var(--text-dim); margin-bottom: 26px; font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 44px 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.footer-brand .brand-name { font-size: 18px; font-weight: 700; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.footer-nav a { color: var(--text-dim); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { grid-column: 1 / -1; color: var(--text-dim); font-size: 13px; margin: 18px 0 0; border-top: 1px solid var(--border); padding-top: 18px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .header-nav { display: none; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .privacy-inner { grid-template-columns: 1fr; }
  .privacy-copy .section-title { text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 0 44px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .trust-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
