/* North Harbor LP — "Coastal Ledger / Night Harbor" design system
   Dark navy theme from logo v1 · Fraunces display + IBM Plex body/mono */

:root {
  --sea: #16222f;        /* page bg */
  --sea-deep: #101a25;   /* darker band */
  --navy: #203040;       /* panels */
  --navy-2: #263a4e;
  --blue: #4f7ea6;
  --blue-soft: #8aa5ba;
  --foam: #eff0e6;       /* primary text (logo cream) */
  --foam-dim: rgba(239, 240, 230, 0.72);
  --gold: #d8c9a3;       /* subtle money accent */
  --line: rgba(239, 240, 230, 0.16);
  --line-soft: rgba(239, 240, 230, 0.08);
  --serif: "Fraunces", "Noto Serif SC", serif;
  --sans: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--foam);
  background: var(--sea);
  background-image: radial-gradient(rgba(239,240,230,0.028) 1px, transparent 1px);
  background-size: 24px 24px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--blue); color: var(--foam); }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(22, 34, 47, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foam); }
.brand img { width: 48px; height: 48px; }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.brand .name small { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-soft); }

nav.main { margin-left: auto; display: flex; align-items: center; gap: 26px; }
nav.main a { text-decoration: none; color: var(--foam-dim); font-size: 0.92rem; }
nav.main a:hover { color: var(--foam); }
nav.main a.active { color: var(--foam); border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
a.lang-switch {
  font-family: var(--mono); font-size: 0.8rem; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; color: var(--foam) !important;
}
a.lang-switch:hover { background: var(--foam); color: var(--sea) !important; }

#nav-toggle { display: none; }
label.nav-btn { display: none; margin-left: auto; cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--foam); }

/* ---------- hero ---------- */
.hero { padding: 92px 0 110px; position: relative; overflow: hidden; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; position: relative; z-index: 3; }
.hero .kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 20px; }
.hero h1 {
  font-family: var(--serif); font-weight: 540; font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--blue-soft); }
.hero .lede { font-size: 1.1rem; max-width: 34em; color: var(--foam-dim); margin-bottom: 34px; }

