/*
  Harbor Marketing Site
  ─────────────────────────────────────────────────────────────
  Goals:
  - modern, consistent, readable
  - premium SaaS feel (subtle gradients, depth, crisp type)
  - accessible focus states
*/

:root{
  --primary:#35549A;
  --primary-700:#233E7C;
  --accent:#6FA0D3;

  --bg:#F7F9FC;
  --surface:#FFFFFF;
  --text:#0E1A2B;
  --muted:#5A667A;

  --border: rgba(14,26,43,0.10);
  --border-strong: rgba(14,26,43,0.16);

  --shadow-sm: 0 10px 26px rgba(14,26,43,0.06);
  --shadow-md: 0 16px 42px rgba(14,26,43,0.10);

  --radius: 18px;
  --radius-sm: 12px;

  --max: 1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img{max-width:100%; height:auto; display:block}

a{color:inherit; text-decoration:none}
a:hover{color:var(--primary-700)}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Accessibility */
:focus-visible{outline: 3px solid rgba(53,84,154,0.35); outline-offset: 3px; border-radius: 10px;}

/* ─────────────────────────────────────────────────────────────
   Header + Mobile Drawer
   ───────────────────────────────────────────────────────────── */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(247,249,252,0.84);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 170px;
}
.brand img{height:36px; width:auto}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex: 1 1 auto;
}
.nav-links a{
  color:var(--muted);
  font-weight:800;
  font-size:14px;
  letter-spacing:-0.01em;
  padding:10px 10px;
  border-radius:12px;
}
.nav-links a:hover{color:var(--text); background:rgba(14,26,43,0.04)}

.nav-links a.active{
  color:var(--text);
  background:rgba(53,84,154,0.10);
}

.nav-cta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 240px;
  justify-content:flex-end;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:var(--radius-sm);
  border:1px solid transparent;
  font-weight:900;
  letter-spacing:-0.01em;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{transform: translateY(1px)}

.btn-primary{
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color:#fff;
  box-shadow: 0 10px 24px rgba(35,62,124,0.22);
}
.btn-primary:hover{filter:brightness(0.98); box-shadow: 0 14px 32px rgba(35,62,124,0.26)}

