/* =========================================================
   Neoconda — waitlist confirmation
   Obsidian / mint editorial system. No template clichés.
   ========================================================= */

:root {
  --ink:        #0a0a0a;
  --ink-rise:   #0e0e0f;   /* tiles */
  --ink-rise-2: #121214;   /* hover lift */

  --line:       rgba(255, 255, 255, 0.07);
  --line-2:     rgba(255, 255, 255, 0.12);

  --white:      #ffffff;
  --bone:       #ededee;
  --slate:      #8b9097;   /* secondary copy */
  --slate-dim:  #595d63;   /* labels */
  --slate-deep: #3b3e43;

  --mint:       #94f995;
  --mint-soft:  rgba(148, 249, 149, 0.10);

  --r:          6px;       /* tight, deliberate radius */

  --display: "Syne", "Space Grotesk", system-ui, sans-serif;
  --sans:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* weighted, expressive easings */
  --e-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --e-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --e-io:   cubic-bezier(0.65, 0.05, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--mint); color: #06140a; }

/* ===================== Ambient ========================== */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* off-axis mint bleed — never a centered glow */
.ambient__bleed {
  position: absolute;
  top: -22vh; left: -14vw;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 35% 35%, rgba(148,249,149,0.07), transparent 62%);
  filter: blur(8px);
}
.ambient__grain {
  position: absolute; inset: 0; opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== Shell ============================ */
.wrap {
  position: relative; z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ===================== Logo (footer) ==================== */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 5px;
  object-fit: contain; display: block;
}
.logo__word {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; color: var(--white);
}

/* ===================== Kicker (index label) ============= */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; font-weight: 400;
  color: var(--slate); letter-spacing: 0;       /* no tracked-out caps */
}
.kicker__no { color: var(--mint); }
.kicker__rule { width: 34px; height: 1px; background: var(--line-2); }

/* ===================== Hero ============================= */
.hero { padding: clamp(54px, 9vw, 104px) 0 clamp(30px, 4vw, 48px); }

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 9.5vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 22px 0 0;
  max-width: 13ch;
}
.line { display: block; overflow: hidden; padding: 0 0.06em 0.04em 0; }
.line > span { display: block; }
.dot { font-style: normal; color: var(--mint); }

/* ===================== Channels ======================== */
.channels { padding-bottom: clamp(48px, 7vw, 88px); }
.channels__head { max-width: 620px; margin-bottom: clamp(22px, 3vw, 32px); }
.channels__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--white); margin: 18px 0 0;
}
.channels__sub {
  margin-top: 16px; color: var(--slate);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem); max-width: 46ch;
}

/* ---- bento ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(132px, auto);
  gap: 12px;
}

.tile {
  --brand: var(--mint);
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px;
  background: var(--ink-rise);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.55s var(--e-soft),
    border-color 0.5s var(--e-out),
    background 0.5s var(--e-out);
  will-change: transform;
}
/* brand wash that fades in on hover (kept very restrained) */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(120% 130% at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 58%);
  transition: opacity 0.55s var(--e-out);
}
.tile:hover, .tile:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: var(--ink-rise-2);
  outline: none;
}
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }

.tile--feature { grid-column: span 2; grid-row: span 2; padding: 30px; }
.tile--wide    { grid-column: span 2; }

.tile__top { display: flex; align-items: flex-start; justify-content: space-between; }

.tile__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 5px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--bone);
  transition: color 0.45s var(--e-out), border-color 0.45s var(--e-out), background 0.45s var(--e-out);
}
.tile__icon svg { width: 22px; height: 22px; fill: currentColor; }
.tile:hover .tile__icon, .tile:focus-visible .tile__icon {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.tile--feature .tile__icon { width: 56px; height: 56px; border-radius: 6px; }
.tile--feature .tile__icon svg { width: 28px; height: 28px; }

.tile__arrow {
  color: var(--slate-deep);
  transition: color 0.45s var(--e-out), transform 0.5s var(--e-soft);
}
.tile__arrow svg { width: 18px; height: 18px; display: block; }
.tile:hover .tile__arrow, .tile:focus-visible .tile__arrow {
  color: var(--brand); transform: translate(3px, -3px);
}

.tile__pill {
  font-family: var(--mono); font-size: 11.5px; color: var(--slate);
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 100px;
  transition: color 0.45s var(--e-out), border-color 0.45s var(--e-out);
}
.tile:hover .tile__pill { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }

.tile__foot { margin-top: 26px; }
.tile__name {
  font-family: var(--display); font-weight: 700;
  font-size: 1.18rem; letter-spacing: -0.01em; color: var(--white);
  line-height: 1.1;
}
.tile__handle {
  display: block; margin-top: 5px;
  font-family: var(--mono); font-size: 12px; color: var(--slate-dim);
  transition: color 0.45s var(--e-out);
}
.tile:hover .tile__handle, .tile:focus-visible .tile__handle { color: var(--slate); }

/* feature-only typography bump */
.tile--feature .tile__name { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.tile--feature .tile__say {
  margin-top: 12px; color: var(--slate); font-size: 1rem; max-width: 30ch; line-height: 1.5;
}
.tile__cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-family: var(--mono); font-size: 13px; color: var(--white);
  transition: color 0.45s var(--e-out);
}
.tile__cta svg { width: 17px; height: 17px; transition: transform 0.5s var(--e-soft); }
.tile--feature:hover .tile__cta { color: var(--brand); }
.tile--feature:hover .tile__cta svg { transform: translateX(5px); }

/* ===================== Footer ========================== */
.foot {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.foot__copy { font-family: var(--mono); font-size: 12.5px; color: var(--slate-dim); }
.foot__link {
  margin-left: auto;
  font-family: var(--mono); font-size: 12.5px; color: var(--slate);
  display: inline-flex; align-items: center; gap: 7px;
  transition: color 0.4s var(--e-out);
}
.foot__link svg { width: 14px; height: 14px; transition: transform 0.5s var(--e-soft); }
.foot__link:hover { color: var(--mint); }
.foot__link:hover svg { transform: translate(2px, -2px); }

/* ===================== Reveal motion ===================
   Driven by JS (.js on <html>); page stays readable without it. */
.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--e-out), transform 0.8s var(--e-out);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* headline mask reveal (lines slide up from their own clip) */
.js .hero__title[data-reveal] { opacity: 1; transform: none; }
.js .hero__title[data-reveal] .line > span {
  transform: translateY(110%);
  transition: transform 0.95s var(--e-out);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.js .hero__title[data-reveal].in .line > span { transform: none; }

/* ===================== Responsive ====================== */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--feature { grid-column: span 2; grid-row: span 1; }
  .tile--wide { grid-column: span 2; }
  .tile--feature .tile__say { max-width: 46ch; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--feature, .tile--wide { grid-column: span 1; }
  .tile__foot { margin-top: 30px; }
}

/* ===================== Reduced motion ================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js .hero__title[data-reveal] .line > span { opacity: 1 !important; transform: none !important; }
}