/* lighthouse plate: pulsing glow + sweeping beam behind the logo */
.hero .logo-plate { position: relative; text-align: center; }
.hero .logo-plate img { width: min(100%, 330px); position: relative; z-index: 2; animation: rise 0.9s ease both 0.15s; }
.hero .logo-plate::before {
  content: ""; position: absolute; inset: -12%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,201,163,0.16) 0%, rgba(79,126,166,0.10) 40%, transparent 68%);
  animation: glow 5s ease-in-out infinite;
}
.hero .logo-plate::after {
  /* 光源定在灯塔灯室处,不是 logo 几何中心 */
  content: ""; position: absolute; left: 44%; top: 31%; width: 680px; height: 680px; z-index: 0;
  margin: -340px 0 0 -340px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(216,201,163,0.03) 8deg, rgba(216,201,163,0.08) 14deg,
    rgba(232,220,190,0.12) 18deg, rgba(216,201,163,0.08) 22deg,
    rgba(216,201,163,0.03) 28deg, transparent 36deg, transparent 360deg);
  /* 光束随距离渐隐,远端融进夜色,不留硬边 */
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 14%, rgba(0,0,0,0.6) 38%, rgba(0,0,0,0.2) 58%, transparent 74%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 14%, rgba(0,0,0,0.6) 38%, rgba(0,0,0,0.2) 58%, transparent 74%);
  filter: blur(5px);
  will-change: transform;
  animation: beam 9s linear infinite, beam-breathe 9s ease-in-out infinite;
}
@keyframes beam-breathe { 0%, 100% { opacity: 0.8; } 30% { opacity: 1; } 60% { opacity: 0.85; } }
@keyframes glow { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes beam { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .kicker, .hero h1, .hero .lede, .hero .cta-row { animation: rise 0.7s ease both; }
.hero h1 { animation-delay: 0.08s; } .hero .lede { animation-delay: 0.16s; } .hero .cta-row { animation-delay: 0.24s; }

/* animated waves along hero bottom */
.sea-waves { position: absolute; left: 0; right: 0; bottom: -6px; z-index: 1; pointer-events: none; }
.sea-waves svg { display: block; width: 100%; height: 110px; }
.sea-waves .w { animation: drift 14s linear infinite; }
.sea-waves .w2 { animation-duration: 22s; animation-direction: reverse; opacity: 0.5; }
.sea-waves .w3 { animation-duration: 30s; opacity: 0.3; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-720px); } }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-size: 0.95rem; padding: 13px 26px; border-radius: 3px; transition: all 0.18s ease; }
.btn.primary { background: var(--foam); color: var(--sea); border: 1px solid var(--foam); font-weight: 500; }
.btn.primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.btn.ghost { border: 1px solid var(--line); color: var(--foam); }
.btn.ghost:hover { border-color: var(--blue-soft); color: #fff; }

/* ---------- sections ---------- */
section.band { padding: 76px 0; border-top: 1px solid var(--line-soft); position: relative; }
section.band.deep { background: var(--sea-deep); }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 40px; }
.section-head .no { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.section-head h2 { font-family: var(--serif); font-weight: 540; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }

/* ledger list — services */
.ledger { border-top: 1px solid var(--line); }
.ledger .row {
  display: grid; grid-template-columns: 90px 1fr 1.4fr auto; gap: 24px; align-items: center;
  padding: 30px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--foam);
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.ledger .row:hover { background: rgba(79,126,166,0.10); padding-left: 14px; }
.ledger .idx { font-family: var(--mono); color: var(--gold); font-size: 0.85rem; }
.ledger h3 { font-family: var(--serif); font-weight: 540; font-size: 1.35rem; }
.ledger p { font-size: 0.95rem; color: var(--foam-dim); }
.ledger .go { font-family: var(--mono); font-size: 1.1rem; color: var(--blue-soft); }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trust > div { background: var(--navy); padding: 28px 26px; }
.trust .big { font-family: var(--serif); font-size: 1.5rem; font-weight: 540; color: var(--foam); margin-bottom: 6px; }
.trust p { font-size: 0.9rem; color: var(--foam-dim); }

/* growth chart — animated bars */
.chart-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chart-panel .copy p { color: var(--foam-dim); margin-bottom: 16px; max-width: 30em; }
.chart-panel .copy .big-line { font-family: var(--serif); font-size: 1.4rem; color: var(--foam); margin-bottom: 18px; font-weight: 540; }
.growth-chart { width: 100%; height: auto; }
.growth-chart .bar { fill: var(--blue); transform-origin: bottom; transform: scaleY(0); }
.growth-chart .bar.g { fill: var(--gold); }
.growth-chart .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.growth-chart .trend { stroke: var(--foam); stroke-width: 2; fill: none; stroke-dasharray: 620; stroke-dashoffset: 620; }
.growth-chart .trend-dot { fill: var(--gold); opacity: 0; }
.in .growth-chart .bar { animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.in .growth-chart .bar:nth-child(1) { animation-delay: 0.05s; } .in .growth-chart .bar:nth-child(2) { animation-delay: 0.15s; }
.in .growth-chart .bar:nth-child(3) { animation-delay: 0.25s; } .in .growth-chart .bar:nth-child(4) { animation-delay: 0.35s; }
.in .growth-chart .bar:nth-child(5) { animation-delay: 0.45s; } .in .growth-chart .bar:nth-child(6) { animation-delay: 0.55s; }
.in .growth-chart .bar:nth-child(7) { animation-delay: 0.65s; }
.in .growth-chart .trend { animation: draw 1.6s ease 0.7s forwards; }
.in .growth-chart .trend-dot { animation: pop 0.4s ease 2.2s forwards; }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; r: 0; } to { opacity: 1; } }