.btn-ghost{
  background:rgba(255,255,255,0.75);
  border-color:rgba(14,26,43,0.14);
  color:var(--text);
}
.btn-ghost:hover{background:#fff; border-color:rgba(14,26,43,0.22)}

.btn-link{
  background:transparent;
  padding:10px 8px;
  color:var(--muted);
}
.btn-link:hover{color:var(--text); background:rgba(14,26,43,0.04)}

.nav-toggle{
  display:none;
  border:1px solid rgba(14,26,43,0.14);
  background:rgba(255,255,255,0.72);
  border-radius:14px;
  height:42px;
  width:46px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle:hover{background:#fff; border-color:rgba(14,26,43,0.22)}
.nav-toggle svg{width:18px;height:18px; fill:var(--text)}

.mobile-drawer{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(14,26,43,0.44);
  z-index:1200;
}
.mobile-drawer.open{display:block}
.drawer-panel{
  position:absolute;
  top:0; right:0;
  height:100%;
  width:min(420px, 88vw);
  background:#fff;
  border-left:1px solid rgba(14,26,43,0.10);
  box-shadow: 0 24px 70px rgba(14,26,43,0.28);
  padding:16px;
}
.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 2px 12px;
  border-bottom:1px solid rgba(14,26,43,0.08);
}
.drawer-head img{height:34px;width:auto}
.drawer-close{
  border:1px solid rgba(14,26,43,0.14);
  background:rgba(247,249,252,1);
  border-radius:14px;
  height:42px;
  width:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.drawer-close:hover{border-color:rgba(14,26,43,0.22); background:#fff}
.drawer-close svg{width:18px;height:18px; fill:var(--text)}

.drawer-links{
  display:grid;
  gap:8px;
  padding:14px 2px 10px;
}
.drawer-links a{
  padding:12px 12px;
  border-radius:14px;
  color:var(--text);
  font-weight:950;
  letter-spacing:-0.01em;
  border:1px solid rgba(14,26,43,0.10);
  background:rgba(247,249,252,0.7);
}
.drawer-links a:hover{background:#fff; border-color:rgba(14,26,43,0.16)}

.drawer-links a.active{
  border-color:rgba(53,84,154,0.30);
  background:rgba(53,84,154,0.08);
}

@media (max-width: 980px){
  .nav-links{display:none}
  .nav-cta{display:none}
  .nav-toggle{display:flex}
  .brand{min-width:auto}
}

/* ─────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────── */

h1{
  font-size: clamp(34px, 4.2vw, 52px);
  line-height:1.06;
  margin:16px 0 14px;
  letter-spacing:-0.035em;
}
h2{
  font-size: clamp(26px, 2.8vw, 34px);
  line-height:1.14;
  letter-spacing:-0.02em;
}
h3{
  font-size:18px;
  letter-spacing:-0.01em;
}

.lede{font-size:18px; color:var(--muted); max-width: 62ch}
.muted{color:var(--muted)}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  color:var(--muted);
  font-weight:900;
  font-size:13px;
  box-shadow: 0 8px 22px rgba(14,26,43,0.06);
}
.kicker .dot{width:8px;height:8px;border-radius:999px;background:var(--accent)}

/* ─────────────────────────────────────────────────────────────
   Layout sections
   ───────────────────────────────────────────────────────────── */

.hero{
  padding:64px 0 30px;
  position:relative;
  overflow:hidden;
}
.hero > .container{position:relative; z-index:1;}
.hero::before{
  content:"";
  position:absolute;
  inset:-140px -140px auto auto;
  width:560px;
  height:560px;
  background:radial-gradient(closest-side, rgba(111,160,211,0.48), rgba(111,160,211,0.0));
  transform:rotate(18deg);
  filter:blur(2px);
  pointer-events:none;
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute;
  inset:auto auto -180px -180px;
  width:520px;
  height:520px;
  background:radial-gradient(closest-side, rgba(53,84,154,0.22), rgba(53,84,154,0.0));
  transform:rotate(-12deg);
  pointer-events:none;
  z-index:0;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:40px;
  align-items:center;
}
.hero-actions{
  display:flex;
  gap:10px;
  margin:22px 0 12px;
  flex-wrap:wrap;
}

.media{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow: var(--shadow-sm);
  padding:18px;
}
.media-hero{padding:18px;}

.section{padding:56px 0}
.section.tight{padding:40px 0}

.section-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.section-header p{margin:0; color:var(--muted); max-width:72ch}
.section-header h2{margin:0}

.page-hero{padding:44px 0 18px}
.page-hero h1{margin-top:10px}
.breadcrumb{color:var(--muted); font-size:13px; font-weight:900}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:22px;
  align-items:center;
}

/* ─────────────────────────────────────────────────────────────
   Cards + grids
   ───────────────────────────────────────────────────────────── */

.card-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(3, 1fr);
}

.card{
  display:block;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14,26,43,0.14);
}
.card h3{margin:10px 0 6px}
.card p{margin:0; color:var(--muted)}

.icon-wrap{
  width:40px;
  height:40px;
  border-radius:14px;
  background:rgba(53,84,154,0.10);
  border:1px solid rgba(53,84,154,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon-wrap svg{width:20px;height:20px; fill:var(--primary)}

.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(111,160,211,0.18);
  border:1px solid rgba(111,160,211,0.28);
  color:var(--primary-700);
  font-weight:950;
  font-size:12px;
}

.price{
  font-size:40px;
  letter-spacing:-0.03em;
  margin:10px 0 10px;
  font-weight:1000;
}

/* Compact module tiles */
.module-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.module{
  display:block;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.module:hover{transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(14,26,43,0.14)}
.module h3{margin:8px 0 6px; font-size:16px}
.module p{margin:0; color:var(--muted); font-size:13px; font-weight:650}

/* Lists */
.feature-list{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  color:var(--muted);
}
.feature-list li{margin:8px 0; display:flex; gap:10px}
.check{
  width:18px;
  height:18px;
  border-radius:7px;
  background:rgba(25,182,166,0.14);
  border:1px solid rgba(25,182,166,0.30);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.check svg{width:12px;height:12px; fill:#19B6A6}

/* Trust strip */
.trust-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.trust-strip span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(14,26,43,0.12);
  background:rgba(247,249,252,1);
  font-size:12px;
  font-weight:900;
  color:var(--text);
  letter-spacing:0.01em;
}

/* Compare */
.compare-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.compare-card{
  background:#fff;
  border:1px solid var(--border-strong);
  border-radius:18px;
  padding:14px;
  box-shadow: var(--shadow-sm);
}
.compare-card h3{margin:0 0 8px; font-size:15px}
.compare-card ul{margin:0; padding-left:18px; color:var(--muted); font-weight:750; font-size:13px;}

/* Diagrams */
.diagram{max-width:100%; height:auto}
.flow-diagram{
  background:rgba(53,84,154,0.08);
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
}
.flow-title{
  font-weight:950;
  color:var(--text);
  margin:0 0 12px;
  letter-spacing:-0.01em;
}
.flow-steps{
  display:flex;
  align-items:stretch;
  gap:18px;
  flex-wrap:wrap;
}
.flow-step{
  flex:1 1 180px;
  min-width:180px;
  background:#fff;
  border:1px solid var(--border-strong);
  border-radius:16px;
  padding:12px 12px 10px;
  position:relative;
  box-shadow: var(--shadow-sm);
}
.flow-step strong{display:block; font-weight:950; margin-bottom:4px}
.flow-step span{display:block; color:var(--muted); font-weight:750; font-size:12px; line-height:1.25}
.flow-step:not(:last-child)::after{
  content:"";
  position:absolute;
  right:-12px;
  top:50%;
  width:12px;
  height:12px;
  border-right:3px solid rgba(53,84,154,0.65);
  border-top:3px solid rgba(53,84,154,0.65);
  transform:translateY(-50%) rotate(45deg);
}

/* CTA */
.cta{
  background:linear-gradient(135deg, rgba(53,84,154,0.18), rgba(111,160,211,0.10));
  border:1px solid rgba(53,84,154,0.12);
  border-radius:26px;
  padding:30px;
  box-shadow: var(--shadow-md);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.cta h2{margin:0}
.cta p{margin:6px 0 0; color:var(--muted)}

.notice{
  background:rgba(25,182,166,0.10);
  border:1px solid rgba(25,182,166,0.22);
  padding:12px 14px;
  border-radius:14px;
  color:rgba(14,26,43,0.92);
}

/* Investors-specific */
.callout{
  background:linear-gradient(180deg, rgba(53,84,154,0.08), rgba(111,160,211,0.03));
  border:1px solid rgba(14,26,43,0.12);
  border-radius:22px;
  padding:18px;
  box-shadow: var(--shadow-sm);
}
.callout h3{margin:0 0 8px; font-weight:1000}
.callout p{margin:0; color:var(--muted); font-weight:750}

.arch{display:grid; grid-template-columns:1fr; gap:12px}
.arch .node{
  background:#fff;
  border:1px solid rgba(14,26,43,0.12);
  border-radius:18px;
  padding:14px;
  box-shadow: var(--shadow-sm);
}
.arch .node h4{margin:0 0 6px; font-weight:1000}
.arch .node p{margin:0; color:var(--muted); font-weight:750}
.arch .down{display:flex; justify-content:center; opacity:0.85}
.arch .down svg{width:22px; height:22px}

/* Forms */
.input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(14,26,43,0.16);
  background:#fff;
  font-weight:750;
}
.input:focus{outline:none; border-color: rgba(53,84,154,0.50); box-shadow: 0 0 0 4px rgba(53,84,154,0.12)}

textarea.input{min-height:120px; resize:vertical;}

.field-validation{color: rgba(180,35,24,0.95); font-weight:850; font-size:12px;}

/* Footer */
.footer{
  background:var(--primary-700);
  color:#fff;
  padding:44px 0;
  margin-top:30px;
}
.footer a{color:rgba(255,255,255,0.86)}
.footer a:hover{color:#fff}
.footer .muted{color:rgba(255,255,255,0.72)}
.footer-grid{
  display:grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap:18px;
}
.footer h4{margin:0 0 10px; font-size:14px; letter-spacing:-0.01em}
.footer ul{list-style:none; padding:0; margin:0; display:grid; gap:8px}

.subfooter{
  border-top:1px solid rgba(255,255,255,0.14);
  margin-top:22px;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:rgba(255,255,255,0.70);
  font-size:12px;
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */

@media (max-width: 980px){
  .hero{padding-top:48px}
  .hero-grid{grid-template-columns:1fr; gap:18px}
  .split{grid-template-columns:1fr}

  .card-grid{grid-template-columns: repeat(2, 1fr)}
  .module-grid{grid-template-columns: repeat(2, 1fr)}

  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width: 720px){
  .flow-step:not(:last-child)::after{display:none}
  .compare-grid{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .card-grid{grid-template-columns:1fr}
  .module-grid{grid-template-columns:1fr}
  .cta{flex-direction:column; align-items:flex-start}
  .footer-grid{grid-template-columns:1fr}
}

/* ─────────────────────────────────────────────────────────────
   Home (v2)
   ───────────────────────────────────────────────────────────── */
.hero.hero-v2{
  padding: 76px 0 46px;
  background:
    radial-gradient(900px 380px at 16% 8%, rgba(111,160,211,0.28), transparent 70%),
    radial-gradient(820px 360px at 84% 0%, rgba(53,84,154,0.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.70), rgba(247,249,252,0.70));
}
.hero-media{margin-top: 10px;}
.hero-note{margin: 14px 0 0;}

.shot-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.shot{
  background: rgba(255,255,255,0.92);
  border:1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow:hidden;
}
.shot-top{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, rgba(14,26,43,0.03), rgba(14,26,43,0.00));
}
.shot-dot{
  width:8px; height:8px; border-radius:99px;
  background: rgba(14,26,43,0.18);
}
.shot-label{
  margin-left:auto;
  font-size:12px;
  font-weight:900;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.shot img{width:100%; height:auto;}

.callout{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(53,84,154,0.08);
}
.callout strong{font-weight: 950;}

.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.step{
  background: rgba(255,255,255,0.92);
  border:1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.step-num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  background: rgba(53,84,154,0.12);
  color: var(--primary-700);
  margin-bottom: 10px;
}

.media-wide{
  margin-top: 18px;
}

.pill-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pill{
  display:flex;
  flex-direction:column;
  gap:4px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
}
.pill strong{font-weight: 950;}

.list-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.list-card{
  display:flex;
  flex-direction:column;
  gap:4px;
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.92);
}
.list-card strong{font-weight: 950;}

.compare-card.highlight{
  border-color: rgba(53,84,154,0.25);
  box-shadow: var(--shadow-md);
}

/* Motion (subtle, respects reduced-motion) */
@media (prefers-reduced-motion: no-preference){
  .card, .shot, .step, .pill{transform: translateY(0);}
  .card:hover, .shot:hover, .step:hover, .pill:hover{transform: translateY(-2px);}
}

@media (min-width: 860px){
  .shot-grid{grid-template-columns: 1fr;}
}

@media (max-width: 980px){
  .steps{grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 620px){
  .steps{grid-template-columns: 1fr;}
  .pill-grid{grid-template-columns: 1fr;}
  .callout{flex-direction: column;}
}

/* ─────────────────────────────────────────────────────────────
   Screenshots (frames + captions)
   ───────────────────────────────────────────────────────────── */
.shot-caption{
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
}
.shot-caption h4{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.shot-caption p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* grid variants */
.shot-grid.shot-grid-2{grid-template-columns: repeat(2, 1fr);}
.shot-grid.shot-grid-3{grid-template-columns: repeat(3, 1fr);}

@media (max-width: 980px){
  .shot-grid.shot-grid-2{grid-template-columns: 1fr;}
  .shot-grid.shot-grid-3{grid-template-columns: 1fr;}
}
