:root {
  --bg: #0d0e12;
  --surface: #16181e;
  --surface-elevated: #1c1f28;
  --border: #2a2e3a;
  --border-subtle: #22252f;
  --violet: #7c4dff;
  --violet-soft: #9e7bff;
  --emerald: #00e676;
  --coral: #ff5252;
  --text: #f2f4f8;
  --text-secondary: #9aa0b0;
  --text-muted: #6b7280;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 16px;
  --header-h: 64px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--violet-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 75% 8%, rgba(124, 77, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 40% at 10% 90%, rgba(0, 230, 118, 0.08), transparent 50%),
    linear-gradient(180deg, #101218 0%, var(--bg) 38%, #0a0b0f 100%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(13, 14, 18, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 46, 58, 0.65);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) 0;
  overflow: hidden;
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--violet-soft);
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  max-width: 28rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 48vh;
  animation: float-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-shot {
  width: min(100%, 420px);
  max-height: min(62vh, 720px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.55));
  animation: drift 7s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--violet);
  color: var(--text);
}

.btn-primary:hover {
  background: #6a3df0;
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.section {
  padding: clamp(4rem, 10vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.page-main {
  min-height: calc(100svh - var(--header-h) - 10rem);
}

.page-foot {
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 560px;
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.section-head h1,
.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.demo {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.demo .section-head {
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  margin-left: auto;
  margin-right: auto;
  max-width: calc(var(--max) + 0px);
}

.demo-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.demo-rail figure {
  margin: 0;
  flex: 0 0 min(72vw, 280px);
  scroll-snap-align: start;
}

.demo-rail img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
}

.demo-rail figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-list span {
  color: var(--text-secondary);
  max-width: 40rem;
}

.support .section-head a {
  color: var(--violet-soft);
}

.form-shell {
  max-width: 560px;
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.form-shell label {
  display: grid;
  gap: 0.4rem;
}

.form-shell label span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-shell label em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 400;
}

.form-shell input,
.form-shell textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
  outline: none;
}

.form-shell input:focus,
.form-shell textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.18);
}

.form-shell textarea {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  margin: 0;
  color: var(--coral);
  font-size: 0.9rem;
}

.form-success {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.form-shell .btn {
  justify-self: start;
}

.privacy {
  max-width: 720px;
}

.policy {
  display: grid;
  gap: 1.75rem;
}

.policy article h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.policy p,
.policy li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.policy p {
  margin: 0 0 0.75rem;
}

.policy p:last-child {
  margin-bottom: 0;
}

.policy ul {
  margin: 0;
  padding-left: 1.2rem;
}

.policy li + li {
  margin-top: 0.45rem;
}

.policy strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem) 2.75rem;
  display: grid;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand img {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 2rem;
    padding-bottom: 1rem;
  }

  .hero-visual {
    min-height: calc(100svh - var(--header-h) - 2rem);
    justify-content: flex-end;
  }

  .hero-shot {
    width: min(100%, 480px);
    max-height: calc(100svh - var(--header-h) - 2.5rem);
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }

  .feature-list li {
    padding-top: 1.25rem;
  }

  .demo-rail figure {
    flex-basis: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-visual,
  .hero-shot {
    animation: none;
  }
}
