:root {
  color-scheme: dark;
  --bg: #07111e;
  --bg-deep: #030811;
  --panel: rgba(26, 43, 63, 0.68);
  --panel-strong: rgba(35, 58, 82, 0.82);
  --line: rgba(142, 196, 255, 0.16);
  --line-strong: rgba(142, 196, 255, 0.28);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(220, 233, 248, 0.68);
  --soft: rgba(220, 233, 248, 0.45);
  --blue: #4da3ff;
  --cyan: #75e6ff;
  --green: #63d39c;
  --yellow: #ffc857;
  --orange: #ff925c;
  --pink: #ff7ccb;
  --violet: #8d7cff;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(7, 17, 30, 0.96), rgba(3, 8, 17, 0.98)),
    var(--bg-deep);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 17, 30, 0.86), transparent 18%, transparent 82%, rgba(7, 17, 30, 0.86)),
    radial-gradient(circle at 50% 0%, rgba(77, 163, 255, 0.16), transparent 34rem);
}

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

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.2;
  animation: drift 16s ease-in-out infinite alternate;
}

.ambient-one {
  top: -18rem;
  left: 8%;
  background: rgba(77, 163, 255, 0.55);
}

.ambient-two {
  right: -14rem;
  bottom: 10%;
  background: rgba(255, 124, 203, 0.28);
  animation-delay: -7s;
}

.topbar,
.section-shell,
.metric-band,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 56px;
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(39, 68, 100, 0.72), rgba(14, 25, 39, 0.62));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

.topbar.is-elevated {
  border-color: var(--line-strong);
  background: rgba(16, 29, 46, 0.86);
}

.brand,
.topbar nav,
.nav-actions,
.hero-actions,
.trust-line,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: white;
  font-weight: 850;
}

.brand img {
  width: 34px;
  height: 34px;
}

.topbar nav {
  justify-content: center;
  gap: 4px;
}

.topbar nav a,
.nav-actions > a:not(.button) {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.topbar a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(103, 165, 224, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(66, 111, 154, 0.72), rgba(38, 74, 109, 0.66));
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 230, 255, 0.58);
}

.button-small {
  min-height: 32px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.hero {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: center;
  min-height: 680px;
  padding: 70px 0 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(117, 230, 255, 0.78);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 3vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.1vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy > p,
.section-intro > p,
.theme-panel > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trust-line {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.trust-line span,
.module-grid article,
.workflow article,
.stack-list article,
.price-grid article,
.contact-box,
.theme-panel,
.settings-preview {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.10), transparent 24%),
    linear-gradient(145deg, rgba(30, 49, 70, 0.66), rgba(11, 20, 32, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trust-line span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-stage {
  position: relative;
  min-width: 0;
  min-height: 560px;
  perspective: 1200px;
}

.stage-glow {
  position: absolute;
  inset: 11% 5% 0;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(117, 230, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(141, 124, 255, 0.20), transparent 32%);
  filter: blur(30px);
}

.app-window {
  position: relative;
  display: grid;
  grid-template-columns: 118px 1fr;
  min-width: 0;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(142, 196, 255, 0.25);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(54, 88, 125, 0.86) 0 118px, transparent 118px),
    linear-gradient(145deg, rgba(29, 49, 71, 0.84), rgba(7, 15, 26, 0.7));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(2deg) rotateY(-4deg);
}

.app-window::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to right, transparent 0 118px, black 118px);
}

.app-rail {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
}

.app-rail img {
  width: 36px;
  height: 36px;
  margin: 0 auto 0;
}

.app-rail b {
  margin-bottom: 10px;
  text-align: center;
  font-size: 0.82rem;
}

.app-rail span {
  min-height: 31px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
}

.app-rail .active {
  border-color: rgba(117, 230, 255, 0.28);
  background: rgba(77, 163, 255, 0.30);
  color: white;
}

.app-canvas {
  position: relative;
  z-index: 1;
  padding: 14px;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.app-bar small {
  color: var(--muted);
  font-weight: 850;
}

.widget {
  position: absolute;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(142, 196, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.12), transparent 24%),
    rgba(24, 41, 60, 0.74);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.16);
}

