/* ════════════════════════════════════════════════════════════
   WaultSec — marketing site
   Design system: eggshell light, cool teal accent, slate ink,
   dark code blocks for contrast, mono details
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f3efe5;            /* eggshell white */
  --bg-raised: #faf7ef;     /* subtly raised panels */
  --surface: #ffffff;       /* cards */
  --border: #e6e1d4;
  --border-strong: #d4cdbb;
  --text: #18242c;          /* deep cool ink */
  --text-2: #3b4a54;
  --muted: #687581;
  --heading-dim: #95a1ac;   /* quiet half of two-tone headlines */
  --accent: #0c8577;        /* cool teal */
  --accent-strong: #0a6c60; /* button/link hover */
  --accent-dim: rgba(12, 133, 119, 0.10);
  --accent-border: rgba(12, 133, 119, 0.30);
  --accent3: #0c8577; /* legacy alias used by inline styles */
  --danger: #d4564f;
  --warn: #b8852a;
  --info-blue: #2f7fd1;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 10px;
  --radius-lg: 14px;
}

/* Code/terminal blocks stay dark for a crisp, professional contrast.
   Re-scope the palette so children inherit dark-on-light-safe colors. */
.terminal-card, .gs-code-block {
  --text: #e9eef2;
  --text-2: #c3ccd5;
  --muted: #8b97a3;
  --accent: #3ecf8e;
  --warn: #e5c07b;
  --danger: #ef6b73;
  --info-blue: #7cc7ff;
  --border: #1d242c;
  --surface: #131a20;
  --bg-raised: #0e1216;
  color: var(--text);
}

html {
  scroll-behavior: smooth;
  /* both html and body need this or iOS Safari lets the page pan sideways */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(12, 133, 119, 0.20); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Layout utilities ─────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Two-tone headlines: the highlighted span reads as the quiet half */
.gradient-text { color: var(--heading-dim); }

/* Grid/flex children may not shrink below content width by default,
   which lets wide <pre> blocks blow out the page on small screens */
.products-grid > *, .steps-row > *, .features-grid > *,
.pricing-grid > *, .monitor-grid > *, .protect-grid > *,
.gs-deploy-row > *, .help-banner-cards > * { min-width: 0; }

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--accent-strong); }

.btn-large { padding: 14px 32px; font-size: 0.95rem; }
.btn-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); border-color: var(--border-strong); }

