/* ───────────────────────── Tween — matched to Figma ─────────────────────────
   Ground:  #101013   ·  Accent: #6366FF  ·  Text: #F4F0FF  ·  Muted: #B6B6B6
   Type:    Aileron (display) · Black Han Sans (wordmark) · Inter (body/UI)
   ─────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Aileron";
  src: url("assets/fonts/Aileron-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101013;
  --bg-2: #16161d;
  --accent: #6366FF;
  --accent-hover: #7a7dff;
  --text: #F4F0FF;
  --muted: #B6B6B6;
  --muted-2: rgba(239, 237, 253, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);

  --font-display: "Aileron", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 1120px;
  --r-btn: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, "SF Mono", monospace; font-size: 0.85em; color: var(--accent-hover); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

/* ───────────────────────── buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; line-height: 1;
  padding: 0.72rem 1.15rem; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn--sm { padding: 0.58rem 1rem; font-size: 0.9rem; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -10px rgba(99,102,255,0.9); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--ghost { background: rgba(255,255,255,0.05); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-1px); }

.btn--translucent { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.22); backdrop-filter: blur(4px); }
.btn--translucent:hover { background: rgba(255,255,255,0.26); transform: translateY(-1px); }

/* ───────────────────────── nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 16, 19, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; justify-self: start; }
.logo__img { height: 26px; width: auto; display: block; }
.logo__img--sm { height: 22px; }

.nav__pill {
  justify-self: center;
  display: flex; align-items: center; gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.2rem;
}
.nav__link {
  font-size: 0.9rem; color: rgba(244, 240, 255, 0.72);
  padding: 0.28rem 0.8rem; border-radius: 999px;
  transition: color 0.18s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__cta { justify-self: end; }

/* ───────────────────────── hero ───────────────────────── */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: 0; overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; color: rgba(244, 240, 255, 0.72);
  margin: 0 0 1.25rem;
}
.eyebrow__spark { color: var(--accent-hover); }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 3.1rem); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--text);
  margin: 0 0 1.25rem;
}
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.08rem); color: var(--muted);
  max-width: 34rem; margin: 0 0 2rem; line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* hero visual — image cropped flat at the bottom, on a blurred gradient glow (no shadow) */
.hero__visual { position: relative; width: 100%; max-width: 1060px; margin: 0 auto; }
.hero__glow {
  position: absolute; z-index: -1;
  inset: 6% -7% -10% -7%;
  filter: blur(55px);
  background-image: linear-gradient(#10101300 21.6%, #2b1d72 45.2%, #633dc1 65.9%, #9e66db 84.6%, #ebd6fa 100%);
}
.hero__shot { width: 100%; height: auto; display: block; }

/* ───────────────────────── features ───────────────────────── */
.features { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2rem); line-height: 1.25;
  color: var(--text); text-align: center; letter-spacing: -0.005em;
  max-width: 30rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
  list-style: none; margin: 0; padding: 0;
}
.feat { display: flex; flex-direction: column; align-items: flex-start; }
.feat__icon {
  display: inline-flex; margin-bottom: 1rem;
  color: var(--text);
}
.feat__icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat__title {
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--text); margin: 0 0 0.5rem;
}
.feat__body { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; max-width: 22rem; }

/* ───────────────────────── join / feedback ───────────────────────── */
.join { padding: 0 clamp(1.25rem, 4vw, 2rem) 0; }
.join__panel {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  text-align: center;
  padding: 64px 31px 63px;
  background-image: linear-gradient(#10101300 47.1%, #2b1d72 64.7%, #633dc1 80.1%, #9e66db 94.1%, #ebd6fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 0;
}
.join__mark { display: block; width: 64px; height: 64px; }
.join__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12;
  letter-spacing: -0.01em; color: #fff; margin: 0;
}
.join__body {
  font-size: clamp(1rem, 1.4vw, 1.08rem); color: rgba(255, 255, 255, 0.85);
  max-width: 34rem; margin: 0; line-height: 1.6;
}
.join__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 0; }

/* ───────────────────────── footer ───────────────────────── */
.foot { padding: 1.75rem 0; }
.foot__inner { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.foot__copy { margin: 0 0 0 0.5rem; color: var(--muted-2); font-size: 0.82rem; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__pill { display: none; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .hero__cta, .join__cta { width: 100%; }
  .hero__cta .btn, .join__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; }
}
