/* ============================================================
   Moe AI LLC — styles
   Aesthetic: refined "AI research-lab" dark.
   Carbon canvas · editorial serif · mono labels · coral accent.
   ============================================================ */

:root {
  --bg:        #f4f2ec;   /* warm paper */
  --bg-soft:   #fbfaf7;
  --panel:     #ffffff;
  --line:      rgba(26, 24, 19, 0.13);
  --line-soft: rgba(26, 24, 19, 0.075);

  --ink:       #1a1813;   /* primary text */
  --ink-dim:   #57544c;   /* secondary    */
  --ink-faint: #8d897e;   /* tertiary / mono labels */

  --coral:     #e9543b;   /* the one accent */
  --coral-soft: #ff6b5e;
  --cyan:      #11998a;   /* network nodes only */

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans:  "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ambient color wash */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(70% 50% at 80% -5%, rgba(233, 84, 59, 0.09), transparent 60%),
    radial-gradient(60% 45% at 0% 105%, rgba(17, 153, 138, 0.055), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* film grain */
.grain {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ───────── shared type helpers ───────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 0.7em;
  margin-bottom: 1.6rem;
}
.eyebrow span {
  color: var(--coral);
  border: 1px solid var(--line);
  padding: 0.15em 0.55em;
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.4em 0.5em 0.4em 0.9em;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.kicker__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 107, 94, 0.6);
  animation: pulse 2.4s infinite var(--ease);
  flex-shrink: 0;
}
.kicker__live { color: var(--ink-dim); font-weight: 500; }
.kicker__sep { width: 1px; height: 0.95em; background: var(--line); }
.kicker__tag {
  color: var(--coral);
  background: rgba(233, 84, 59, 0.09);
  border-radius: 100px;
  padding: 0.4em 0.85em;
  letter-spacing: 0.14em;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,94,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255,107,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,94,0); }
}

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.78em 1.5em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer; white-space: nowrap;
}
.btn--lg { padding: 0.95em 1.9em; font-size: 1rem; }
.btn--solid { background: var(--coral); color: #fff; }
.btn--solid:hover { background: #d8492f; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

.link-quiet { color: var(--ink-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.25s; }
.link-quiet:hover { color: var(--ink); }

/* ───────── NAV ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.6rem);
  background: rgba(244, 242, 236, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--coral-soft), var(--coral) 55%, #b8392e);
  box-shadow: 0 0 18px rgba(255, 107, 94, 0.55), inset 0 0 0 4px rgba(10,10,12,0.0);
  position: relative;
}
.nav__mark::after {
  content: ""; position: absolute; inset: -6px;
  border: 1px solid rgba(255,107,94,0.4); border-radius: 50%;
}
.nav__name {
  font-family: var(--font-serif); font-size: 1.5rem; line-height: 1;
  letter-spacing: 0.01em;
}
.nav__name-ai { color: var(--coral); }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-dim);
  position: relative; transition: color 0.25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--coral); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 1.2rem; }
.nav__menu {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.nav__menu:hover { border-color: var(--coral); color: var(--coral); }

/* ───────── HERO ───────── */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 9rem clamp(1.2rem, 4vw, 2.6rem) 4rem;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 45%, transparent, var(--bg) 88%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 1.7rem 0 1.6rem;
}
.hero__title span { display: block; }
.hero__title em { color: var(--coral); }

.hero__lede {
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-dim); line-height: 1.6;
}

.hero__actions { display: flex; gap: 1rem; margin: 2.4rem 0 3.6rem; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden;
  max-width: 760px;
}
.stats__item { background: var(--bg-soft); padding: 1.3rem 1.4rem; }
.stats__item dt {
  font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1; color: var(--ink);
}
.stats__item dd {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 0.6rem;
}

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero__scroll-line { width: 1px; height: 38px; background: linear-gradient(var(--coral), transparent); }

/* ───────── generic sections ───────── */
.section {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 4vw, 2.6rem);
}
.section__head { max-width: 720px; margin-bottom: 3.6rem; }
.section__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04;
  letter-spacing: -0.01em;
}
.section__title em { color: var(--coral); }
.section__sub { margin-top: 1.3rem; color: var(--ink-dim); font-size: 1.08rem; max-width: 56ch; }

/* ───────── service cards ───────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1.8rem 1.7rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,24,19,0.04);
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140% 90% at 100% 0%, rgba(233,84,59,0.09), transparent 55%);
  opacity: 0; transition: opacity 0.45s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(233,84,59,0.45); box-shadow: 0 18px 40px rgba(26,24,19,0.1); }
.card:hover::before { opacity: 1; }
.card__icon {
  font-size: 1.5rem; color: var(--coral);
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1.6rem;
}
.card h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.7rem; }
.card p { color: var(--ink-dim); font-size: 0.98rem; }
.card__tag {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em;
  color: var(--ink-faint);
}

/* ───────── network band ───────── */
.band {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.band__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1; margin: 1.4rem 0;
}
.band__title em { color: var(--coral); }
.band__sub { color: var(--ink-dim); max-width: 50ch; margin-bottom: 2rem; font-size: 1.05rem; }

