/* ---------------------------------------------
   Orey — Design tokens
--------------------------------------------- */
:root {
  --ink: #10121a;
  --panel: #181b27;
  --panel-2: #1f2333;
  --line: #2a2e3d;
  --text: #edeef3;
  --muted: #9aa0b4;
  --amber: #e3a34d;
  --amber-dim: #7a5a2e;
  --teal: #4fa8a0;

  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --wrap: 1120px;
  --radius: 10px;
}

/* ---------------------------------------------
   Reset
--------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
input, button { font-family: inherit; font-size: 1rem; }

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

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 .9em;
}

/* subtle grain so the flat dark ground doesn't feel like a template */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* dot-grid texture, like a faint sheet of graph paper across the whole page — stays put while you scroll */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(237,238,243,0.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16,18,26,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ear-mark { color: var(--amber); flex-shrink: 0; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-size: .92rem; transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.nav-cta { display: inline-flex; }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .75em 1.4em;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--amber);
  color: #1a1305;
}
.btn-primary:hover { transform: translateY(-1px); background: #edb15b; }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--amber); }
.btn-text {
  color: var(--muted);
  padding: .75em .2em;
}
.btn-text:hover { color: var(--amber); }

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--text);
  max-width: 12ch;
}
.hero-sub {
  font-size: 1.08rem;
  max-width: 42ch;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 1.6em; flex-wrap: wrap; }

/* floating quote fragments */
.signal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.signal-col { display: flex; flex-direction: column; gap: 10px; }
.fragment {
  font-family: var(--font-mono);
  font-size: .74rem;
  line-height: 1.5;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  opacity: 0;
  animation: drift 9s ease-in-out infinite;
}
.fragment .ts { color: var(--teal); margin-right: .6em; }
.f1 { animation-delay: 0s; }
.f2 { animation-delay: 1.4s; }
.f3 { animation-delay: 2.8s; }

@keyframes drift {
  0%   { opacity: 0; transform: translateX(-6px); }
  12%  { opacity: 1; transform: translateX(0); }
  70%  { opacity: 1; transform: translateX(0); }
  100% { opacity: .25; transform: translateX(4px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}



/* ---------------------------------------------
   Problem
--------------------------------------------- */
.problem { padding: 40px 0 100px; border-top: 1px solid var(--line); }
.problem-grid { max-width: 780px; }
.problem h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--text);
}
.problem p { font-size: 1.05rem; }

/* ---------------------------------------------
   How it works
--------------------------------------------- */
.how {
  padding: 90px 0 40px;
  background: rgba(24,27,39,.55);
  backdrop-filter: blur(2px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--text); max-width: 20ch; margin-bottom: 44px; }

.phase-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.phase {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.phase-icon { display: block; margin-bottom: 20px; }
.phase h3 { color: var(--text); font-size: 1.1rem; margin-bottom: .5em; }
.phase p { font-size: .88rem; }

.phase-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--amber);
  margin-bottom: .7em;
}

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

/* ---------------------------------------------
   Who it's for
--------------------------------------------- */
.who { padding: 90px 0; }
.who h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--text); max-width: 22ch; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { color: var(--text); font-size: 1.05rem; }
.card p { font-size: .9rem; margin: 0; }

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------------------------------------------
   Use cases
--------------------------------------------- */
.usecases {
  padding: 90px 0;
  background: rgba(24,27,39,.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.usecase { border-top: 1px solid var(--line); padding-top: 18px; }
.usecase-dot {
  display: block;
  width: 6px; height: 6px;
  background: var(--amber);
  margin-bottom: 16px;
}
.usecase h3 { color: var(--text); font-size: 1.02rem; margin-bottom: .5em; }
.usecase p { font-size: .85rem; margin: 0; }
.usecase-more {
  margin: 40px 0 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------
   CTA
--------------------------------------------- */
.cta { padding: 110px 0; }
.cta-grid { text-align: center; max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--text); }
.cta-sub { max-width: 46ch; margin: 0 auto 1.6em; }
.cta-form { display: flex; gap: 12px; margin-top: 28px; justify-content: center; flex-wrap: wrap; }
.cta-form input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .8em 1.3em;
  color: var(--text);
  min-width: 260px;
}
.cta-form input::placeholder { color: var(--muted); }
.cta-form input:focus { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; }
.logo-sm { font-size: 1.1rem; }
.footer-meta { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