/* ─── Navbar ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(243, 239, 229, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.logo-icon svg { display: block; width: 100%; height: 100%; }

.accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--accent-strong); }

.btn-nav-ghost {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.btn-nav-ghost:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  padding: 15px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn-mobile { background: var(--accent); color: #fff; font-weight: 600; text-align: center; margin: 12px 24px; border-radius: 8px; border-bottom: none; }
.btn-mobile-ghost { text-align: center; }

/* ─── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 140px 24px 96px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* faint engineering grid, fading out from the top */
#hero::before {
  content: '';
  position: absolute;
  inset: -80px -24px 0;
  background-image:
    linear-gradient(rgba(24, 36, 44, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 36, 44, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

/* single quiet accent glow */
#hero::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 100vw);
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(12, 133, 119, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

#hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 470px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-unit { font-size: 0.95rem; color: var(--muted); }

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
}

/* ─── Terminal card ────────────────────────────────────────── */
.hero-visual {
  flex: 1;
  min-width: 0;
  max-width: 520px;
  position: relative;
}

.terminal-card {
  background: #0c1014;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 56px -20px rgba(24, 36, 44, 0.28);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #3d4956; }
.dot.yellow { background: #3d4956; }
.dot.green { background: var(--accent); }

.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.terminal-body {
  padding: 20px 22px 24px;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.95;
  min-height: 280px;
}

.t-line { opacity: 0; animation: fade-in-line 0.3s forwards; }
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-cmd { color: var(--text); }
.t-info { color: var(--muted); }
.t-ok { color: var(--accent); }
.t-warn { color: var(--warn); }
.t-danger { color: var(--danger); }

@keyframes fade-in-line {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Trusted by ───────────────────────────────────────────── */
#trusted {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}

.brand-logo {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}

.brand-logo:hover { opacity: 1; color: var(--text-2); }

/* ─── Products ─────────────────────────────────────────────── */
#products {
  position: relative;
  z-index: 1;
  padding: 104px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.product-card:hover { border-color: var(--accent-border); background: var(--bg-raised); }

.featured-card { border-color: var(--accent-border); }
.featured-card:hover { border-color: var(--accent-border); }

.featured-label {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 9px;
  border-radius: 5px;
}

.product-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 22px;
}

.product-icon svg { display: block; width: 100%; height: 100%; }

.product-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.product-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.product-features li {
  font-size: 0.86rem;
  color: var(--text-2);
  font-weight: 450;
}

.product-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-link:hover { text-decoration: underline; }

/* ─── How it works ─────────────────────────────────────────── */
#how-it-works {
  position: relative;
  z-index: 1;
  padding: 104px 0;
  border-top: 1px solid var(--border);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-arrow { display: none; }

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.step-card:hover { border-color: var(--border-strong); }

.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.step-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: var(--text-2);
}

.step-icon svg { display: block; width: 100%; height: 100%; }

.step-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Inline CTA bar */
.hiw-form-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 32px;
  margin-top: 48px;
}

.hiw-form-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hiw-form-text strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hiw-form-text span {
  font-size: 0.86rem;
  color: var(--muted);
}

.hiw-inline-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.hiw-inline-form input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  width: 180px;
  transition: border-color 0.15s;
}

.hiw-inline-form input::placeholder { color: var(--muted); }
.hiw-inline-form input:focus { border-color: var(--accent); }

.btn-hiw {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  transition: background 0.15s;
}

.btn-hiw:hover { background: var(--accent-strong); }

/* ─── Features ─────────────────────────────────────────────── */
#features {
  position: relative;
  z-index: 1;
  padding: 104px 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.2s;
}

.feature-item:hover { border-color: var(--border-strong); }

.feature-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-icon svg { display: block; width: 100%; height: 100%; }

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Pricing ──────────────────────────────────────────────── */
#pricing {
  position: relative;
  z-index: 1;
  padding: 104px 0;
  border-top: 1px solid var(--border);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.toggle-label.active { color: var(--text); }

.save-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 5px;
}

.toggle-btn {
  position: relative;
  width: 46px;
  height: 25px;
  background: var(--border-strong);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-btn.on { background: var(--accent); }

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--bg);
  transition: transform 0.2s;
}

.toggle-btn.on .toggle-thumb { transform: translateX(21px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 36px;
  position: relative;
  transition: border-color 0.2s;
}

.pricing-card:hover { border-color: var(--border-strong); }

.pricing-featured { border-color: var(--accent-border); }
.pricing-featured:hover { border-color: var(--accent-border); }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 5px;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 26px;
  min-height: 42px;
}

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 6px;
  line-height: 1;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}

.price-amount {
  font-family: var(--mono);
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}

.price-period {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 18px;
}

.enterprise-price { align-items: center; min-height: 56px; }

.price-custom {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 24px;
  min-height: 18px;
}

.btn-plan {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 26px;
}

.btn-plan-primary {
  background: var(--accent);
  color: #fff;
}

.btn-plan-primary:hover { background: var(--accent-strong); }

.btn-plan-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-plan-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-strong);
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-2);
}

.check {
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.cross {
  color: var(--muted);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.6;
}

.muted-feat { color: var(--muted); }

.pricing-footnote {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 48px auto 0;
  max-width: 560px;
  line-height: 1.6;
}

/* ─── Getting started ──────────────────────────────────────── */
#getting-started {
  position: relative;
  z-index: 1;
  padding: 104px 0;
  border-top: 1px solid var(--border);
}

