/* House Reef landing page — tokens mirror the app's House Reef rebrand
   (lib/theme/design_tokens.dart): coral is the primary accent with gold
   as the CTA gradient partner, hairlines are warm (#FFC8AA), and teal is
   demoted to data — depth readouts, stat numbers, AI confidence,
   confirmed states. The water gradients match AppColors.sceneGradient. */

:root {
  --ink: #f0faff;
  --ink-75: rgba(240, 250, 255, .75);
  --ink-60: rgba(240, 250, 255, .6);
  --ink-55: rgba(240, 250, 255, .55);
  --ink-50: rgba(240, 250, 255, .5);
  --ink-45: rgba(240, 250, 255, .45);
  --ink-40: rgba(240, 250, 255, .4);
  --deep: #041c30;
  --teal: #7de8d8;
  --teal-soft: #bff3ea;
  --blue: #3fc0e8;
  --coral: #ff8c69;
  --coral-soft: #ffab8f;
  --amber: #ffd166;
  --cta-ink: #2a1208;
  --card-bg: rgba(255, 255, 255, .07);
  --card-border: rgba(255, 200, 170, .14);
  --field-bg: rgba(255, 255, 255, .08);
  --field-border: rgba(255, 200, 170, .2);
  --grad: linear-gradient(135deg, #ff8c69, #ffd166);
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep);
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; }

.wrap { max-width: 1140px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- shared bits ---------- */

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
}

h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 10px 0 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
}

.btn {
  display: inline-block;
  background: var(--grad);
  color: var(--cta-ink);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 6px 24px rgba(255, 140, 105, .3);
}
.btn:hover { filter: brightness(1.06); color: var(--cta-ink); }
.btn[disabled] { opacity: .6; cursor: default; filter: none; }

input, textarea {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
}
input::placeholder, textarea::placeholder { color: rgba(240, 250, 255, .35); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 3px rgba(255, 140, 105, .18);
}

.form-note { font-size: 12.5px; min-height: 1.2em; margin: 0; }
.form-note.ok { color: var(--teal); }
.form-note.err { color: #ff9d87; }

/* ---------- header ---------- */

.site-header {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo b { color: var(--coral); font-weight: 800; }
.logo img {
  width: 32px;
  height: 32px;
  background: var(--grad);
  border-radius: 10px;
  padding: 2px;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  margin-left: auto;
}

.header-cta {
  background: var(--grad);
  color: var(--cta-ink);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(255, 140, 105, .3);
  white-space: nowrap;
}
.header-cta:hover { color: var(--cta-ink); filter: brightness(1.06); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b7ea6 0%, #0a628e 32%, #083f6e 62%, #041c30 100%);
  margin-top: 24px;
}

.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(170, 235, 255, .5);
  animation: rise 9s linear infinite;
}
.bubble:nth-child(1) { left: 8%;  width: 12px; height: 12px; }
.bubble:nth-child(2) { left: 14%; width: 7px;  height: 7px;  border-color: rgba(170, 235, 255, .4); animation-duration: 7s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 52%; width: 9px;  height: 9px;  border-color: rgba(170, 235, 255, .4); animation-duration: 8s; animation-delay: 1s; }
.bubble:nth-child(4) { left: 88%; width: 11px; height: 11px; border-color: rgba(170, 235, 255, .45); animation-duration: 10s; animation-delay: 3s; }

.hero-grid {
  padding-top: 72px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ffe0a3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--coral); }

.hero h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.06;
  max-width: 15ch;
  margin: 18px 0 16px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-75);
  max-width: 46ch;
  margin: 0;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 28px 0 10px;
}
.waitlist-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 200, 170, .25);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
}
.waitlist-form .btn {
  flex: none;
  font-size: 14px;
  padding: 13px 22px;
  box-shadow: 0 6px 24px rgba(255, 140, 105, .35);
}

.store-pills { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.store-pills span {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-75);
}

/* phone with a real app screenshot */