.band__viz { display: grid; place-items: center; min-height: 320px; }
.orbit { position: relative; width: 300px; height: 300px; }
.orbit__core {
  position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 30px 6px rgba(255,107,94,0.55);
}
.orbit__ring {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid var(--line);
}
.orbit__ring--1 { width: 110px; height: 110px; animation: spin 14s linear infinite; }
.orbit__ring--2 { width: 200px; height: 200px; border-color: var(--line-soft); animation: spin 26s linear infinite reverse; }
.orbit__ring--3 { width: 290px; height: 290px; border-style: dashed; border-color: rgba(26,24,19,0.1); animation: spin 40s linear infinite; }
.orbit__node {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px rgba(111,224,210,0.7);
}
.orbit__node--a { top: 10px; left: 50%; }
.orbit__node--b { bottom: 30px; left: 12%; background: var(--coral); box-shadow: 0 0 12px rgba(255,107,94,0.7); }
.orbit__node--c { top: 45%; right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── feature grid ───────── */
.section--infra { border: none; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.feature { background: var(--bg-soft); padding: 2.4rem 2.2rem; transition: background 0.35s; }
.feature:hover { background: var(--panel); }
.feature__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--coral); letter-spacing: 0.1em; }
.feature h3 { font-size: 1.4rem; font-weight: 600; margin: 1rem 0 0.7rem; letter-spacing: -0.01em; }
.feature p { color: var(--ink-dim); font-size: 1rem; max-width: 46ch; }

/* ───────── presence / pops ───────── */
.pops {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: 16px; overflow: hidden;
}
.pops li {
  background: var(--bg-soft); padding: 1.8rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  transition: background 0.35s, transform 0.35s var(--ease);
}
.pops li:hover { background: var(--panel); }
.pops__code { font-family: var(--font-mono); color: var(--coral); font-size: 0.78rem; letter-spacing: 0.15em; }
.pops__name { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1; }
.pops__meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ───────── CTA ───────── */
.cta { position: relative; z-index: 2; padding: clamp(5rem, 12vw, 9rem) clamp(1.2rem, 4vw, 2.6rem); text-align: center; }
.cta__inner {
  max-width: 820px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(3rem, 7vw, 5rem) 2rem;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(255,107,94,0.12), transparent 60%),
    var(--bg-soft);
  position: relative; overflow: hidden;
}
.cta__inner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 120%, rgba(111,224,210,0.07), transparent 60%);
}
.cta__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; margin: 1rem 0 1.3rem; position: relative; }
.cta__sub { color: var(--ink-dim); max-width: 50ch; margin: 0 auto 2.4rem; font-size: 1.08rem; position: relative; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ───────── FOOTER ───────── */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.6rem) 2rem;
  max-width: var(--maxw); margin: 0 auto;
}
.footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; padding-bottom: 3rem; }
.footer__tag { color: var(--ink-dim); margin: 1.2rem 0; max-width: 30ch; }
.footer__addr { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.8; color: var(--ink-faint); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer__col h4 {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; font-weight: 500;
}
.footer__col a { display: block; color: var(--ink-dim); font-size: 0.92rem; padding: 0.32rem 0; transition: color 0.25s; }
.footer__col a:hover { color: var(--coral); }

.footer__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.8rem; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); flex-wrap: wrap; gap: 1rem;
}
.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal a:hover { color: var(--coral); }

/* ───────── reveal animation ───────── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.7s var(--ease) var(--d, 0s);
}

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .nav__menu { display: inline-flex; }
  .nav__cta { margin-left: auto; gap: 0.7rem; }
  .nav__cta .link-quiet { display: none; }
  /* compact CTA so it sits proportionally next to the menu button */
  .nav__cta .btn--solid { padding: 0.58em 1.05em; font-size: 0.82rem; }

  /* hamburger turns the section links into a dropdown panel */
  .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 0.4rem clamp(1.2rem, 4vw, 2.6rem) 0.9rem;
    background: rgba(244, 242, 236, 0.97);
    backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid var(--line);
    max-height: 0; opacity: 0; overflow: hidden;
    pointer-events: none; transform: translateY(-6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), max-height 0.35s var(--ease);
  }
  .nav.is-open .nav__links {
    max-height: 80vh; opacity: 1; pointer-events: auto; transform: none;
  }
  .nav__links a {
    padding: 0.9rem 0.1rem; font-size: 1rem; color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links a::after { display: none; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
  .band__viz { order: -1; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cards, .feature-grid, .pops { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 7rem clamp(1.1rem, 5vw, 2.6rem) 3.5rem; }
  .feature { padding: 2rem 1.6rem; }
  .pops li { padding: 1.5rem 1.5rem; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  /* on the smallest screens the CTA lives in the menu + page body, keep the bar clean */
  .nav__cta .btn--solid { display: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }
  .cta__inner { padding: 2.4rem 1.3rem; border-radius: 18px; }
  .stats { grid-template-columns: 1fr; }
  .orbit { transform: scale(0.82); }
  .band__viz { min-height: 260px; }
  .kicker { font-size: 0.66rem; letter-spacing: 0.12em; gap: 0.55em; }
  .kicker__tag { padding: 0.4em 0.65em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