.widget b,
.widget em,
.widget p {
  display: block;
}

.widget b {
  margin: 8px 0 10px;
  font-size: 0.96rem;
}

.widget em,
.widget p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 760;
}

.widget p + p {
  margin-top: 8px;
}

.widget strong {
  color: var(--yellow);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.blue { background: var(--blue); }
.cyan { background: var(--cyan); }
.orange { background: var(--orange); }
.yellow { background: var(--yellow); }

.focus {
  top: 86px;
  left: 150px;
  width: 330px;
}

.tasks {
  top: 236px;
  left: 150px;
  width: 360px;
}

.project {
  top: 138px;
  right: 24px;
  width: 230px;
}

.agenda {
  bottom: 32px;
  left: 360px;
  width: 255px;
}

.waiting {
  top: 272px;
  right: 12px;
  width: 230px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 86px;
}

.metric-band article {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-band b,
.metric-band span {
  display: block;
}

.metric-band b {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.metric-band span {
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.section-shell {
  padding-bottom: 92px;
}

.product-section,
.split-section,
.pricing-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 46px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 104px;
}

.workflow,
.stack-list,
.price-grid {
  display: grid;
  gap: 12px;
}

.workflow article,
.stack-list article,
.price-grid article {
  min-height: 92px;
  padding: 18px;
  border-radius: var(--radius);
}

.workflow span {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow b,
.module-grid b,
.stack-list b,
.price-grid span {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 1rem;
}

.workflow p,
.module-grid p,
.stack-list p,
.price-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.module-grid article {
  min-height: 132px;
  padding: 16px;
  border-radius: var(--radius);
}

.custom-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.theme-panel,
.settings-preview {
  border-radius: 24px;
  padding: 28px;
}

.settings-preview {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 320px;
}

.settings-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(5, 11, 19, 0.28);
}

.settings-row b {
  font-size: 0.9rem;
}

.settings-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.toggles {
  grid-template-columns: 1fr repeat(4, auto);
  align-items: center;
}

.toggles span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.18);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
}

.stack-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  min-height: 86px;
}

.price-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
}

.price-grid strong {
  grid-column: 1;
  font-size: 1.75rem;
}

.price-grid a {
  grid-column: 2;
  grid-row: 1 / 4;
}

.contact-box {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
}

.contact-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  border: 1px solid rgba(126, 211, 252, 0.14);
  border-radius: 13px;
  background: rgba(3, 8, 17, 0.52);
  color: white;
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

.contact-box textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: rgba(117, 230, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(117, 230, 255, 0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.78rem;
}

.form-note[data-state="success"] {
  color: var(--green);
}

.form-note[data-state="error"] {
  color: var(--pink);
}

.footer {
  justify-content: space-between;
  gap: 18px;
  min-height: 106px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 0.86rem;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(0.96);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .hero,
  .product-section,
  .split-section,
  .pricing-section,
  .contact-section,
  .custom-section {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: static;
  }

  .module-grid,
  .metric-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar,
  .section-shell,
  .metric-band,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar nav {
    display: none;
  }

  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 24px;
    overflow: hidden;
  }

  .hero-copy,
  .app-stage {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero-copy > p,
  .trust-line,
  .hero-actions {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 7.6vw, 2.25rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-copy > p {
    font-size: 0.9rem;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.55rem);
    line-height: 1.1;
    overflow-wrap: break-word;
  }

  .app-stage {
    min-height: auto;
  }

  .app-window {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 520px;
    transform: none;
  }

  .app-canvas {
    overflow: hidden;
  }

  .app-rail {
    display: none;
  }

  .app-window::after {
    mask-image: none;
  }

  .focus,
  .tasks,
  .project,
  .agenda,
  .waiting {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin-bottom: 10px;
  }

  .metric-band,
  .module-grid,
  .stack-list article,
  .price-grid article,
  .toggles {
    grid-template-columns: 1fr;
  }

  .price-grid strong,
  .price-grid a {
    grid-column: auto;
    grid-row: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }
}
