/* Kathras | Aegean clarity
   Deep sea navy, sea glass aqua, pearl white, one restrained gold accent.
   No external fonts or assets: system stacks only. */

:root {
  --ink: #062a33;
  --ink-deep: #041c24;
  --ink-card: #0a3542;
  --aqua: #62d6c3;
  --aqua-soft: #9fd8cd;
  --pearl: #f5f1e8;
  --pearl-dim: rgba(245, 241, 232, 0.8);
  --pearl-faint: rgba(245, 241, 232, 0.62);
  --gold: #d9b45b;
  --paper: #fffdf8;
  --card-border: #e2dac8;
  --ink-muted: #33545e;
  --teal-dark: #0c5546;
  --serif: "Cormorant Garamond", "Playfair Display", Didot, "Bodoni MT",
    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(2rem, 4vw, 2.9rem); }

p { margin: 0 0 1em; }

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

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

.hero :focus-visible,
.sale :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 20;
  background: var(--aqua);
  color: var(--ink);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--ink); }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.wrap-narrow { max-width: 46rem; }

.section { padding: 5.5rem 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 1rem;
}
.eyebrow-dark { color: var(--aqua); }

.section-lede {
  max-width: 46rem;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--aqua);
  color: var(--ink);
  border-color: var(--aqua);
}
.btn-primary:hover { background: var(--aqua-soft); border-color: var(--aqua-soft); }
.btn-ghost {
  background: transparent;
  color: var(--pearl);
  border-color: rgba(245, 241, 232, 0.55);
}
.btn-ghost:hover { border-color: var(--pearl); color: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--pearl);
  overflow: hidden;
}

.site-header {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--pearl);
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.14em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--pearl-dim);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.site-nav a:hover { color: var(--aqua); }
.site-nav a.nav-cta {
  color: var(--aqua);
  border: 1px solid var(--aqua);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.site-nav a.nav-cta:hover { background: rgba(98, 214, 195, 0.12); color: var(--aqua); }

.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.wordmark {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 13vw, 10rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  color: var(--pearl);
}
.tagline {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--aqua);
  margin: 1.2rem 0 2.2rem;
}
.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.55rem);
  max-width: 26ch;
  margin-left: auto;
  margin-right: auto;
}
.subhead {
  max-width: 45rem;
  margin: 0 auto 2.4rem;
  font-size: 1.16rem;
  color: var(--pearl-dim);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  margin: 3rem auto 0;
  max-width: 920px;
}
.hero-visual svg { display: block; width: 100%; height: auto; }
.stream { fill: none; stroke-width: 3; stroke-linecap: round; }
.stream-a { stroke: var(--aqua); }
.stream-b { stroke: var(--pearl); opacity: 0.72; }
.stream-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: var(--aqua-soft);
}
.core-ring { fill: none; stroke: var(--aqua); }
.core-ring-outer { stroke-width: 1.4; opacity: 0.55; stroke-dasharray: 4 10; }
.core-ring-inner { stroke-width: 1.6; opacity: 0.9; }
.core-dot { fill: var(--pearl); }
.core-satellite { fill: var(--gold); }
.core-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  fill: var(--pearl-faint);
}

.name-note {
  margin: 1.6rem 0 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--pearl-faint);
}
.name-note em { color: var(--aqua-soft); font-style: italic; }

.wave-strip {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 2.2rem;
}
.wave-strip path {
  fill: none;
  stroke: var(--aqua);
  stroke-width: 1.6;
  opacity: 0.35;
}
.wave-strip path.wave-faint { opacity: 0.16; }

/* ---------- Proof strip ---------- */
.proof { background: var(--pearl); }
.proof-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.2rem;
}
.proof-card {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--aqua);
  border-radius: 14px;
  padding: 1.6rem;
}
.proof-card h3 { font-size: 1.5rem; }
.proof-card p { color: var(--ink-muted); margin: 0; }

/* ---------- Features ---------- */
.engine { background: var(--paper); }
.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.4rem;
}
.feature-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.6rem;
}
.feature-card h3 { font-size: 1.45rem; margin-bottom: 0.45em; }
.feature-card p { color: var(--ink-muted); margin: 0; }
.status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid;
  margin: 0 0 0.9rem;
}
.feature-card p.status { color: inherit; }
.status-live { background: #d9f0e9; color: #08473a; border-color: #a9d8cb; }
.status-library { background: #f2ecd8; color: #66520c; border-color: #ddd0a0; }

/* ---------- How it works ---------- */
.how { background: var(--pearl); }
.flow {
  list-style: none;
  margin: 2.6rem 0 3rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.flow-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
}
.flow-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--pearl);
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.flow-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.flow-desc { color: var(--ink-muted); font-size: 0.99rem; }

.guardrail-grid {
  display: grid;
  gap: 1.25rem;
}
.guardrail-card {
  border-left: 3px solid var(--gold);
  background: var(--paper);
  border-radius: 0 14px 14px 0;
  padding: 1.4rem 1.6rem;
}
.guardrail-card h3 { font-size: 1.35rem; }
.guardrail-card p { color: var(--ink-muted); margin: 0; }

/* ---------- For sale ---------- */
.sale { background: var(--ink); color: var(--pearl); }
.sale h2 { max-width: 24ch; }
.sale .section-lede { color: var(--pearl-dim); }
.route-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.4rem;
}
.route-card {
  background: var(--ink-card);
  border: 1px solid rgba(98, 214, 195, 0.28);
  border-radius: 14px;
  padding: 1.7rem;
}
.route-card h3 { color: var(--aqua); font-size: 1.55rem; }
.route-card p { color: var(--pearl-dim); margin: 0; }
.sale-cta-line { margin-top: 2.2rem; font-size: 1.1rem; }
.sale-cta-line a { color: var(--aqua); text-underline-offset: 4px; }

/* ---------- Inquiry ---------- */
.inquire { background: var(--paper); }
#inquiry-form { margin-top: 2.2rem; }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid #aebdb9;
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-dark);
  outline: 3px solid rgba(12, 85, 70, 0.25);
  outline-offset: 1px;
}
.inquire .btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--pearl);
}
.inquire .btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.form-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ---------- FAQ ---------- */
.faq { background: var(--pearl); }
.faq-item { border-top: 1px solid #d8cfb6; }
.faq-item:last-of-type { border-bottom: 1px solid #d8cfb6; }
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1.15rem 0.2rem;
  cursor: pointer;
}
.faq-item summary::marker { color: var(--teal-dark); }
.faq-item p {
  color: var(--ink-muted);
  max-width: 42rem;
  padding: 0 0.2rem 1.3rem;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--pearl);
  padding: 3.2rem 0 2.6rem;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.footer-link-line a {
  color: var(--aqua);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.footer-link-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.small-print {
  color: var(--pearl-faint);
  font-size: 0.86rem;
  margin-bottom: 0.3rem;
}

/* ---------- Wider layouts ---------- */
@media (min-width: 640px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .guardrail-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow-step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 2.1rem;
    right: -1.05rem;
    font-size: 1.35rem;
    color: var(--teal-dark);
    z-index: 1;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .site-header { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; gap: 1rem; }
  .stream-label-out { display: none; }
  .hero-inner { padding-top: 2.4rem; }
}

/* ---------- Motion: subtle, and only when welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .core-halo {
    animation: core-breathe 7s ease-in-out infinite alternate;
  }
  .core-ring-outer {
    transform-box: fill-box;
    transform-origin: center;
    animation: ring-turn 70s linear infinite;
  }
  @keyframes core-breathe {
    from { opacity: 0.75; }
    to { opacity: 1; }
  }
  @keyframes ring-turn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
}

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