.gs-steps {
  display: flex;
  flex-direction: column;
  margin-bottom: 72px;
  position: relative;
}

.gs-steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 48px;
  width: 1px;
  background: var(--border);
}

.gs-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0;
}

.gs-step-num {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.gs-step-body { flex: 1; min-width: 0; padding-top: 4px; }

.gs-step-icon { display: none; }

.gs-step-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.gs-step-body p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 20px;
}

.gs-deploy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 860px;
}

.gs-code-block {
  background: #0c1014;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
}

.gs-deploy-row .gs-code-block { max-width: none; }

.gs-code-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border);
}

.gs-code-block code,
.gs-code-block pre {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-2);
  padding: 14px 16px;
  white-space: pre;
  overflow-x: auto;
}

.c-muted { color: var(--muted); }
.c-key   { color: var(--info-blue); }
.c-str   { color: var(--accent); }
.c-num   { color: var(--warn); }

.gs-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.gs-badges-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
}

.gs-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-2);
  font-weight: 450;
}

.gs-check { color: var(--accent); font-size: 0.85rem; }

.gs-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 72px 0 48px;
}

.gs-divider::before,
.gs-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gs-divider span {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* What we monitor */
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

.monitor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.2s;
}

.monitor-card:hover { border-color: var(--border-strong); }

.monitor-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--text-2);
}

.monitor-icon svg { display: block; width: 100%; height: 100%; }

.monitor-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.monitor-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.monitor-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.monitor-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 4px;
}

/* How we protect */
.protect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.protect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s;
}

.protect-card:hover { border-color: var(--border-strong); }

.protect-card-wide { grid-column: span 3; }

.protect-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.protect-step {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.protect-card h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.protect-card > p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
}

.protect-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pf-node {
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--text-2);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: 6px;
}

.pf-arrow { color: var(--muted); font-size: 0.85rem; }

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.81rem;
  color: var(--text-2);
}

.rule-sev {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sev-critical { background: rgba(239, 107, 115, 0.14); color: var(--danger); }
.sev-high     { background: rgba(229, 154, 90, 0.14);  color: #e59a5a; }
.sev-medium   { background: rgba(229, 192, 123, 0.14); color: var(--warn); }

.status-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.sf-node {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.sf-open { background: rgba(239, 107, 115, 0.12); color: var(--danger); }
.sf-inv  { background: rgba(229, 192, 123, 0.12); color: var(--warn); }
.sf-res  { background: var(--accent-dim); color: var(--accent); }
.sf-arrow { color: var(--muted); }

.baseline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.baseline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.bl-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); }
.bl-icon svg { display: block; width: 100%; height: 100%; }

.bl-label {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-2);
  line-height: 1.4;
}

/* ─── Help banner ──────────────────────────────────────────── */
.help-banner {
  margin-top: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.help-banner-top {
  padding: 48px 48px 40px;
  border-bottom: 1px solid var(--border);
}

.help-banner-headline h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.help-banner-headline p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 28px;
}

.help-banner-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.help-banner-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.help-card {
  padding: 26px 26px;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
}

.help-card:last-child { border-right: none; }
.help-card:hover { background: rgba(0, 0, 0, 0.025); }

.help-card-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  color: var(--accent);
}
.help-card-icon svg { display: block; width: 100%; height: 100%; }

.help-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.help-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.help-card-val {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--mono);
}

/* ─── CTA banner ───────────────────────────────────────────── */
/* ─── FAQ ──────────────────────────────────────────────────── */
#faq {
  position: relative;
  z-index: 1;
  padding: 104px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent-border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.65;
}

