/* =========================================================
   Mock-Up Machine — Landing
   ========================================================= */

:root {
  --bg: #07090c;
  --bg-2: #0a0d11;
  --panel: rgba(20, 23, 27, 0.66);
  --panel-2: rgba(28, 32, 38, 0.7);
  --panel-3: rgba(36, 41, 49, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --ink: #ecf0f3;
  --ink-soft: #c8d0d8;
  --muted: #8a96a1;
  --muted-2: #6b7681;

  --accent: #23d5d5;
  --accent-2: #1ab5b5;
  --accent-3: #5fe7e7;
  --accent-ink: #052424;
  --accent-glow: rgba(35, 213, 213, 0.22);
  --accent-glow-strong: rgba(35, 213, 213, 0.45);

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --shadow-2: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 12px 30px -18px rgba(0, 0, 0, 0.5);

  --container: 1320px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;

  --t: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body::before {
  /* base radial wash so particles read on top */
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(180deg, #060a0c 0%, #07090c 50%, #050709 100%);
  z-index: -2;
  pointer-events: none;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header (transparent) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}
.site-header[data-elevated="true"] {
  background: rgba(7, 9, 12, 0.55);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line-soft);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 14px var(--accent-glow-strong));
  transition: filter var(--t), transform var(--t);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand:hover .brand-mark { filter: drop-shadow(0 0 18px var(--accent)); transform: translateY(-1px); }
.brand-icon-link {
  display: inline-flex;
  border-radius: var(--radius-sm);
}
.brand-icon-link:focus-visible,
.brand-top-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.brand-icon-link:hover .brand-mark { filter: drop-shadow(0 0 18px var(--accent)); transform: translateY(-1px); }
.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.brand-wordmark {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.brand-top-link { color: var(--ink); border-radius: var(--radius-sm); }
.brand-top-link:hover { color: var(--accent); }
.brand-byline {
  display: none;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow-strong);
  font-weight: 500;
}
.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.primary-nav a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}
.primary-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.built-by {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color var(--t);
}
.built-by strong {
  color: var(--ink);
  font-weight: 600;
}
.built-by:hover { color: var(--accent); }
.built-by:hover strong { color: var(--accent); }

.profile-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.profile-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.22), transparent 36%),
    linear-gradient(145deg, var(--accent-3), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 14px 30px -18px var(--accent-glow-strong);
  cursor: pointer;
}
.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(10, 13, 17, 0.96);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(14px);
  z-index: 70;
}
.profile-email {
  display: block;
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.profile-menu-item:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.profile-signout { color: #ffb8b8; }

.admin-bubble {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent-ink);
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,0.35), transparent 34%),
    linear-gradient(145deg, #fff4a8, var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px -18px var(--accent-glow-strong), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: transform var(--t), filter var(--t);
}
.admin-bubble:hover { transform: translateY(-1px); filter: brightness(1.05); }

.mobile-admin-link {
  color: var(--accent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.menu-toggle { display: none; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(10px);
}
.mobile-nav a {
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
.mobile-nav .button { margin-top: 6px; justify-content: center; }
.mobile-signout { width: 100%; }
.mobile-built-by { font-size: 13px !important; color: var(--muted) !important; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t), filter var(--t);
  white-space: nowrap;
}
.button-lg { height: 46px; padding: 0 20px; font-size: 15px; }
.button-primary {
  background: linear-gradient(180deg, var(--accent-3) 0%, var(--accent) 60%, var(--accent-2) 100%);
  color: var(--accent-ink);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent),
    0 12px 30px -10px var(--accent-glow-strong);
}
.button-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); filter: brightness(0.98); }
.button-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.button-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--ink);
  border-color: var(--line);
}
.button-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon-button {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}
.icon-button:hover { background: rgba(255,255,255,0.04); }
.icon-button.menu-toggle { display: none; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, rgba(20,23,27,0.5));
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 12px var(--accent);
}
.eyebrow-static {
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
  background: transparent;
  border: 0;
  padding: 0;
  letter-spacing: 0.12em;
  backdrop-filter: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 96px;
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.hero-portfolio-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px auto;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(15, 22, 29, 0.88), rgba(6, 10, 14, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 0 6px rgba(35, 213, 213, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease;
  animation: icon-breathe 7s ease-in-out infinite;
}

.hero-portfolio-link::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 213, 213, 0.2), transparent 66%);
  filter: blur(14px);
  opacity: 0.72;
  z-index: -1;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-portfolio-link::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

