:root {
  --bg: #050508;
  --bg2: #0a0b10;
  --text: #f0eef6;
  --muted: #8b8798;
  --line: #1c1a26;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --purple-dim: rgba(168, 85, 247, 0.18);
  --glow-a: rgba(124, 58, 237, 0.45);
  --glow-b: rgba(168, 85, 247, 0.2);
  --btn-glow: rgba(124, 58, 237, 0.35);
  --font: "DM Sans", sans-serif;
  --display: "Syne", sans-serif;
}

[data-theme="light"] {
  --bg: #f3f0fa;
  --bg2: #ebe6f7;
  --text: #16121f;
  --muted: #6a6478;
  --line: #d9d3e8;
  --purple: #7c3aed;
  --purple-deep: #6d28d9;
  --purple-dim: rgba(124, 58, 237, 0.12);
  --glow-a: rgba(124, 58, 237, 0.22);
  --glow-b: rgba(168, 85, 247, 0.14);
  --btn-glow: rgba(124, 58, 237, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

.glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  background:
    radial-gradient(ellipse 55% 50% at 50% 20%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 40% 35% at 70% 40%, var(--glow-b), transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(3%, 4%, 0) scale(1.06); }
}

.nav,
main,
.foot {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  animation: fadeDown 0.7s ease both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: #0a0a0f;
}

.links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.links a:hover {
  color: var(--text);
}

.theme {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.theme:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.5);
  background: var(--purple-dim);
}

.theme svg {
  width: 18px;
  height: 18px;
  display: none;
}

html:not([data-theme="dark"]) .theme-moon,
html[data-theme="dark"] .theme-sun {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-dash {
  background: var(--purple-dim);
  border-color: rgba(168, 85, 247, 0.45);
  color: var(--text);
  padding: 0.5rem 1rem;
}

.btn-dash:hover {
  background: rgba(168, 85, 247, 0.28);
  border-color: var(--purple);
}

.btn-main {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  box-shadow: 0 0 28px var(--btn-glow);
}

.btn-main:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--text);
}

.hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 5.5rem 1.5rem 6.5rem;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy .logo,
.hero-copy .tag,
.hero-copy .lead,
.hero-copy .ctas {
  max-width: min(34rem, 52%);
}

.hero-copy .tag {
  max-width: min(18ch, 52%);
}

.hero-ui {
  position: absolute;
  top: 12%;
  right: 1.5rem;
  width: min(704px, 48vw);
  height: min(495px, 70vh);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(88, 28, 135, 0.18);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 100%);
  opacity: 0.95;
  animation: fadeUp 1s ease 0.25s both;
}

.hero-frame {
  width: 1280px;
  height: 900px;
  border: 0;
  background: var(--bg);
  transform: scale(0.55);
  transform-origin: top left;
  transition: opacity 0.22s ease;
}

.hero-frame.fade {
  opacity: 0.25;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 7rem);
  letter-spacing: -0.05em;
  line-height: 1.2;
  padding-bottom: 0.08em;
  color: var(--text);
  animation: fadeUp 0.8s ease 0.1s both;
}

.tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: 1.25rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
  animation: fadeUp 0.8s ease 0.2s both;
}

.lead {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fadeUp 0.8s ease 0.4s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.block,
.cta-end {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.block h2,
.cta-end h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.sub {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.steps .n {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--purple);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.steps h3,
.feats h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.steps p,
.feats p {
  color: var(--muted);
  font-size: 0.95rem;
}

.feats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 3rem;
  margin-top: 3rem;
}

.for-line {
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--text) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-end {
  text-align: center;
}

.cta-end .sub {
  margin-left: auto;
  margin-right: auto;
}

.cta-end .btn {
  margin-top: 1.75rem;
}

.foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.foot .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .links {
    display: none;
  }

  .steps,
  .feats {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
    min-height: auto;
  }

  .hero-ui {
    display: none;
  }

  .hero-copy .logo,
  .hero-copy .tag,
  .hero-copy .lead,
  .hero-copy .ctas {
    max-width: none;
  }
}
