/* ============================================================
   Northsound Digital — site styles
   Dark "north sea at night" theme: deep navy, aurora teal,
   warm amber accents for CatBird.
   ============================================================ */

:root {
  --bg: #08111d;
  --bg-2: #0c1a2c;
  --panel: #101f33;
  --panel-2: #14263d;
  --line: rgba(148, 190, 214, 0.16);
  --ink: #e9f1f6;
  --muted: #9db3c4;
  --teal: #2fd6ba;
  --teal-deep: #17b3a0;
  --amber: #ffb45c;
  --radius: 18px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: #04222b; }

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

a { color: var(--teal); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }

p { margin: 0 0 1em; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #04222b;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}

.skip-link:focus { left: 0; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 29, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 34px; height: 34px; }

.wordmark {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.wordmark span { color: var(--teal); }

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  padding: 130px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 46% at 18% -5%, rgba(47, 214, 186, 0.16), transparent 70%),
    radial-gradient(46% 42% at 88% 8%, rgba(91, 140, 255, 0.13), transparent 70%),
    radial-gradient(60% 55% at 50% 115%, rgba(255, 180, 92, 0.07), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 17ch;
}

.hero .lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #04222b;
}

.btn-primary:hover { box-shadow: 0 8px 28px rgba(47, 214, 186, 0.28); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--teal); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber), #e8964a);
  color: #2b1a04;
}

.btn-amber:hover { box-shadow: 0 8px 28px rgba(255, 180, 92, 0.25); }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.store-btn:hover { border-color: var(--teal); transform: translateY(-2px); }

.store-btn small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-btn strong { font-size: 1.02rem; font-weight: 600; }

/* ---------- sections ---------- */

.section { padding: 92px 0; }

.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head .kicker {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.section-head .sub { color: var(--muted); margin-bottom: 0; }

/* ---------- product cards ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 214, 186, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.product-card--game:hover { border-color: rgba(255, 180, 92, 0.55); }

.card-art {
  height: 210px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.card-art svg { width: 230px; }

.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tag-now { background: rgba(47, 214, 186, 0.14); color: var(--teal); }

.tag-soon { background: rgba(255, 180, 92, 0.14); color: var(--amber); }

.product-card h3 { font-size: 1.4rem; font-weight: 700; }

.product-card p { color: var(--muted); flex-grow: 1; }

.card-link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.product-card--game .card-link { color: var(--amber); }

.card-link::after { content: " \2192"; }

/* ---------- values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.value h3 {
  font-size: 1.08rem;
  padding-top: 16px;
  position: relative;
}

.value h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
}

.value p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- product detail pages ---------- */

.product-hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.product-hero--tool::before {
  background:
    radial-gradient(50% 50% at 15% 0%, rgba(47, 214, 186, 0.16), transparent 70%);
}

.product-hero--game::before {
  background:
    radial-gradient(50% 50% at 85% 0%, rgba(255, 180, 92, 0.16), transparent 70%),
    radial-gradient(45% 45% at 10% 90%, rgba(47, 214, 186, 0.08), transparent 70%);
}

.product-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.product-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }

.hero-art { display: grid; place-items: center; }

.hero-art svg { width: min(340px, 80%); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.feature::before {
  content: "";
  display: block;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--teal);
  margin-bottom: 14px;
}

.feature--amber::before { background: var(--amber); }

.feature h3 { font-size: 1.04rem; }

.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(47, 214, 186, 0.22);
  -webkit-text-stroke: 1.5px var(--teal);
  margin-bottom: 12px;
}

.step h3 { font-size: 1.05rem; }

.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, rgba(47, 214, 186, 0.12), rgba(91, 140, 255, 0.10));
  border: 1px solid rgba(47, 214, 186, 0.3);
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
}

.cta-band--amber {
  background: linear-gradient(135deg, rgba(255, 180, 92, 0.12), rgba(255, 143, 121, 0.08));
  border-color: rgba(255, 180, 92, 0.35);
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.cta-band p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---------- contact ---------- */

.contact-section { text-align: center; }

.contact-section .section-head { margin-inline: auto; }

.contact-mail {
  display: inline-block;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  margin-top: 8px;
}

.contact-mail:hover { text-decoration: underline; text-underline-offset: 6px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid .brand { margin-bottom: 14px; }

.footer-grid p { color: var(--muted); font-size: 0.93rem; max-width: 40ch; }

.footer-col h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 9px; }

.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}

.error-code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--teal);
}

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

/* Content stays fully visible without JS; animations only apply when JS is active. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product-card, .store-btn { transition: none; }
}

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

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 22px; }
  .steps-grid { grid-template-columns: 1fr; }
  .product-hero .container { grid-template-columns: 1fr; text-align: center; }
  .product-hero .lede { margin-inline: auto; }
  .product-hero .cta-row, .product-hero .tag { justify-content: center; }
  .product-hero .tag { display: inline-block; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(260px, 70%); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    display: none;
  }

  .nav-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }

  .site-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 1.02rem;
  }

  .site-nav a:hover { background: var(--panel); }

  .hero { padding: 88px 0 84px; }
  .section { padding: 68px 0; }
  .cta-band { padding: 40px 24px; }
}
