/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --bg: #121212;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1f1f1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(37, 99, 235, 0.45);
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --accent-soft: rgba(37, 99, 235, 0.12);
  --text: #ffffff;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 440px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-micro: cubic-bezier(0.2, 0, 0, 1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Background glow ───────────────────────────────────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    var(--bg);
}

/* ── Layout ────────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: max(env(safe-area-inset-top), 2.5rem) 1.25rem max(env(safe-area-inset-bottom), 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100dvh;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.logo__image {
  display: block;
  width: min(150px, 50vw);
  height: auto;
}

.headline {
  font-size: clamp(1.625rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 28ch;
}

.caption {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 34ch;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

/* ── Link cards ────────────────────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.links-gap {
  height: 1.25rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 1rem 1.125rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-micro),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  animation: fadeUp 0.5s var(--ease-out) both;
  animation-delay: calc(200ms + var(--delay, 0ms));
}

.link-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.link-card__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.link-card__label {
  flex: 1;
  text-align: left;
}

.link-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--text-subtle);
  transition:
    transform 0.2s var(--ease-out),
    color 0.2s ease;
}

.link-card__arrow svg {
  width: 1rem;
  height: 1rem;
}

/* Secondary cards — hover */
.link-card:not(.link-card--primary):hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.link-card:not(.link-card--primary):hover .link-card__icon,
.link-card:not(.link-card--primary):hover .link-card__arrow {
  color: var(--accent);
}

.link-card:not(.link-card--primary):hover .link-card__arrow {
  transform: translateX(3px);
}

.link-card:not(.link-card--primary):active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* Primary CTA */
.link-card--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  font-weight: 700;
}

.link-card--primary .link-card__icon,
.link-card--primary .link-card__arrow {
  color: rgba(255, 255, 255, 0.85);
}

.link-card--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border-color: rgba(255, 255, 255, 0.2);
}

.link-card--primary:hover .link-card__arrow {
  transform: translateX(4px);
}

.link-card--primary:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.link-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Featured video ────────────────────────────────────────────── */
.video-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: -0.125rem;
  animation: fadeUp 0.5s var(--ease-out) both;
  animation-delay: calc(240ms + var(--delay, 0ms));
}

.video-showcase__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
}

.video-showcase__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(37, 99, 235, 0.06);
}

.video-showcase__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.video-showcase__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
  animation: fadeUp 0.6s var(--ease-out) 0.7s both;
}

.footer-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-subtle);
  max-width: 28ch;
}

.social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.375rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--ease-micro);
}

.social-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Desktop refinements ───────────────────────────────────────── */
@media (min-width: 480px) {
  .page {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    gap: 2.25rem;
  }

  .link-card {
    min-height: 4rem;
    padding: 1.125rem 1.25rem;
  }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .link-card:hover,
  .link-card--primary:hover,
  .social-link:hover {
    transform: none;
  }
}
