/* ==========================================================================
   polyAether — landing page
   Aesthetic: Anthropic.com / claude.ai — warm cream, near-black ink,
   a single refined clay/coral accent, editorial serif display + clean sans.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper:      #faf9f5;   /* base cream */
  --paper-2:    #f4f1ea;   /* recessed / alt band */
  --paper-3:    #efece2;   /* card wash */
  --card:       #fffefb;   /* raised card */

  /* Ink */
  --ink:        #1a1915;   /* near-black */
  --ink-2:      #514c42;   /* secondary text */
  --ink-3:      #8a8377;   /* muted / captions */
  --hair:       #e4ded1;   /* hairline borders */
  --hair-2:     #d8d1c1;

  /* Accent — refined clay / coral (polyAether) */
  --clay:       #c65f3f;   /* primary accent */
  --clay-deep:  #a94a2e;   /* hover / pressed */
  --clay-soft:  #e8b6a4;   /* tints */
  --clay-wash:  #f6e7df;   /* faint fill */

  /* Distribution / motion palette */
  --model:      #c65f3f;   /* sharp model curve */
  --market:     #b9b09e;   /* wider, foggier market curve */
  --edge:       #d98a5c;   /* edge highlight */

  --shadow:     0 1px 2px rgba(26,25,21,.04), 0 8px 30px rgba(26,25,21,.06);
  --shadow-lg:  0 2px 6px rgba(26,25,21,.05), 0 22px 60px rgba(26,25,21,.10);

  --serif: "Newsreader", "Tiempos Text", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--clay-soft); color: var(--ink); }

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

/* ------------------------------------------------------------------ Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250,249,245,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.scrolled {
  border-bottom-color: var(--hair);
  background: rgba(250,249,245,.86);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 21px; letter-spacing: -.01em;
  color: var(--ink);
}
.wordmark b { font-weight: 600; }
.wordmark .mark {
  width: 22px; height: 22px; flex: 0 0 auto;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  padding: 8px 14px; border-radius: 9px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav .login {
  color: var(--paper); background: var(--ink);
  padding: 9px 18px;
}
.nav .login:hover { background: #000; color: var(--paper); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------- Button */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 500;
  padding: 13px 24px; border-radius: 11px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .22s var(--ease), border-color .18s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--clay); color: #fff;
  box-shadow: 0 1px 2px rgba(166,74,46,.2), 0 8px 22px rgba(198,95,63,.22);
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(166,74,46,.24), 0 14px 30px rgba(198,95,63,.3); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--hair-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--card); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }

/* --------------------------------------------------------------------- Hero */
.hero { position: relative; padding: 62px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--clay-deep);
  padding: 6px 13px 6px 11px; border-radius: 999px;
  background: var(--clay-wash); border: 1px solid #f0d8cd;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--clay);
  box-shadow: 0 0 0 0 rgba(198,95,63,.5); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198,95,63,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(198,95,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,95,63,0); }
}
h1.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 22px; color: var(--ink);
}
h1.hero-title em { font-style: italic; color: var(--clay-deep); }
.hero-sub {
  font-size: 19px; line-height: 1.55; color: var(--ink-2);
  max-width: 30em; margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 22px; font-size: 13.5px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-note .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--clay); }

/* Hero animation stage */
.stage {
  position: relative; width: 100%; aspect-ratio: 1 / 0.92;
  border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, #fffdf8 0%, var(--paper-2) 78%);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-lg);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-legend {
  position: absolute; left: 18px; bottom: 16px; z-index: 3;
  display: flex; gap: 16px; font-size: 12px; color: var(--ink-2);
}
.stage-legend .item { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .01em; }
.stage-legend .swatch { width: 16px; height: 3px; border-radius: 2px; }
.stage-cap {
  position: absolute; right: 18px; top: 16px; z-index: 3;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-3); text-transform: uppercase;
}

/* ------------------------------------------------------------------ Section */
section { position: relative; }
.band { padding: 84px 0; }
.band.alt { background: var(--paper-2); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-deep); margin: 0 0 16px;
}
h2.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(29px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.015em;
  margin: 0 0 18px; color: var(--ink); max-width: 16em;
}
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; line-height: 1.6; margin: 0; }
.lead + .lead { margin-top: 16px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.textlink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-weight: 600; color: var(--clay-deep); font-size: 16px;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.textlink:hover { border-color: var(--clay); gap: 12px; }

/* Edge visual (mini distribution) */
.edge-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow);
}
.edge-card h3 {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2); margin: 0 0 6px;
}
.edge-figures { display: flex; gap: 28px; margin-top: 20px; flex-wrap: wrap; }
.figure .n { font-family: var(--serif); font-size: 32px; color: var(--ink); line-height: 1; }
.figure .l { font-size: 13px; color: var(--ink-3); margin-top: 7px; }
.figure .n em { font-style: normal; color: var(--clay-deep); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 18px;
  padding: 30px 28px 32px; box-shadow: var(--shadow);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--hair-2); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; background: var(--clay-wash); color: var(--clay-deep);
  border: 1px solid #f0d8cd;
}
.card .ico svg { width: 23px; height: 23px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 10px; color: var(--ink); }
.card p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.58; }
.card .stat {
  margin-top: 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--ink-3); text-transform: uppercase;
}
.card .stat b { color: var(--clay-deep); font-weight: 500; }

/* Status band (honest) */
.status {
  background: var(--ink); color: var(--paper);
  border-radius: 22px; padding: 44px 48px;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.status .badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay-soft); border: 1px solid rgba(232,182,164,.3); border-radius: 999px;
  padding: 8px 15px; align-self: start;
}
.status .badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.status h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 33px);
  line-height: 1.2; margin: 0 0 12px; color: var(--paper); letter-spacing: -.01em;
}
.status p { margin: 0; color: #cbc4b5; font-size: 16px; line-height: 1.6; max-width: 46em; }
.status p b { color: var(--paper); font-weight: 500; }

/* Closing CTA */
.closing { text-align: center; padding: 96px 0 80px; }
.closing h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.08; letter-spacing: -.02em; margin: 0 auto 22px; max-width: 15em; color: var(--ink);
}
.closing .lead { margin: 0 auto 34px; text-align: center; }
.closing .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { border-top: 1px solid var(--hair); background: var(--paper-2); padding: 46px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 19px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-size: 14.5px; color: var(--ink-2); transition: color .18s var(--ease); }
.foot-links a:hover { color: var(--clay-deep); }
.disclaimer {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair);
  font-size: 13px; color: var(--ink-3); line-height: 1.7; max-width: 62em;
}
.disclaimer b { color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .stage { max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: 1fr; }
  .status { grid-template-columns: 1fr; gap: 18px; padding: 34px 30px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { gap: 2px; }
  .nav a.howitworks, .nav a.docs { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--hair-2); border-radius: 10px; background: var(--card); cursor: pointer;
  }
  .band { padding: 62px 0; }
  .hero { padding: 40px 0 20px; }
  .hero-sub { font-size: 17.5px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .closing { padding: 70px 0 60px; }
}

/* --------------------------------------------------- Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .eyebrow .dot { animation: none; }
  .btn, .card { transition: none; }
}
