:root {
  --bg-base: #05060a;
  --bg-1: #0a0c16;
  --bg-2: #0e1120;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f4f5fa;
  --text-secondary: #9aa1b8;
  --text-tertiary: #6b7288;

  --accent-purple: #8b6bff;
  --accent-blue: #4f8dff;
  --accent-gradient: linear-gradient(
    135deg,
    var(--accent-purple),
    var(--accent-blue)
  );
  --accent-green: #34d399;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow:
    0 0 0 1px rgba(139, 107, 255, 0.25), 0 0 40px -8px rgba(79, 141, 255, 0.35);

  --font-display:
    "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1180px;
  --toolbar-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(
      1200px 600px at 15% -10%,
      rgba(139, 107, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% 10%,
      rgba(79, 141, 255, 0.08),
      transparent 55%
    );
  background-repeat: no-repeat;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.main h1,
.main h2,
.main h3,
.main p {
  margin: 0;
}

.icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.icon--inline {
  display: inline-block;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-blue);
  color: #04060c;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.section {
  padding: 72px 20px;
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.55);
}
.btn--primary:hover {
  box-shadow: 0 14px 36px -8px rgba(124, 92, 255, 0.7);
}
.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--outline:hover {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--ghost {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text-primary);
}
.btn--ghost:hover {
  background: var(--glass-strong);
}
.btn--sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}
.btn--lg {
  padding: 15px 26px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}
.btn__icon {
  display: inline-flex;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.link-btn:hover {
  color: var(--text-primary);
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--toolbar-h);
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.toolbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 56px 20px 80px;
  background:radial-gradient( 560px 320px at 20% 20%, rgba(139, 107, 255, 0.28), transparent 65% ), radial-gradient( 480px 300px at 80% 10%, rgba(79, 141, 255, 0.22), transparent 60% );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        url("../assets/hero-backdrop.jpg")
        center center / cover
        no-repeat;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            black 72%,
            rgba(0,0,0,.9) 82%,
            rgba(0,0,0,.5) 90%,
            transparent 100%
        );

    z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--glass);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 1.7rem + 3.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__device-stage {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
}
.illustration-ph--backdrop {
  position: absolute;
  inset: -10% -5% -5%;
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: 0.5;
}

.device {
  position: relative;
  z-index: 1;
  user-select: none;
}

.device--laptop {
  width: min(560px, 92%);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  overflow: hidden;
}

.device--phone {
  position: absolute;
  right: -6px;
  bottom: -30px;
  width: 132px;
}

.device__laptop-lid {
  padding: 10px;
  background: linear-gradient(180deg, #1a1d2e, #0c0e18);
}
.device__screen {
  background: #0a0c16;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10.4;
}
.device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device__laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #22263a, #14162238);
}
.device__laptop-base::after {
  content: "";
  display: block;
  margin: 0 auto;
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  transform: translateY(4px);
}

.device__phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.device__screen--phone {
  position: relative;
  aspect-ratio: 9/18.5;
  border: 6px solid #14162a;
  border-radius: 26px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  overflow: hidden;
}

.device__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

.device__play-btn svg {
  width: 28px;
  height: 28px;
}

.device__phone-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 4px 8px;
  font-size: 8px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.16);
}
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 11px;
}
.app__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
}
.app__body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.app__sidebar {
  width: 92px;
  flex-shrink: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-right: 1px solid var(--border);
}
.app__nav-item {
  font-size: 10px;
  color: var(--text-tertiary);
  padding: 5px 8px;
  border-radius: 6px;
}
.app__nav-item.is-active {
  background: var(--glass-strong);
  color: var(--text-primary);
}
.app__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
}

.app__grid img {
  border-radius: 5px;
  overflow: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.feature-card svg {
  margin: 0 auto 16px;
  width: 3em;
  height: 3em;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 6px;
  text-align: center;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.pillar-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}
.pillar-card__art {
  aspect-ratio: 16/10;
  margin: -24px -24px 20px;
}
.pillar-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.alpha-invite__panel {
  position: relative;
  display: grid;
  gap: 24px;
  background: linear-gradient(
    135deg,
    rgba(139, 107, 255, 0.14),
    rgba(79, 141, 255, 0.08)
  ),
  url('../assets/alpha-backdrop.webp');
  background-position: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  overflow: hidden;
  align-items: center;
  
}
.alpha-invite__copy h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.alpha-invite__copy p {
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 46ch;
}
.alpha-invite__art {
  position: absolute;
  right: -10%;
  top: -20%;
  bottom: -20%;
  width: 45%;
  opacity: 0.5;
  display: none;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer__tagline {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}
.footer__privacy {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.footer p {
  margin: 0;
}

dialog.modal {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #14172a, #0c0e18);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
  color: inherit;
}
dialog.modal::backdrop {
  background: rgba(3, 4, 8, 0.7);
  backdrop-filter: blur(4px);
}
.modal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 14px;
  padding-right: 24px;
}
.modal__lede {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.modal__close:hover {
  background: var(--glass-strong);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.field__optional {
  font-weight: 400;
  color: var(--text-tertiary);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text-primary);
  width: 100%;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent-blue);
}
.field__hint {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}
.field__password {
  position: relative;
  display: flex;
}
.field__password input {
  padding-right: 40px;
}
.field__toggle-visibility {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
}

.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.field--checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent-blue);
}
.field--checkbox label {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.form__status {
  font-size: 0.85rem;
  min-height: 1em;
  color: var(--accent-green);
}
.form__status:empty {
  display: none;
}

.devices-field {
  border: none;
  padding: 0;
  margin: 0;
}
.devices-field legend {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 4px;
}
.device-repeater {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}
.device-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.device-row__fields {
  flex: 1;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.device-row__remove {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.device-row__remove:hover {
  background: rgba(255, 90, 90, 0.15);
  border-color: rgba(255, 90, 90, 0.4);
  color: #ff9c9c;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet — 640px+ */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .device-row__fields {
    grid-template-columns: 1fr 1fr;
  }
}

/* Laptop — 1024px+ */
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }
  .hero__device-stage {
    min-height: 460px;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tech-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .alpha-invite__panel {
    grid-template-columns: 1.4fr 1fr;
    padding: 56px;
  }
  .alpha-invite__art {
    display: block;
  }
}

/* Wide monitors — 1440px+ */
@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
  .feature-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* High pixel-density screens: crisper hairlines */
@media (min-resolution: 2dppx) {
  .modal,
  .feature-card,
  .pillar-card,
  .tech-row {
    border-width: 0.5px;
  }
}
