/* HomeBridge v0.3 Launch Page */

:root {
  --bg: #f8f4ec;
  --panel: #fffaf2;
  --panel-strong: #ffffff;
  --text: #182b3f;
  --muted: #687887;
  --line: #e5dccd;
  --accent: #2f7b78;
  --accent-dark: #1f5f5d;
  --gold: #b98a3b;
  --shadow: 0 24px 70px rgba(24, 43, 63, 0.10);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-size: 21px; font-weight: 750; letter-spacing: -0.03em; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--text); }

.hero {
  min-height: 78vh;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 760;
}
.hero-copy {
  max-width: 720px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
}
.hero-actions { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--text); color: white; box-shadow: 0 14px 35px rgba(24, 43, 63, 0.18); }
.button.secondary { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.55); }
.button.tertiary { color: var(--accent-dark); background: transparent; padding-left: 10px; padding-right: 10px; }

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}
.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading.narrow { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -0.055em; }
.section-heading p:not(.eyebrow), .vision-copy p, .form-intro p {
  color: var(--muted);
  font-size: 18px;
}

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .pillar, .dashboard-card, .access-form {
  background: rgba(255, 250, 242, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 30px; }
.card span { color: var(--gold); font-weight: 800; font-size: 13px; }
.card h3, .pillar h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -0.035em; }
.card p, .pillar p { margin: 0; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 42px; }
.pillar { padding: 24px; min-height: 180px; }

.vision { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vision-copy { max-width: 540px; }
.dashboard-card {
  padding: 28px;
  background: #12263b;
  color: white;
  box-shadow: 0 28px 80px rgba(18, 38, 59, 0.24);
}
.dashboard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: rgba(255,255,255,0.92); }
.dashboard-top p { margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.dashboard-top span { font-size: 12px; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 6px 10px; }
.status-row { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.86); }
.status-row strong { font-size: 13px; border-radius: 999px; padding: 5px 10px; }
.ok { background: rgba(73, 196, 142, 0.16); color: #9de8c2; }
.progress { background: rgba(75, 166, 205, 0.16); color: #9bdcf5; }
.attention { background: rgba(246, 190, 92, 0.16); color: #f4ca82; }

.early-access {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}
.form-intro { position: sticky; top: 40px; }
.access-form {
  padding: 32px;
  background: var(--panel-strong);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, fieldset {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
input, textarea, select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  font: inherit;
  background: #fffdf8;
  color: var(--text);
}
textarea { resize: vertical; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
legend { padding: 0 8px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 10px; }
.checkbox-grid label {
  margin: 0;
  font-weight: 500;
  color: var(--muted);
}
.checkbox-grid input {
  width: auto;
  margin: 0 8px 0 0;
}
.form-button { margin-top: 6px; width: 100%; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 54px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.footer p { margin: 0; }
.footer strong { color: var(--text); }
.footer a { color: var(--text); font-weight: 700; }

.thank-you {
  min-height: 100vh;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 900px) {
  .problem-grid, .pillars, .vision, .early-access { grid-template-columns: 1fr; }
  .pillars { gap: 16px; }
  .pillar { min-height: auto; }
  .hero { min-height: auto; padding: 72px 0 86px; }
  nav { gap: 16px; font-size: 14px; }
  .footer { flex-direction: column; }
  .form-intro { position: static; }
}
@media (max-width: 620px) {
  .site-header { align-items: flex-start; gap: 18px; flex-direction: column; }
  nav { flex-wrap: wrap; }
  h1 { font-size: clamp(44px, 14vw, 72px); }
  .section { padding: 70px 0; }
  .form-row, .checkbox-grid { grid-template-columns: 1fr; }
  .access-form { padding: 24px; }
}