@keyframes icon-breathe {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

.hero-portfolio-link img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.hero-portfolio-link:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.035);
  border-color: rgba(35, 213, 213, 0.55);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.42),
    0 0 0 7px rgba(35, 213, 213, 0.12),
    0 0 34px rgba(35, 213, 213, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-portfolio-link:hover::before {
  opacity: 1;
  transform: scale(1.08);
}

.hero-portfolio-link:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.hero-portfolio-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--accent),
    0 18px 38px rgba(0, 0, 0, 0.36);
}

@media (max-width: 640px) {
  .hero-portfolio-link {
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.34),
      0 0 0 5px rgba(35, 213, 213, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  .hero-portfolio-link::before {
    inset: -8px;
    filter: blur(11px);
  }
  .hero-portfolio-link::after {
    inset: 7px;
  }
  .hero-portfolio-link img {
    width: 40px;
    height: 40px;
  }
}
.display {
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--ink);
}
.display-accent {
  background: linear-gradient(180deg, var(--accent-3) 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 28px var(--accent-glow));
}
.hero-tagline {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 22px;
  letter-spacing: -0.005em;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  position: relative;
}
.section-tinted {
  background: rgba(10, 13, 17, 0.5);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(2px);
}
.section-spotlight { padding: 80px 0; }
.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 56px;
  padding: 56px;
  border-radius: 24px;
  background:
    radial-gradient(640px 320px at -10% 50%, rgba(35, 213, 213, 0.18), transparent 70%),
    radial-gradient(540px 320px at 110% 110%, rgba(90, 169, 255, 0.14), transparent 65%),
    rgba(13, 17, 23, 0.72);
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.spotlight-card h2 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.spotlight-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted, rgba(220, 230, 240, 0.78));
  margin: 0 0 24px;
  max-width: 560px;
}
.spotlight-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.spotlight-meta {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, rgba(220, 230, 240, 0.65));
}
.spotlight-visual {
  display: flex;
  justify-content: center;
}
.phone-frame {
  position: relative;
  width: 200px;
  height: 400px;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(28, 34, 44, 0.95), rgba(12, 15, 21, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.02);
  padding: 18px;
  display: flex;
  align-items: stretch;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.85);
}
.phone-screen {
  position: relative;
  flex: 1;
  border-radius: 24px;
  background:
    radial-gradient(160px 120px at 30% 20%, rgba(35, 213, 213, 0.35), transparent 70%),
    radial-gradient(180px 140px at 70% 80%, rgba(90, 169, 255, 0.32), transparent 70%),
    rgba(8, 11, 15, 0.96);
  overflow: hidden;
}
.phone-wave {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 55%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent, #23d5d5), transparent);
  opacity: 0.8;
}
.phone-wave-2 {
  top: 62%;
  opacity: 0.5;
  filter: blur(0.5px);
}
.phone-caption {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 18%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(220, 230, 240, 0.92);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
}
@media (max-width: 860px) {
  .spotlight-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 28px;
    text-align: center;
  }
  .spotlight-card h2 { font-size: 32px; }
  .spotlight-lede { margin-left: auto; margin-right: auto; }
  .spotlight-actions { justify-content: center; }
  .phone-frame { width: 180px; height: 360px; }
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
}
.section-head .section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Features grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(20,23,27,0.85) 0%, rgba(15,18,22,0.85) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.feature:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px var(--accent-glow);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, rgba(20,23,27,0.6));
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.feature h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Modes ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mode-card {
  background: linear-gradient(180deg, rgba(20,23,27,0.85) 0%, rgba(15,18,22,0.85) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(6px);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.mode-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px var(--accent-glow);
}
.mode-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mode-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mode-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mode-caption { background: color-mix(in srgb, var(--accent) 15%, rgba(20,23,27,0.5)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.mode-tov     { background: color-mix(in srgb, #c79bff 15%, rgba(20,23,27,0.5)); color: #c79bff; border: 1px solid color-mix(in srgb, #c79bff 30%, transparent); }

.mode-card > p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps.steps-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(20,23,27,0.85) 0%, rgba(15,18,22,0.85) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(6px);
  transition: border-color var(--t), transform var(--t);
}
.step:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.step-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.step strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA ---------- */
.cta-section { padding: 64px 0 96px; }
.cta-card {
  background:
    radial-gradient(700px 240px at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(500px 180px at 0% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(20,23,27,0.85) 0%, rgba(15,18,22,0.85) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.cta-copy { max-width: 540px; }
.cta-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cta-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}
.footer-line { color: var(--muted); line-height: 1.4; }
.footer-line:first-child { color: var(--ink-soft); font-weight: 600; letter-spacing: 0.06em; }
.footer-line a { color: var(--ink-soft); transition: color var(--t); }
.footer-line a:hover { color: var(--accent); }

/* ---------- Auth modal ---------- */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlay-in 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(22,26,32,0.98) 0%, rgba(14,17,21,0.98) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-2), 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent), 0 30px 80px -30px var(--accent-glow);
  animation: modal-in 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--t), background var(--t), border-color var(--t);
}
.auth-close:hover { color: var(--ink); background: rgba(255,255,255,0.05); border-color: var(--line); }

.auth-title {
  margin: 4px 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.auth-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.auth-tab {
  height: 34px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t), background var(--t);
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active {
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-3), var(--accent) 60%, var(--accent-2));
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 18px -8px var(--accent-glow-strong);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-field-label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.auth-help {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.auth-help:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); box-shadow: 0 0 0 3px var(--accent-glow); }
.auth-help:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-field .auth-help-tip {
  display: block;
  margin: 2px 0 4px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--accent) 10%, rgba(7,9,12,0.7));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  letter-spacing: 0;
  text-transform: none;
}
.auth-field .auth-help-tip a { color: var(--accent); text-decoration: underline; }
.auth-field input {
  height: 40px;
  padding: 0 14px;
  background: rgba(7, 9, 12, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.auth-field input::placeholder { color: var(--muted-2); }
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(7, 9, 12, 0.85);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}
.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.auth-hint {
  font-size: 11.5px;
  color: var(--muted-2);
}
.auth-error {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: var(--radius);
}
.auth-submit {
  margin-top: 4px;
  width: 100%;
  height: 44px;
  font-size: 14.5px;
}

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .container { padding: 0 28px; }
}
@media (max-width: 1024px) {
  .display { font-size: 64px; }
  .section-head h2 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .feature:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .primary-nav, .header-actions .built-by, .header-actions > .button-primary { display: none; }
  .icon-button.menu-toggle { display: inline-flex; }
  .site-header[data-nav-open="true"] .mobile-nav { display: flex; }

  .hero { padding: 120px 0 64px; }
  .display { font-size: 44px; margin: 18px 0 10px; }
  .hero-tagline { font-size: 17px; margin-bottom: 18px; }
  .lede { font-size: 15.5px; margin-bottom: 28px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }

  /* mobile brand: show glowing byline under wordmark */
  .brand { gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-wordmark { font-size: 14px; }
  .brand-byline {
    display: inline-block;
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 28px; }
  .section-head .section-sub { font-size: 14.5px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature:last-child { grid-column: auto; }
  .mode-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps.steps-3 { grid-template-columns: 1fr; }

  .cta-section { padding: 48px 0 64px; }
  .cta-card {
    padding: 40px 24px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
  }
  .cta-copy { max-width: 100%; }
  .cta-copy h2 { font-size: 24px; line-height: 1.25; }
  .cta-copy p { font-size: 15px; line-height: 1.55; }
  .cta-actions { width: 100%; margin: 0; }
  .cta-actions .button { width: 100%; justify-content: center; }

  .auth-modal { padding: 22px 20px 20px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .display { font-size: 38px; }
  .hero { padding: 110px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}
