/* Chaerus — Shared Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg-1: #0a0e1a;
  --bg-2: #141928;
  --bg-3: #1a2035;
  --text-1: #e8eaf0;
  --text-2: #a0a8b8;
  --text-3: #606878;
  --accent: #c0c8d8;
  --accent-dim: #8090a8;
  --border: #2a3050;
  --border-light: #1e2840;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.65;
}

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-1);
}

/* hamburger — mobile only */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: 0.2s;
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }
}

/* ── LAYOUT ──────────────────────────────────────── */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page-wrap.wide {
  max-width: 1100px;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  padding: 6rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── CARDS ───────────────────────────────────────── */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 3.5rem auto;
  max-width: 1000px;
  padding: 0 2rem;
}

@media (max-width: 720px) {
  .card-row { grid-template-columns: 1fr; padding: 0 1.5rem; }
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── PULL QUOTE ──────────────────────────────────── */
.pull-quote {
  text-align: center;
  padding: 3.5rem 2rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 0 auto;
}

.pull-quote p {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--accent);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── EDITORIAL (about, sw pages) ─────────────────── */
.editorial h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 2.5rem;
}

.editorial h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 3rem 0 0.75rem;
}

.editorial h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 2rem 0 0.5rem;
}

.editorial p {
  color: var(--text-2);
  margin-bottom: 1.1rem;
  font-size: 0.97rem;
}

.editorial p strong {
  color: var(--text-1);
  font-weight: 600;
}

.editorial hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.editorial ul,
.editorial ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}

.editorial li {
  color: var(--text-2);
  font-size: 0.97rem;
  margin-bottom: 0.4rem;
}

/* ── STAT LIST ───────────────────────────────────── */
.stat-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-list li {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  color: var(--text-2);
  font-family: "SF Mono", "Fira Code", monospace;
}

.stat-list li strong {
  color: var(--accent);
}