.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: 300px;
  border-radius: 48px;
  background: #0b0f16;
  border: 1px solid rgba(255, 200, 170, .2);
  padding: 10px;
  box-shadow: 0 34px 90px rgba(2, 10, 20, .55), inset 0 0 0 2px rgba(255, 255, 255, .04);
}
.phone-screen {
  border-radius: 38px;
  overflow: hidden;
  background: var(--deep);
}
.phone-screen img { display: block; width: 100%; height: auto; }

.hero-otto {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -24px;
  bottom: -30px;
  animation: bob 4.5s ease-in-out infinite;
  z-index: 2;
}

/* ---------- features ---------- */

.features { padding-top: 76px; padding-bottom: 40px; }
.features h2 { max-width: 22ch; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.feature { padding: 22px; }
.feature .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral);
}
.feature h3 { font-size: 17px; font-weight: 700; margin: 8px 0 6px; }
.feature p { font-size: 13px; line-height: 1.6; color: var(--ink-60); margin: 0; }

/* ---------- AI section ---------- */

.ai-section {
  padding-top: 40px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.ai-section figure { margin: 0; position: relative; }
.ai-section figure img {
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(255, 200, 170, .14);
}
figcaption {
  font-size: 11.5px;
  color: var(--ink-45);
  margin-top: 10px;
  font-family: var(--mono);
}

.ai-copy h2 { max-width: 20ch; margin-bottom: 12px; }
.ai-copy > p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); max-width: 48ch; margin: 0; }

.suggestion-card { max-width: 420px; padding: 18px; margin-top: 20px; }
.suggestion-row { display: flex; gap: 12px; align-items: center; }
.suggestion-row img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.suggestion-row .grow { flex: 1; }
.suggestion-name { font-size: 14.5px; font-weight: 700; }
.confidence-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  margin-top: 8px;
  overflow: hidden;
}
.confidence-fill {
  width: 87%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7de8d8, #3fc0e8);
  box-shadow: 0 0 10px rgba(125, 232, 216, .5);
}
.confidence-label { font-size: 10.5px; color: var(--ink-50); margin-top: 6px; font-family: var(--mono); }
.suggestion-actions { display: flex; gap: 8px; margin-top: 14px; }
.suggestion-actions .btn { font-size: 12.5px; padding: 10px 20px; border-radius: 12px; box-shadow: none; }
.btn-ghost {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
}

/* ---------- live conditions band ---------- */

.live-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0b7ea6, #083f6e 55%, #06233f);
}
.live-band .wrap {
  padding-top: 60px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
}
.live-band .kicker { color: var(--teal-soft); }
.live-band h2 {
  font-size: 30px;
  margin: 10px 0;
  max-width: 26ch;
  font-family: var(--mono);
  letter-spacing: -.01em;
}
.live-band p { color: var(--ink-75); max-width: 54ch; margin: 0; font-size: 15px; line-height: 1.6; }
.live-band svg { max-width: 100%; height: auto; }

/* ---------- pilot ---------- */

.pilot {
  padding-top: 76px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}
.pilot h2 { max-width: 18ch; margin-bottom: 12px; }
.pilot p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); max-width: 52ch; margin: 0; }
.pilot p + p { margin-top: 12px; }
.pilot b { color: var(--ink); }

.pilot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pilot-photo { grid-column: 1 / -1; margin: 8px 0 0; }
.pilot-photo img {
  border-radius: 18px;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(255, 200, 170, .14);
}
.pilot-stat { padding: 18px; }
.pilot-stat .num { font-family: var(--mono); font-size: 22px; font-weight: 600; color: #a5f0e2; }
.pilot-stat .lbl { font-size: 12px; color: var(--ink-55); margin-top: 4px; }

/* ---------- dive centres ---------- */

.centres {
  padding-top: 76px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.centres .kicker { color: var(--amber); }
.centres h2 { max-width: 18ch; margin-bottom: 12px; }
.centres-copy > p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); max-width: 46ch; margin: 0; }