#cta-banner {
  position: relative;
  z-index: 1;
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(12, 133, 119, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.cta-card p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ─── Contact ──────────────────────────────────────────────── */
#contact {
  position: relative;
  z-index: 1;
  padding: 104px 0;
  border-top: 1px solid var(--border);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.contact-info > p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.93rem;
  color: var(--text-2);
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-icon svg { display: block; width: 100%; height: 100%; }

.contact-item a { color: var(--text); transition: color 0.15s; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group select option { background: var(--surface); }

.form-success {
  display: none;
  text-align: center;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
}

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-2);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .t-line { animation: none; opacity: 1; }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .monitor-grid { grid-template-columns: repeat(2, 1fr); }
  .protect-grid { grid-template-columns: 1fr 1fr; }
  .protect-card-wide { grid-column: span 2; }
  .baseline-row { grid-template-columns: repeat(2, 1fr); }
  .help-banner-cards { grid-template-columns: repeat(2, 1fr); }
  .help-card { border-bottom: 1px solid var(--border); }
  .help-card:nth-child(2n) { border-right: none; }
  .help-card:nth-child(3), .help-card:nth-child(4) { border-bottom: none; }
  .hiw-form-bar { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hiw-inline-form input { width: 160px; }
}

@media (max-width: 880px) {
  #hero {
    flex-direction: column;
    padding: 120px 24px 64px;
    text-align: center;
    min-height: auto;
    gap: 48px;
  }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; max-width: 520px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-auth { display: none; }
  .hamburger { display: flex; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; }

  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-links { gap: 32px; }
  .cta-card { padding: 48px 28px; }

  .gs-steps::before { display: none; }
  .gs-step { flex-direction: column; gap: 16px; padding: 24px 0; }
  .gs-deploy-row { grid-template-columns: 1fr; }
  .gs-badges-row { grid-template-columns: 1fr; }

  .help-banner-top { padding: 36px 28px 28px; }
  .help-banner-headline h2 { font-size: 1.4rem; }
  .help-banner-btns .btn-primary,
  .help-banner-btns .btn-ghost { width: 100%; }
  .help-banner-cards { grid-template-columns: 1fr; }
  .help-card { border-right: none; border-bottom: 1px solid var(--border); }
  .help-card:nth-child(3) { border-bottom: 1px solid var(--border); }
  .help-card:last-child { border-bottom: none; }

  .hiw-form-bar { padding: 22px 20px; }
  .hiw-inline-form { flex-wrap: wrap; width: 100%; }
  .hiw-inline-form input { width: 100%; flex: 1; min-width: 140px; }
  .btn-hiw { width: 100%; padding: 12px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 14px 16px; gap: 12px; }

  #products, #how-it-works, #features, #pricing, #getting-started, #contact { padding: 64px 0; }
  #cta-banner { padding: 64px 0; }
  #hero { padding: 104px 16px 48px; gap: 36px; }

  #hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-sub { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 36px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .stat-num { font-size: 1.3rem; }

  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .section-header p { font-size: 0.93rem; }

  .features-grid { grid-template-columns: 1fr; }
  .product-card { padding: 26px 20px; }
  .pricing-card { padding: 28px 20px; }
  .monitor-grid { grid-template-columns: 1fr; gap: 14px; }
  .monitor-card { padding: 20px 18px; }
  .protect-grid { grid-template-columns: 1fr; }
  .protect-card-wide { grid-column: span 1; }
  .baseline-row { grid-template-columns: 1fr; }

  .gs-step-body h3 { font-size: 1.05rem; }
  .gs-step-body p { font-size: 0.88rem; }
  .gs-code-block code,
  .gs-code-block pre { font-size: 0.73rem; padding: 12px; }

  .help-banner-top { padding: 28px 20px 24px; }
  .help-banner-headline h2 { font-size: 1.25rem; }

  .cta-card { padding: 44px 22px; }
  .contact-form { padding: 26px 20px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .btn-large { padding: 13px 24px; font-size: 0.9rem; }
}

/* iOS Safari zooms the page when focusing inputs smaller than 16px */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea,
  .hiw-inline-form input { font-size: 16px; }
}
