/* Harbor — landing page styles */

:root {
  --sand:      #FBF8F2;
  --sand-2:    #F4ECDE;
  --paper:     #FFFFFF;
  --ink:       #13303F;
  --ink-soft:  #4C6572;
  --navy:      #0E2C3D;
  --navy-2:    #0A2430;
  --teal:      #1B7A85;
  --teal-600:  #14646E;
  --coral:     #E58A5B;
  --coral-2:   #DE7748;
  --gold:      #E6B667;
  --line:      #E9DFCE;
  --line-2:    #DCCFB8;
  --shadow:    0 1px 2px rgba(16,44,61,.04), 0 12px 32px -12px rgba(16,44,61,.18);
  --shadow-sm: 0 1px 2px rgba(16,44,61,.05), 0 6px 18px -10px rgba(16,44,61,.16);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  border: 0; border-radius: 999px; padding: 14px 24px; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-2) 100%);
  color: #3a1a08;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px -8px rgba(222,119,72,.6);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 26px -8px rgba(222,119,72,.7); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .7; cursor: default; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,242,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-name { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand-pill {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-600);
  background: rgba(27,122,133,.10); border: 1px solid rgba(27,122,133,.18);
  padding: 3px 9px; border-radius: 999px; margin-left: 4px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links > a:hover { color: var(--ink); text-decoration: none; }
.nav-links > a.btn-primary { color: #3a1a08; }
@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links > a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 92px) 0 clamp(70px, 10vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(230,182,103,.22), transparent 60%),
    radial-gradient(55% 50% at 8% 0%, rgba(27,122,133,.12), transparent 55%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.eyebrow {
  font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-600); margin: 0 0 18px;
}
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 500; margin-bottom: 22px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 34em; margin: 0 0 30px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* Signup form */
.signup { max-width: 500px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type=email], .signup input[type=text] {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-sans); font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 14px 20px; transition: border-color .15s ease, box-shadow .15s ease;
}
.signup input::placeholder { color: #9aa9b0; }
.signup input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,122,133,.16); }
.signup-extra { margin-top: 10px; }
.signup-extra input { width: 100%; }
.signup-note { font-size: 13.5px; color: var(--ink-soft); margin: 12px 2px 0; }
.signup-success { font-size: 16px; color: var(--ink); margin: 6px 2px 0; }
.signup-dark .signup-success { color: #eaf3f2; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 460px) {
  .signup-row { flex-direction: column; }
  .signup input[type=email] { width: 100%; }
  .btn-primary { width: 100%; }
}

/* Chat visual */
.hero-visual { position: relative; }
.chat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 20px 20px 24px; max-width: 420px; margin-left: auto;
  position: relative;
}
.hero-visual::after {
  content: ""; position: absolute; inset: auto -10px -16px 30px; height: 40px; z-index: -1;
  background: radial-gradient(50% 100% at 50% 0, rgba(16,44,61,.16), transparent 70%);
  filter: blur(6px);
}
.chat-head {
  display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy);
  font-size: 15px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #38b26a; box-shadow: 0 0 0 3px rgba(56,178,106,.18); }
.bubble {
  font-size: 15px; line-height: 1.5; padding: 13px 16px; border-radius: 16px; margin-top: 12px;
  max-width: 90%;
}
.bubble-you { background: var(--sand-2); color: var(--ink); margin-left: auto; border-bottom-right-radius: 5px; }
.bubble-harbor {
  background: linear-gradient(180deg, #1d818d 0%, #15646e 100%); color: #f4fbfa;
  border-bottom-left-radius: 5px; box-shadow: 0 8px 18px -10px rgba(20,100,110,.7);
}
.chat-typing { display: flex; gap: 4px; padding: 12px 4px 2px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #c3d2d3; animation: blink 1.4s infinite both; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } }

/* Hero wave separator */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: 1;
  background:
    radial-gradient(120% 100% at 50% 100%, var(--sand-2) 0 40%, transparent 41%);
  opacity: .0;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker { font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 14px; }
.kicker-light { color: var(--gold); }
.section-head h2, .story-wrap h2, .guardrail h2 { font-size: clamp(28px, 4vw, 40px); }
.section-sub { font-size: 18px; color: var(--ink-soft); margin: 14px 0 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; color: var(--teal-600);
  background: rgba(27,122,133,.09); border: 1px solid rgba(27,122,133,.14); margin-bottom: 16px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Chips */
.chips { margin-top: 48px; padding: 30px 30px 26px; background: var(--sand-2); border-radius: var(--radius); border: 1px solid var(--line); }
.chips-label { font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 9px 16px; font-size: 14.5px; color: var(--ink); box-shadow: var(--shadow-sm);
}

/* Story */
.story { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-wrap { max-width: 760px; }
.story-wrap h2 { margin: 12px 0 24px; }
.prose p { font-size: 18px; color: #34505c; margin: 0 0 18px; }
.prose em { font-style: italic; color: var(--ink); }

/* Mission band */
.band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #dce8ea; }
.band-inner { max-width: 820px; padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(56px, 8vw, 88px); text-align: center; }
.band p { font-size: clamp(18px, 2.4vw, 22px); margin: 0 auto; color: #b9cdd0; max-width: 40em; }
.band-lead { font-family: var(--font-serif); font-size: clamp(26px, 4vw, 34px); color: #fff; margin-top: 18px; }

/* Guardrail */
.guardrail {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: rgba(27,122,133,.06); border: 1px solid rgba(27,122,133,.16);
  border-radius: var(--radius); padding: 32px 34px;
}
.guardrail-badge {
  color: var(--teal-600); background: var(--paper); border: 1px solid rgba(27,122,133,.2);
  width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
}
.guardrail h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.guardrail p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }
@media (max-width: 560px) { .guardrail { grid-template-columns: 1fr; } }

/* Access / final CTA */
.access { background: linear-gradient(165deg, #103647 0%, #0A2430 100%); color: #eaf3f2; position: relative; overflow: hidden; }
.access::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 15%, rgba(230,182,103,.16), transparent 60%),
              radial-gradient(50% 60% at 10% 100%, rgba(27,122,133,.22), transparent 60%);
}
.access-inner { position: relative; max-width: 640px; padding: clamp(60px, 9vw, 100px) 0; text-align: center; }
.access h2 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); }
.access-sub { color: #b9cdd0; font-size: 18px; margin: 18px auto 30px; max-width: 40em; }
.signup-dark { margin: 0 auto; }
.signup-dark input { background: rgba(255,255,255,.96); border-color: transparent; }
.signup-note-light { color: #90a9ad; }

/* Footer */
.footer { background: var(--navy-2); color: #a7bdc0; padding: 52px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #eaf3f2; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-tag { margin: 0; color: #90a9ad; font-style: italic; }
.footer-contact { margin: 0 0 0 auto; }
.footer-contact a { color: #eaf3f2; font-weight: 500; }
.footer-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-legal p { margin: 0 0 6px; font-size: 13.5px; color: #7f979b; }
@media (max-width: 560px) { .footer-contact { margin: 6px 0 0; } }