/* pricing approach */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.pricing-grid .p-cell { border: 1px solid var(--line); background: var(--navy); padding: 26px 24px; position: relative; }
.pricing-grid .p-cell::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.pricing-grid .p-cell:nth-child(2)::before { background: var(--gold); }
.pricing-grid h3 { font-family: var(--serif); font-weight: 540; font-size: 1.2rem; margin-bottom: 10px; }
.pricing-grid p { font-size: 0.92rem; color: var(--foam-dim); }
.pricing-note { margin-top: 26px; font-size: 0.95rem; color: var(--foam-dim); max-width: 46em; }
.pricing-note strong { color: var(--gold); font-weight: 500; }

/* prose blocks (service pages) */
.prose { max-width: 46em; }
.prose h2 { font-family: var(--serif); font-weight: 540; font-size: 1.6rem; margin: 44px 0 16px; }
.prose p { margin-bottom: 18px; color: var(--foam-dim); }
.prose strong { color: var(--foam); font-weight: 500; }
.prose ul { margin: 0 0 18px 1.2em; }
.prose li { margin-bottom: 8px; color: var(--foam-dim); }
.answer-first {
  font-size: 1.15rem; line-height: 1.6; border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px; margin: 30px 0 40px; max-width: 40em; color: var(--foam);
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 540; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; max-width: 44em; color: var(--foam-dim); }

/* page hero (inner pages) */
.page-hero { padding: 64px 0 12px; }
.page-hero .kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 14px; }
.page-hero h1 { font-family: var(--serif); font-weight: 540; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.012em; }

/* contact block — cream inversion for contrast */
.harbor { background: var(--foam); color: var(--sea); padding: 76px 0; position: relative; overflow: hidden; }
.harbor h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.harbor p { max-width: 38em; color: rgba(22,34,47,0.8); margin-bottom: 28px; }
.harbor .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.harbor .cell { border-top: 1px solid rgba(22,34,47,0.25); padding-top: 16px; }
.harbor .cell .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #4f7ea6; margin-bottom: 8px; }
.harbor a { color: var(--sea); }
.harbor .btn.light { background: var(--sea); color: var(--foam); border: none; }
.harbor .btn.light:hover { background: var(--navy); transform: translateY(-1px); }

footer.site { background: var(--sea-deep); color: rgba(239,240,230,0.6); padding: 36px 0; font-size: 0.85rem; border-top: 1px solid var(--line-soft); }
footer.site .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
footer.site img { width: 42px; }
footer.site .motto { font-family: var(--serif); font-style: italic; color: var(--blue-soft); }
footer.site .fine { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .growth-chart .bar { transform: scaleY(1); }
  .growth-chart .trend { stroke-dashoffset: 0; }
  .growth-chart .trend-dot { opacity: 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 44px 0 90px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .logo-plate { order: -1; }
  .hero .logo-plate img { width: 190px; }
  .hero .logo-plate::after { width: 360px; height: 360px; margin: -180px 0 0 -180px; filter: none; }
  .ledger .row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "idx idx" "title go" "desc desc";
    gap: 6px 16px; padding: 24px 4px;
  }
  .ledger .idx { grid-area: idx; }
  .ledger h3 { grid-area: title; }
  .ledger .go { grid-area: go; align-self: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
  .ledger p { grid-area: desc; margin-top: 4px; }
  .trust, .pricing-grid { grid-template-columns: 1fr; }
  .chart-panel { grid-template-columns: 1fr; }

  label.nav-btn { display: block; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sea-deep); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 18px;
  }
  nav.main a { padding: 12px 0; font-size: 1.05rem; width: 100%; border-bottom: 1px solid var(--line-soft); color: var(--foam); }
  nav.main a.active { border-bottom: 1px solid var(--line-soft); }
  a.lang-switch { margin-top: 14px; width: auto !important; border-bottom: 1px solid var(--line) !important; }
  #nav-toggle:checked ~ nav.main { display: flex; }
}
