/* ==========================================================================
   RefractSurvey brochure — stylesheet
   Palette matches the app's own "Moss" color theme, so the site and the
   screenshots on it feel like one continuous thing.
   ========================================================================== */

:root {
  --bg:            #151A16;
  --bg-grid:       #191F1A;
  --panel:         #1E251F;
  --panel-raised:  #253027;
  --border:        #313D33;
  --border-soft:   #283229;

  --text:          #EDEFF5;
  --text-muted:    #8B93A8;
  --text-faint:    #5C6478;

  --accent:        #5FBF5A;
  --accent-soft:   rgba(95, 191, 90, 0.14);
  --accent-border: rgba(95, 191, 90, 0.4);
  --accent-hover:  #6FCB6A;

  --font-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 42px 42px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
}

h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; color: var(--text-muted); max-width: 62ch; }

.section-label {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

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

/* Header / nav ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 26, 22, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent-border);
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #0D170D !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover); color: #0D170D !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero --------------------------------------------------------------------*/

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero .section-label {
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  max-width: 18ch;
  margin: 0 auto 20px;
}

.hero p.lede {
  max-width: 58ch;
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-shot {
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

/* Stat strip ---------------------------------------------------------------*/

.stats {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--accent);
}

.stat .stat-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Feature sections ----------------------------------------------------------*/

.feature {
  padding: 88px 0;
  border-bottom: 1px solid var(--border-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature:nth-child(even) .feature-grid > .feature-copy { order: 2; }

.feature-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.feature-shot img { width: 100%; }

.feature-shot figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  background: var(--panel-raised);
}

.feature-shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature--wide .feature-copy {
  max-width: 640px;
  margin: 0 0 40px;
}

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

.type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.type-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 999px;
}

/* Why-teams grid ----------------------------------------------------------*/

.why {
  padding: 88px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.why-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}

.why-card h3 { margin-bottom: 8px; color: var(--text); }
.why-card p { margin: 0; font-size: 15px; }

/* Closing / footer ----------------------------------------------------------*/

.closing {
  text-align: center;
  padding: 80px 0 60px;
  border-top: 1px solid var(--border-soft);
}

.closing h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  color: var(--text-faint);
  font-size: 13px;
  max-width: 60ch;
  margin: 0;
}

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

.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

/* Mobile -------------------------------------------------------------------*/

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .feature-grid > .feature-copy { order: 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .trio-shots { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { width: 100%; justify-content: center; display: flex; }

  .hero { padding: 56px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .feature { padding: 56px 0; }
  .feature-shot-pair { grid-template-columns: 1fr; }
  .trio-shots { grid-template-columns: 1fr; }
  .feature--wide .feature-copy { max-width: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why { padding: 56px 0; }
  .closing { padding: 56px 0 40px; }

  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat .stat-number { font-size: 28px; }
}

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