:root {
  --bg:#0b0d10;
  --card:#11151b;
  --text:#e9eef6;
  --muted:#a9b4c3;
  --line:#233042;
  --accent:#66d9ff;
}

* { box-sizing: border-box; }

body {
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, #102033 0%, var(--bg) 55%);
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.logo {
  font-weight: 800;
  letter-spacing: .3px;
}

.nav {
  display:flex;
  gap:14px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

.hero {
  margin-top: 38px;
  display:grid;
  gap: 18px;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin:0;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
}

.sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

.example-callout {
  font-size: 14px;
  color: var(--accent);
  background: rgba(102,217,255,.08);
  border: 1px solid rgba(102,217,255,.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 500;
  max-width: fit-content;
}

.cta-subtext {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.ctaRow {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top: 10px;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-weight: 650;
  font-size: 14px;
}

.btnPrimary {
  background: linear-gradient(135deg, rgba(102,217,255,.22), rgba(102,217,255,.06));
  border-color: rgba(102,217,255,.35);
}

.grid {
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.card {
  grid-column: span 12;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

@media (min-width: 860px) {
  .card.third { grid-column: span 4; }
  .card.half { grid-column: span 6; }
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.sep {
  margin: 28px 0;
  border:0;
  border-top: 1px solid var(--line);
  opacity: .8;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Form styles */
input, textarea, select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

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

textarea {
  resize: vertical;
}

label {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.formGroup {
  display: grid;
  gap: 6px;
}

.formContainer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.form-welcome {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.form-helper {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.form-response-time {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Enhanced button states */
.btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  border-color: rgba(102,217,255,.5);
  background: rgba(255,255,255,.08);
}

.btnPrimary:hover {
  background: linear-gradient(135deg, rgba(102,217,255,.3), rgba(102,217,255,.1));
  border-color: rgba(102,217,255,.5);
}

.btn:active {
  transform: translateY(0);
}

/* Enhanced card states */
.card {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: rgba(102,217,255,.15);
}

/* Focus states for accessibility */
input:focus, textarea:focus, select:focus, button:focus, .btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Calibration card visual distinction */
.calibration-card {
  border-left: 3px solid var(--accent);
  background: rgba(102,217,255,.04);
}

/* Case study visual improvements */
.case-study {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 24px;
}

.case-metric {
  color: var(--accent);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.simpler-callout {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(102,217,255,.06);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Approach page - Decision table */
.decision-table {
  display: grid;
  gap: 12px;
}

.decision-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.decision-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.decision-good {
  border-left: 3px solid #4ade80;
}
.decision-good .decision-label { color: #4ade80; }

.decision-partial {
  border-left: 3px solid #fbbf24;
}
.decision-partial .decision-label { color: #fbbf24; }

.decision-skip {
  border-left: 3px solid #f87171;
}
.decision-skip .decision-label { color: #f87171; }

/* Approach page - Cost examples */
.cost-example {
  padding: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cost-task {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.cost-amount {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  color: var(--accent);
  margin: 4px 0;
}

.cost-note {
  font-size: 13px;
  color: var(--muted);
}

.cost-comparison {
  margin-top: 16px;
  padding: 12px;
  background: rgba(102,217,255,.06);
  border-radius: 8px;
}

/* Approach page - Framework questions */
.framework-question {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.framework-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102,217,255,.15);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.framework-summary {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-callout {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(102,217,255,.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--muted);
}

/* About page */
.about-contact {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .decision-row {
    grid-template-columns: 1fr;
  }

  .decision-label {
    margin-bottom: 4px;
  }
}

/* Mobile navigation improvements */
@media (max-width: 600px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
  }

  .hero {
    margin-top: 24px;
  }

  h1 {
    font-size: 24px;
  }

  .ctaRow {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .badge {
    width: 100%;
    text-align: center;
  }
}

/* Back to top link */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: rgba(102,217,255,.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Improved spacing for long content */
.card h4 {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.card h4:first-of-type {
  margin-top: 12px;
}
