/* Glyph Harbor Hub Landing Page
 * Per Mira's design brief 2026-05-14
 * Blue Astrolabe palette family, type-led, "Quiet Harbor / Working Tools Shelf"
 */

:root {
  --canvas:    #F6F1E8;
  --paper:     #FFFDF8;
  --ink:       #252A2E;
  --blue:      #254C73;
  --blue-deep: #10264B;
  --blue-soft: #D8E3E7;
  --sand:      #E8D9BE;
  --line:      #D8CDBB;
  --sage:      #7A8B78;
  --slate:     #66717A;
  --glow:      #BDD0FF;

  --max-width: 1120px;
  --radius: 20px;
  --radius-sm: 12px;

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }

/* ── Top nav ───────────────────────────────────────────────────────── */

.topnav {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.wordmark:hover { color: var(--blue-deep); text-decoration: none; }

.anchors {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.anchors a {
  color: var(--slate);
  font-weight: 500;
}
.anchors a:hover { color: var(--blue); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 24px 80px;
  overflow: hidden;
}
.hero::before {
  /* Subtle harbor/astrolabe ring motif — CSS only, no image dependency */
  content: "";
  position: absolute;
  top: -200px;
  right: -240px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid var(--blue-soft);
  opacity: 0.5;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid var(--blue-soft);
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--blue-deep);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 56ch;
}
.hero-expand {
  font-size: 1rem;
  color: var(--slate);
  max-width: 60ch;
  margin-bottom: 32px;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--paper);
  text-decoration: none;
}
.btn-text {
  font-weight: 500;
  font-size: 15px;
  color: var(--blue);
}

/* ── What we make (three lanes) ────────────────────────────────────── */

.what-we-make {
  padding: 64px 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lanes {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.lane {
  padding: 8px 4px;
  border-top: 2px solid var(--sand);
  padding-top: 22px;
}
.lane h3 {
  font-size: 20px;
  color: var(--blue-deep);
  margin-bottom: 10px;
  font-weight: 700;
}
.lane p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Current products grid ─────────────────────────────────────────── */

.products {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.products h2 {
  font-size: 32px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.products-intro {
  color: var(--slate);
  margin-bottom: 40px;
  max-width: 60ch;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}
.product-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.product-card::before {
  /* Card corner tick — Mira's "corner ticks" motif */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-top-left-radius: var(--radius);
}
.type-label {
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 14px;
}
.product-card h4 {
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.price {
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.desc {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}
.product-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  align-self: flex-start;
}

/* ── Support surface ───────────────────────────────────────────────── */

.support {
  background: var(--blue-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 24px;
}
.support-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.support h3 {
  font-size: 22px;
  color: var(--blue-deep);
  font-weight: 700;
  margin-bottom: 14px;
}
.support p {
  color: var(--blue-deep);
  font-size: 15px;
  line-height: 1.6;
  max-width: 72ch;
}

/* ── Footer ────────────────────────────────────────────────────────── */

footer {
  background: var(--canvas);
  padding: 40px 24px 50px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 13px;
  color: var(--slate);
}
.footer-copyright,
.footer-support {
  font-size: 13px;
}
.footer-disclosure {
  font-size: 12px;
  font-style: italic;
  color: var(--sage);
  letter-spacing: 0.02em;
  margin-left: auto;
}

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

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .lanes { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .topnav-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 20px; }
  .anchors { gap: 18px; font-size: 13px; }
  .hero h1 { max-width: 100%; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .footer-disclosure { margin-left: 0; }
}