.centres-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.centres-list li { display: flex; gap: 12px; align-items: baseline; }
.centres-list .step {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 12px;
  background: rgba(255, 209, 102, .12);
  border: 1px solid rgba(255, 209, 102, .3);
  border-radius: 999px;
  padding: 2px 10px;
  flex: none;
}

.centres-copy figure { margin: 0; }
.centres-copy figure img {
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(255, 200, 170, .14);
}

.partner-form {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-form h3 { margin: 0; font-size: 21px; font-weight: 700; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.partner-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.partner-form textarea { resize: vertical; }
.partner-form .btn { align-self: flex-start; }
.partner-form .aside { font-size: 11.5px; color: var(--ink-45); }

/* ---------- careers ---------- */

.careers { padding-bottom: 76px; }
.careers-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 200, 170, .12);
  border-radius: 24px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.careers-card h2 { margin-bottom: 12px; }
.careers-card > div > p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); max-width: 46ch; margin: 0; }

.career-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.career-tags span {
  background: rgba(255, 140, 105, .1);
  border: 1px solid rgba(255, 140, 105, .3);
  color: var(--coral);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

.mascot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mascot-card {
  background: rgba(4, 28, 48, .7);
  border: 1px solid rgba(255, 200, 170, .14);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 150px;
}
.mascot-card img { width: 76px; height: 76px; animation: bob 5s ease-in-out infinite; }
.mascot-card:nth-child(1) img { animation-duration: 4.5s; }
.mascot-card:nth-child(2) img { animation-delay: .8s; animation-duration: 5.5s; }
.mascot-card:nth-child(3) img { animation-delay: .4s; }
.mascot-card:nth-child(4) img { animation-delay: 1.2s; }
.mascot-card:nth-child(5) img { animation-delay: .6s; animation-duration: 5.2s; }
.mascot-card:nth-child(6) img { animation-delay: 1.6s; animation-duration: 4.8s; }
.mascot-card .name { font-size: 12.5px; font-weight: 700; }
.mascot-card .duty { font-size: 10px; color: var(--ink-50); font-family: var(--mono); }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; padding: 0 28px 84px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.faq details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 20px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { font-size: 13.5px; line-height: 1.6; color: var(--ink-60); margin: 10px 0 0; }

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

.site-footer {
  border-top: 1px solid rgba(255, 200, 170, .1);
  background: rgba(3, 16, 28, .6);
  padding: 36px 28px;
}
.footer-main {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); }
.footer-logo b { color: var(--coral); }
.footer-logo img { width: 26px; height: 26px; background: var(--grad); border-radius: 8px; padding: 2px; }
.footer-status { font-size: 11.5px; color: var(--ink-45); font-family: var(--mono); }
.footer-nav { margin-left: auto; display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }

.footer-legal {
  max-width: 1140px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 200, 170, .08);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-40);
}
.footer-legal a { color: var(--ink-55); }
.footer-legal .safety { margin-left: auto; }

/* ---------- animation ---------- */

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .7; }
  100% { transform: translateY(-420px); opacity: 0; }
}

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

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; }
  .hero-device { margin-top: 8px; }
  .hero-otto { right: calc(50% - 180px); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .ai-section, .pilot, .centres { grid-template-columns: 1fr; gap: 36px; }
  .live-band .wrap { grid-template-columns: 1fr; }
  .careers-card { grid-template-columns: 1fr; }
  .mascot-grid { justify-content: start; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero h1 { font-size: 38px; }
  h2 { font-size: 27px; }
  .live-band h2 { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .pilot-stats { grid-template-columns: 1fr 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .careers-card { padding: 32px 24px; }
  .mascot-grid { grid-template-columns: 1fr 1fr; }
  .mascot-card { width: auto; }
  .footer-nav { margin-left: 0; }
  .footer-legal .safety { margin-left: 0; }
}
