/* ===== Sandlake — design tokens ===== */
:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --bg-raised: #161616;
  --border: #2a2a2a;
  --text: #f4f4f2;
  --text-dim: #9a9a96;
  --text-faint: #5c5c58;
  --accent: #f4f4f2;
  --accent-dim: #6b6b66;
  --mono: "JetBrains Mono", "SF Mono", "Roboto Mono", Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-w: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
body > *:not(.site-header) { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 20px;
}
.eyebrow::before { content: "[ "; color: var(--text-faint); }
.eyebrow::after { content: " ]"; color: var(--text-faint); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo svg { flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-dim);
}

.nav-ctas { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  padding: clamp(70px, 12vw, 140px) 0 clamp(50px, 8vw, 90px);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  max-width: 15ch;
}
.hero .sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 58ch;
  line-height: 1.6;
}
.hero .ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.page-hero {
  padding: clamp(50px, 8vw, 90px) 0 clamp(40px, 6vw, 60px);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 20ch; }
.page-hero .sub { margin-top: 20px; font-size: 17px; color: var(--text-dim); max-width: 62ch; }

/* ===== Trust bar ===== */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 34px 0;
}
.trust-bar .wrap {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-bar .mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.trust-bar p { color: var(--text-dim); font-size: 14px; max-width: 70ch; }

/* ===== Section scaffolding ===== */
section { padding: clamp(56px, 9vw, 100px) 0; }
.section-border { border-bottom: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section-head .sub { margin-top: 16px; color: var(--text-dim); font-size: 16px; }

/* ===== Step band ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.step { background: var(--bg); padding: 40px 32px; }
.step .icon-mark { color: var(--accent); margin-bottom: 20px; display: block; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 24px; display: block; }
.step h3 { font-size: 21px; margin-bottom: 12px; }
.step p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ===== Cards / grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card { background: var(--bg); padding: 36px 32px; transition: background 0.2s ease; }
.card:hover { background: var(--bg-alt); }
.step { transition: background 0.2s ease; }
.step:hover { background: var(--bg-alt); }
.card .icon-mark { color: var(--accent); margin-bottom: 20px; display: block; }
.card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  display: inline-block;
}
.card .tag.soon { color: var(--accent); border: 1px solid var(--accent-dim); padding: 3px 9px; border-radius: 3px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.card ul { margin-top: 18px; }
.card ul li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.5;
}
.card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

/* ===== Problem section: asymmetric two-column layout ===== */
.problem-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.problem-layout .section-head { margin-bottom: 0; }
@media (max-width: 940px) {
  .problem-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Flow comparison diagram ===== */
.flow-compare { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.flow-row { display: flex; align-items: center; gap: 20px; padding: 28px 32px; flex-wrap: wrap; }
.flow-row.leak { border-bottom: 1px solid var(--border); }
.flow-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  width: 100%;
  margin-bottom: 4px;
}
.flow-chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.flow-arrow { color: var(--text-faint); font-size: 18px; }
.flow-boundary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 6px;
  flex: 1;
  min-width: 220px;
}
.flow-boundary.dashed { border: 1.5px dashed var(--text-faint); opacity: 0.7; }
.flow-boundary.solid { border: 2px solid var(--text); background: var(--bg-raised); }
.flow-boundary-label {
  font-size: 12px;
  color: var(--text-faint);
  width: 100%;
  margin-bottom: 2px;
}
.flow-boundary.solid .flow-boundary-label { color: var(--text); font-weight: 600; }
.flow-chip.small { padding: 6px 12px; font-size: 12px; color: var(--text-dim); }
.flow-boundary.solid .flow-chip.small { color: var(--text); border-color: var(--text-faint); background: var(--bg); }
.flow-row.safe { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02)); }
@media (max-width: 640px) { .flow-row { padding: 22px 20px; } }

/* ===== Pricing / offer module ===== */
.offer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (max-width: 860px) { .offer-grid, .grid-3, .grid-4, .grid-2, .steps { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.offer-panel { background: var(--bg); padding: 44px; }
.offer-panel h3 { font-size: 22px; margin-bottom: 20px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .label { color: var(--text-dim); }
.spec-row .value { color: var(--text); font-weight: 500; text-align: right; }
.tier-panel { background: var(--bg-alt); padding: 44px; }
.tier {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}
.tier:last-child { margin-bottom: 0; }
.tier .name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tier p { color: var(--text-dim); font-size: 14px; }

/* ===== FAQ accordion ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 20px;
}
.faq-q .icon { font-family: var(--mono); color: var(--accent); font-size: 20px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { color: var(--text-dim); font-size: 15px; line-height: 1.7; padding-bottom: 26px; max-width: 68ch; }
.faq-item.open .faq-a { max-height: 400px; }

/* ===== Notice / gate box ===== */
.notice-box {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.notice-box .icon { font-family: var(--mono); color: var(--accent); font-size: 18px; }
.notice-box p { color: var(--text-dim); font-size: 14px; line-height: 1.65; }

/* ===== Form ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-dim); }
.field input, .field select, .field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-dim); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ===== Team / values grid ===== */
.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
@media (max-width: 700px) { .value-list { grid-template-columns: 1fr; } }
.value-list .item h4 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.value-list .item h4 svg { flex-shrink: 0; color: var(--text-faint); }
.value-list .item p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ===== Footer CTA ===== */
.footer-cta {
  text-align: center;
  padding: clamp(70px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.footer-cta h2 { font-size: clamp(28px, 4vw, 46px); max-width: 20ch; margin: 0 auto; }
.footer-cta .sub { margin: 20px auto 0; color: var(--text-dim); max-width: 50ch; font-size: 16px; }
.footer-cta .ctas { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ===== Footer ===== */
footer.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid .col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid .col a, .footer-grid .col p { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.footer-grid .col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== Responsive nav ===== */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .main-nav.open-mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--pad) 20px;
    gap: 0;
  }
  .main-nav.open-mobile a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .main-nav.open-mobile a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .nav-ctas .btn-outline { display: none; }
}

/* Utility */
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