/* ── CAEMIRA LAYOUT ──────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}

@media (max-width: 680px) {
  .two-col { grid-template-columns: 1fr; }
}

.data-panel {
  background: var(--bg-2);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  padding: 1.5rem;
}

.data-panel h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.band-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.band-item:last-child { border-bottom: none; }

.band-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.band-dot.calm { background: #5a9fd4; }
.band-dot.moderate { background: #c8a030; }
.band-dot.elevated { background: #e05050; }

.band-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
}

.band-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* ── PRICING ─────────────────────────────────────── */
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (max-width: 580px) {
  .pricing-row { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.pricing-card .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
}

.pricing-card ul li {
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.pricing-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── SW TIERS ────────────────────────────────────── */
.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.tier-1 { background: #0a2a1a; color: #40d080; border: 1px solid #1a6a3a; }
.tier-2 { background: #1a2a3a; color: #4090d0; border: 1px solid #2a5a8a; }
.tier-3 { background: #2a2a1a; color: #b0a030; border: 1px solid #6a6020; }

/* ── REF TABLE ───────────────────────────────────── */
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.ref-table th {
  background: var(--bg-3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ref-table td {
  padding: 0.45rem 0.75rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.ref-table tr:last-child td { border-bottom: none; }
.ref-table td:first-child { color: var(--text-1); font-weight: 500; white-space: nowrap; }

/* ── EMBED PLACEHOLDER ───────────────────────────── */
.embed-zone {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.embed-zone iframe {
  width: 100%;
  min-height: 900px;
  border: none;
  border-radius: 8px;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.8;
}

footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

/* ── DISCLAIMER ──────────────────────────────────── */
.disclaimer {
  font-size: 0.78rem;
  color: var(--text-3);
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 2rem;
  line-height: 1.6;
}

/* ── CAEMIRA LOADER ──────────────────────────────── */
.caemira-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(62, 207, 207, 0.12), transparent 32%),
    radial-gradient(circle at 50% 58%, rgba(201, 168, 76, 0.08), transparent 28%),
    #0a0e1a;
  color: #e8eaf0;
  opacity: 1;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.caemira-loader.is-exit { opacity: 0; visibility: hidden; }
.caemira-loader__inner { width: min(92vw, 620px); text-align: center; }
.caemira-loader__stage { display: grid; place-items: center; min-height: 390px; }
.caemira-loader__sigil-shell {
  position: relative;
  width: min(78vw, 390px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 28px rgba(62, 207, 207, 0.18));
}
.caemira-loader__sigil-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.caemira-loader__sigil-svg circle,
.caemira-loader__sigil-svg ellipse,
.caemira-loader__sigil-svg polygon,
.caemira-loader__sigil-svg line,
.caemira-loader__sigil-svg path {
  fill: none;
  stroke: #3ecfcf;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.caemira-loader.is-opening .caemira-loader__sigil-svg circle,
.caemira-loader.is-opening .caemira-loader__sigil-svg ellipse,
.caemira-loader.is-opening .caemira-loader__sigil-svg polygon,
.caemira-loader.is-opening .caemira-loader__sigil-svg line,
.caemira-loader.is-opening .caemira-loader__sigil-svg path {
  animation: chaerus-loader-draw 2.1s ease forwards;
}
.caemira-loader__sigil-aura circle { stroke: #c9a84c; stroke-width: 1.1; }
.caemira-loader__sigil-ribbons ellipse { stroke: rgba(62, 207, 207, 0.72); }
.caemira-loader__sigil-frame polygon { stroke: rgba(201, 168, 76, 0.7); }
.caemira-loader__sigil-lines line { stroke: rgba(62, 207, 207, 0.42); stroke-width: 1; }
.caemira-loader__sigil-petals path { stroke: #e8eaf0; stroke-width: 1.4; }
.caemira-loader__origami {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  animation: chaerus-loader-orbit 14s linear infinite;
}
.caemira-loader__fold {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 42%;
  transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(62,207,207,.52), transparent);
  opacity: .42;
}
.caemira-loader__fold--n { transform: rotate(0deg); }
.caemira-loader__fold--ne { transform: rotate(45deg); }
.caemira-loader__fold--e { transform: rotate(90deg); }
.caemira-loader__fold--se { transform: rotate(135deg); }
.caemira-loader__fold--s { transform: rotate(180deg); }
.caemira-loader__fold--sw { transform: rotate(225deg); }
.caemira-loader__fold--w { transform: rotate(270deg); }
.caemira-loader__fold--nw { transform: rotate(315deg); }
.caemira-loader__core {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c9a84c;
  box-shadow: 0 0 26px rgba(201,168,76,.7), 0 0 54px rgba(62,207,207,.25);
  animation: chaerus-loader-pulse 1.8s ease-in-out infinite;
}
.caemira-loader__wordmark-wrap {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  overflow: hidden;
}
.caemira-loader__wordmark {
  color: #e8eaf0;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: .42em;
  text-indent: .42em;
  font-weight: 700;
  opacity: 0;
  transform: translateY(16px);
}
.caemira-loader.is-opening .caemira-loader__wordmark {
  animation: chaerus-loader-wordmark 1.1s ease .72s forwards;
}
.caemira-loader.is-wordmark-flight .caemira-loader__wordmark {
  animation: chaerus-loader-flight 1.1s ease forwards;
}
.caemira-loader__copy { margin-top: 1rem; opacity: 0; animation: chaerus-loader-copy 1s ease 1.05s forwards; }
.caemira-loader__tag { margin: 0; color: #3ecfcf; text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; }
@keyframes chaerus-loader-draw { to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes chaerus-loader-orbit { to { transform: rotate(360deg); } }
@keyframes chaerus-loader-pulse { 0%,100% { transform: scale(.92); opacity: .82; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes chaerus-loader-wordmark { to { opacity: 1; transform: translateY(0); } }
@keyframes chaerus-loader-flight { to { opacity: .92; transform: translateY(-10px) scale(.96); letter-spacing: .48em; } }
@keyframes chaerus-loader-copy { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .caemira-loader *, .caemira-loader *::before, .caemira-loader *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
