/* MUGEN — Immersive landing page styles. Tokens come from styles.css */

html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--neutral-950);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .18s cubic-bezier(.2,0,0,1); }
a:hover { color: var(--accent); }
::selection { background: var(--lime-400); color: var(--neutral-900); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--purple-400) 35%, transparent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent);
  backdrop-filter: blur(2px);
}
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; color: var(--neutral-300); }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  padding: 12px 22px; border-radius: var(--radius-md, 10px);
  border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
  transition: transform .12s cubic-bezier(.2,0,0,1), background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-lime, .nav-links a.btn-lime { background: var(--lime-400); color: var(--neutral-900); }
.btn-lime:hover, .nav-links a.btn-lime:hover { background: var(--lime-300); color: var(--neutral-900); }
.btn-ghost { border-color: #2A2A31; color: #F4F4F6; background: transparent; }
.btn-ghost:hover { border-color: #3A3A42; color: #fff; }

/* ---------- Hero ---------- */
#hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 68% 42%, color-mix(in srgb, var(--purple-500) 14%, transparent), transparent 70%),
    var(--neutral-950);
}
#scene { position: absolute; inset: 0; pointer-events: none; }
#scene canvas { display: block; width: 100%; height: 100%; }

.hero-copy { position: relative; z-index: 2; max-width: 780px; }
.hero-copy h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 8.2rem);
  line-height: .98; letter-spacing: -0.03em;
  margin: 22px 0 26px; color: #F4F4F6;
}
.hero-copy h1 .lim { color: var(--purple-400); }
.hero-copy .sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6;
  color: var(--neutral-400); max-width: 34em; margin: 0 0 38px;
}
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; left: 40px; bottom: 30px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: .18em; text-transform: uppercase; color: var(--neutral-500);
}
.scroll-hint .line { width: 56px; height: 1px; background: #2A2A31; position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint .line::after {
    content: ""; position: absolute; inset: 0; background: var(--lime-400);
    transform: translateX(-100%); animation: hint-sweep 2.4s cubic-bezier(.2,0,0,1) infinite;
  }
  @keyframes hint-sweep { 40% { transform: translateX(0); } 100% { transform: translateX(100%); } }
}

/* ---------- Marquee strip ---------- */
.marquee { overflow: hidden; padding: 84px 0 20px; border-top: 1px solid #1B1B21; }
.marquee-track { display: flex; gap: 64px; width: max-content; will-change: transform; }
.marquee-track .mq {
  font-family: var(--font-display); font-weight: 700; white-space: nowrap;
  font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.03em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px #3A3A42;
}
.marquee-track .mq.solid { color: var(--purple-500); -webkit-text-stroke: 0; }
.marquee-track img { height: clamp(2.4rem, 5.6vw, 4.8rem); align-self: center; opacity: .9; }

/* ---------- Sections ---------- */
section.block { padding: 140px 0; position: relative; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -0.03em; line-height: 1.05;
  margin: 16px 0 0; color: #F4F4F6;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; overflow: hidden;
  border: 1px solid #2A2A31; border-radius: var(--radius-xl, 20px);
  background: var(--neutral-900);
  padding: 44px 40px 40px;
  transition: transform .22s cubic-bezier(.2,0,0,1), border-color .22s, box-shadow .22s;
}
.svc:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--purple-500) 45%, var(--neutral-900));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--purple-500) 25%, transparent), 0 8px 40px -12px color-mix(in srgb, var(--purple-500) 45%, transparent);
}
.svc .idx { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--purple-400); }
.svc h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.02em;
  margin: 18px 0 14px; color: #F4F4F6;
}
.svc p { color: var(--neutral-400); line-height: 1.65; font-size: var(--text-md); margin: 0 0 30px; max-width: 30em; }
.svc .tags { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .06em; color: var(--neutral-500); }
.svc .svc-mark {
  position: absolute; right: -70px; bottom: -80px; width: 260px; opacity: .07;
  transition: opacity .3s cubic-bezier(.2,0,0,1), transform .5s cubic-bezier(.2,0,0,1);
}
.svc:hover .svc-mark { opacity: .14; transform: rotate(8deg); }

/* ---------- Process ---------- */
#process .steps { display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 120px 260px 1fr; gap: 32px; align-items: baseline; padding: 44px 0; }
@media (max-width: 860px) { .step { grid-template-columns: 72px 1fr; } .step p { grid-column: 2; } }
.step .step-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: #2A2A31; transform-origin: left; }
.step .num { font-family: var(--font-mono); font-size: var(--text-lg); color: var(--purple-400); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); letter-spacing: -0.02em; margin: 0; color: #F4F4F6; }
.step p { color: var(--neutral-400); line-height: 1.65; font-size: var(--text-md); margin: 0; max-width: 36em; }

/* ---------- Founder note ---------- */
#about { background: var(--neutral-900); }
.note { max-width: 760px; }
.note .mark { width: 44px; margin-bottom: 28px; display: block; }
.note blockquote {
  margin: 24px 0 0; padding: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.45; letter-spacing: -0.015em;
  color: #F4F4F6; text-wrap: pretty;
}
.note blockquote em { font-style: normal; color: var(--lime-400); }
.note .sig { margin-top: 36px; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--neutral-500); }

/* ---------- CTA ---------- */
#contact { background: var(--purple-500); overflow: hidden; }
#contact .wrap { position: relative; z-index: 2; }
.cta-mark {
  position: absolute; right: -12%; top: 50%; width: 58vw; max-width: 900px;
  transform: translateY(-50%); opacity: .1; pointer-events: none; z-index: 1;
}
#contact .eyebrow { color: var(--lime-300); }
#contact h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.04;
  margin: 16px 0 40px; color: #fff; max-width: 14em;
}
.email-link {
  display: inline-block; position: relative;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 4.2vw, 3.6rem); letter-spacing: -0.02em;
  color: var(--lime-400); line-height: 1.15;
  padding-bottom: 8px;
}
.email-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--lime-400); transform: scaleX(0); transform-origin: left;
  transition: transform .32s cubic-bezier(.2,0,0,1);
}
.email-link:hover { color: var(--lime-300); }
.email-link:hover::after { transform: scaleX(1); }
#contact .after { margin-top: 28px; color: var(--purple-100); font-size: var(--text-md); line-height: 1.6; max-width: 34em; }

/* ---------- Footer ---------- */
footer { background: var(--neutral-950); padding: 56px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer img { height: 22px; display: block; }
footer .tag { font-family: var(--font-display); font-size: var(--text-sm); color: var(--neutral-500); }
footer .legal { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--neutral-600); letter-spacing: .06em; }

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .nav { padding: 16px 24px; }
  .nav-links a:not(.btn) { display: none; }
  .scroll-hint { left: 24px; }
  section.block { padding: 96px 0; }
}
