/* ── aishares · light mode, light orange, Anthropic fonts ─────────── */

@font-face {
  font-family: "Anthropic Sans";
  src: url("fonts/AnthropicSans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Sans";
  src: url("fonts/AnthropicSans-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif";
  src: url("fonts/AnthropicSerif.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif";
  src: url("fonts/AnthropicSerif-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf6f0;
  --surface: #fffdf9;
  --ink: #211a14;
  --muted: #6f6459;
  --line: #ecdfd0;
  --orange: #d97757;
  --orange-deep: #c4633f;
  --orange-soft: #f9e7da;
  --orange-faint: rgba(217, 119, 87, 0.12);
  --radius: 18px;
  --serif: "Anthropic Serif", Georgia, Cambria, serif;
  --sans: "Anthropic Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
h3 { font-size: 1.35rem; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.star { color: var(--orange); }

/* ── Floating pill nav ────────────────────────────────────────────── */

.nav-pill {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: rgba(25, 19, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(33, 26, 20, 0.22);
  white-space: nowrap;
}

.brand {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: #f5efe6;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  color: rgba(245, 239, 230, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--orange-deep); }

.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 230, 0.72);
  transition: color 0.15s ease;
}

.nav-x svg { width: 17px; height: 17px; }
.nav-x:hover { color: #fff; }

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 119, 87, 0.32);
}

.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(217, 119, 87, 0.4);
}

.btn-dark {
  background: var(--ink);
  color: #f5efe6;
  box-shadow: 0 8px 24px rgba(33, 26, 20, 0.24);
}

.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(33, 26, 20, 0.3); }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Hero (prisma-style) ──────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0 clamp(20px, 4vw, 56px) clamp(24px, 4vh, 48px);
}

/* Hero video — two stacked <video>s crossfade so the loop is seamless */
.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-video.is-active { opacity: 1; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 60% at 50% 30%, transparent 40%, rgba(250, 246, 240, 0.35) 100%),
    linear-gradient(180deg, rgba(250, 246, 240, 0.15) 35%, rgba(250, 246, 240, 0.78) 80%, var(--bg) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 22% 112%, rgba(217, 119, 87, 0.5), transparent 65%),
    radial-gradient(55% 50% at 85% 100%, rgba(233, 168, 120, 0.42), transparent 68%),
    radial-gradient(60% 45% at 55% -10%, rgba(249, 231, 218, 0.9), transparent 70%),
    linear-gradient(180deg, #faf6f0 0%, #f7ecdf 55%, #f3ddc8 100%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(-6deg) saturate(1.15); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4rem, 14.5vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ink);
  animation: riseUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-side {
  max-width: 330px;
  padding-bottom: clamp(28px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  animation: fadeUp 1s ease 0.5s both;
}

.hero-side p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.82;
}

@keyframes riseUp {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll reveal ────────────────────────────────────────────────── */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-reveal="zoom"] { transform: translateY(20px) scale(0.92); }

html.js [data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }

/* ── Ticker ───────────────────────────────────────────────────────── */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}

.ticker-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }

.ticker-group { display: flex; align-items: center; }

.ticker-group span {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 18px;
}

.ticker-group i { color: var(--orange); font-style: normal; font-size: 0.8rem; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Sections & cards ─────────────────────────────────────────────── */

.section { padding: 110px 0; text-align: center; }

.section-tint {
  background: linear-gradient(180deg, var(--orange-soft), rgba(249, 231, 218, 0.25));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.card.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 87, 0.45);
  box-shadow: 0 16px 36px rgba(33, 26, 20, 0.07);
}

.card-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  background: var(--orange-faint);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

.stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  list-style: none;
  margin-top: 64px;
  flex-wrap: wrap;
}

.stats li { display: flex; flex-direction: column; gap: 2px; }

.stats strong {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--orange-deep);
}

.stats span { font-size: 0.85rem; color: var(--muted); }

.section-lede {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Logo wall ────────────────────────────────────────────────────── */

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 52px;
}

.logo-cell {
  flex: 0 0 auto;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.logo-cell svg {
  width: 42px;
  height: 42px;
  color: var(--ink);
  transition: color 0.2s ease, transform 0.2s ease;
}

.logo-cell span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.logo-cell.is-visible:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 87, 0.5);
  box-shadow: 0 16px 34px rgba(33, 26, 20, 0.08);
}

.logo-cell.is-visible:hover svg { color: var(--orange); transform: scale(1.06); }
.logo-cell.is-visible:hover span { color: var(--ink); }

/* ── Timer ────────────────────────────────────────────────────────── */

.timer-card {
  max-width: 560px;
  margin: 44px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 52px 40px;
  box-shadow: 0 24px 60px rgba(33, 26, 20, 0.08);
}

.timer-digits {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timer-digits .colon { color: var(--orange); padding: 0 6px; }

.timer-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--orange-soft);
  margin: 34px 0 20px;
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  transition: width 1s linear;
}

.timer-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 30px; }

/* ── FAQ ──────────────────────────────────────────────────────────── */

.faq-wrap { max-width: 720px; text-align: left; }
.faq-wrap .kicker, .faq-wrap h2 { text-align: center; }
.faq-wrap h2 { margin-bottom: 40px; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

details[open] { border-color: rgba(217, 119, 87, 0.45); }

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] summary::after { transform: rotate(45deg); }

details p { color: var(--muted); margin-top: 12px; font-size: 0.97rem; }

/* ── Footer ───────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.brand-footer { color: var(--ink); font-size: 1.4rem; }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--ink); }

.footer-x { display: inline-flex; align-items: center; }
.footer-x svg { width: 16px; height: 16px; }

.footer-fine { color: var(--muted); font-size: 0.8rem; max-width: 560px; }

/* ── Reduced motion ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .hero-bg,
  .wordmark, .hero-side { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-pill { gap: 16px; }

  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .wordmark { font-size: clamp(3.4rem, 15.5vw, 8rem); order: 2; }
  .hero-side { padding-bottom: 0; order: 1; margin-top: auto; }

  .cards { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .timer-card { padding: 40px 24px; }
  .stats { gap: 36px; }
}
