/* Thermalize — public marketing site (design tokens align with public_site/design/screen_spec_home.md) */
:root {
  /* Color */
  --bg: #0b1120;
  --bg-alt: #0f1729;
  --bg-card: #131d2e;
  --text: #e6edf3;
  --text-muted: #8b9cad;
  --accent: #2dd4bf;
  --accent-dim: #0d9488;
  --warm: #f59e0b;
  --warm-dim: #b45309;
  --border: #1e2d3d;
  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  /* Layout */
  --max-w: 1120px;
  --nav-height: 72px;
  --section-y: clamp(3.5rem, 8vw, 5rem);
  /* Spacing scale (px-equivalent via rem @ 16px root) */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;
  /* Typography */
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font-body);
  --font: var(--font-body);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 4px 28px rgba(45, 212, 191, 0.18);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Display headings — Outfit (see design/screen_spec_home.md) */
.hero h1,
.page-header h1,
.section-title,
.cta-band h2,
.prose h2,
.prose h3,
.everflow-callout-text h3,
.contact-card h3 {
  font-family: var(--font-display);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transform: translateY(-120%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

*:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #5eead4; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
}

.nav-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1.2;
}

.nav-brand-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--bg) !important;
  background: var(--accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: #5eead4;
  color: var(--bg) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-5) var(--space-7);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(45, 212, 191, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 100px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .accent { color: var(--accent); }
.hero h1 .warm { color: var(--warm); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #5eead4;
  color: var(--bg);
  box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ── Sections ── */
.section {
  padding: var(--section-y) var(--space-5);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── Stat row ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.stat:hover {
  background: rgba(19, 29, 46, 0.5);
  border-color: var(--border);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.stat-value .warm { color: var(--warm); }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── Pillar / feature cards ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pillar {
  background: linear-gradient(145deg, rgba(19, 29, 46, 0.95) 0%, rgba(15, 23, 41, 0.65) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.pillar:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar-icon.teal { background: rgba(45, 212, 191, 0.12); color: var(--accent); }
.pillar-icon.amber { background: rgba(245, 158, 11, 0.12); color: var(--warm); }
.pillar-icon.blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.pillar-icon.green { background: rgba(34, 197, 94, 0.12); color: #4ade80; }

.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-text .section-label,
.two-col-text .section-title,
.two-col-text .section-desc {
  margin-bottom: 0.75rem;
}

.two-col-text .section-desc { margin-bottom: 1.5rem; }

.two-col-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.two-col-visual ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.two-col-visual li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.check-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.check-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Everflow callout ── */
.everflow-callout {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(45, 212, 191, 0.06) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.everflow-callout-text {
  flex: 1;
}

.everflow-callout-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #4ade80;
}

.everflow-callout-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: var(--section-y) var(--space-5);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) var(--space-5);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-legal {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-legal p { margin-bottom: 0.35rem; }

/* ── Page header (non-home pages) ── */
.page-header {
  padding: calc(var(--nav-height) + var(--space-7)) var(--space-5) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Prose block ── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose p { margin-bottom: 1rem; color: var(--text-muted); }
.prose p strong { color: var(--text); }
.prose ul { margin-bottom: 1rem; padding-left: 1.25rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.35rem; }

/* ── Contact / form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: rgba(45, 212, 191, 0.25);
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.contact-card .btn {
  font-size: 0.9rem;
}

/* ── Timeline / stages ── */
.stages {
  display: grid;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.stages::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}

.stage {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.stage-dot {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.stage-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.stage-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Partner benefits list ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.benefit {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(145deg, rgba(19, 29, 46, 0.95) 0%, rgba(15, 23, 41, 0.55) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.benefit:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.benefit h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.benefit p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0.75rem;
  }
  .hero { padding: 8rem 1.5rem 4rem; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .everflow-callout { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
}
