/* =========================================================
   Releazely — design tokens
   ========================================================= */
:root {
  --bg: #10141A;
  --surface: #161B22;
  --surface-raised: #1B212A;
  --border: #262E38;
  --border-strong: #333D4A;

  --text: #E7EAEF;
  --text-muted: #97A2B0;
  --text-faint: #6B7684;

  --accent: #3FAE9E;        /* "validated" signal */
  --accent-strong: #56C9B8;
  --accent-warm: #E0A458;   /* "risk / attention" signal */

  --focus: #6FB8FF;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --max-w: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --radius-sm: 3px;
  --radius-md: 6px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 54ch;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0 0 14px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-top: 10px;
}

.section-head .lede {
  margin-top: 16px;
}

section {
  padding: clamp(56px, 9vw, 108px) 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent);
  color: #0B1613;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 20, 26, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 140ms var(--ease);
}
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }

  .mobile-nav {
    display: none;
    flex-direction: column;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
  }
  .mobile-nav a:last-of-type { border-bottom: none; }
  .mobile-nav .btn { margin-top: 16px; justify-content: center; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: clamp(64px, 10vw, 120px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 34px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-faint);
}

.hero-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 28px;
}

.hero-visual .visual-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.check-row:first-of-type { border-top: none; }

.check-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.check-dot.pass { background: var(--accent); }
.check-dot.warn { background: var(--accent-warm); }
.check-dot.pending {
  background: transparent;
  border: 1.5px solid var(--border-strong);
}

.check-row-label { flex: 1; font-size: 0.92rem; color: var(--text); }
.check-row-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
}
.check-row-status.is-pass { color: var(--accent); }
.check-row-status.is-warn { color: var(--accent-warm); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* =========================================================
   Problem section
   ========================================================= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.problem-item {
  background: var(--surface);
  padding: 28px;
}

.problem-item h3 { margin-bottom: 10px; font-size: 1.02rem; }
.problem-item p { color: var(--text-muted); font-size: 0.94rem; }

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Solution section
   ========================================================= */
.solution-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
}

.solution-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.solution-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.96rem;
}
.solution-list li:first-child { border-top: none; padding-top: 0; }

.solution-list li .mark {
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
  padding-top: 1px;
}

@media (max-width: 860px) {
  .solution-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   Services
   ========================================================= */
.services-list { border-top: 1px solid var(--border); }

.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.3fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.service-index {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.85rem;
  padding-top: 4px;
}

.service-heading h3 { margin-bottom: 10px; }
.service-heading .service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 3px 10px;
  margin-top: 12px;
}

.service-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }

.service-body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  columns: 2;
  column-gap: 24px;
}
.service-body ul li { margin-bottom: 6px; break-inside: avoid; }

@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-body ul { columns: 1; }
}

/* =========================================================
   Trust / About
   ========================================================= */
.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
}

.trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.trust-points li {
  display: flex;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.trust-points li .mark { color: var(--accent-warm); font-family: var(--font-mono); flex-shrink: 0; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.about-card p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.96rem; }
.about-card p:last-of-type { margin-bottom: 0; }

.about-meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
}
.about-meta a { color: var(--accent-strong); }
.about-meta a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .trust-layout { grid-template-columns: 1fr; }
}

/* =========================================================
   How we work
   ========================================================= */
.steps-list {
  display: grid;
  gap: 0;
}

.step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.step-row:first-child { border-top: none; padding-top: 0; }

.step-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 500;
}

.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--text-muted); font-size: 0.95rem; max-width: 62ch; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-item[open] summary::after { content: '–'; }

.faq-item .faq-answer {
  padding: 0 0 24px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 68ch;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
}

.contact-intro .lede { margin-top: 16px; margin-bottom: 28px; }

.contact-detail {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-faint);
  display: grid;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.contact-detail a { color: var(--accent-strong); }
.contact-detail a:hover { text-decoration: underline; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .field-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.field .optional { color: var(--text-faint); font-weight: 400; }

.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field textarea { resize: vertical; min-height: 100px; }

.field-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.check-option input { accent-color: var(--accent); }
.check-option:has(input:checked) {
  border-color: var(--accent);
  color: var(--text);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 4px;
}

.form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { color: var(--accent-strong); }
.form-status.error { color: var(--accent-warm); }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-checks { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-meta {
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a { color: var(--text-faint); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text-muted); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #0B1613;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
