:root {
  --bg: #080b12;
  --panel: rgba(18, 23, 32, 0.78);
  --panel-strong: rgba(26, 33, 45, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7f2;
  --muted: #a9b0b8;
  --subtle: #6f7884;
  --orange: #ff6700;
  --gold: #ffe000;
  --green: #71d28b;
  --cyan: #63c9d7;
  --red: #f16165;
  --scroll-progress: 0;
  --top-progress: 0;
  --top-offset: -14px;
  --top-bg-alpha: 0;
  --top-border-alpha: 0;
  --top-shadow-alpha: 0;
  --splash-opacity: 1;
  --splash-offset: 0px;
  --splash-scale: 1;
  --email-opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(99, 201, 215, 0.08), transparent 28%),
    radial-gradient(circle at 18% 92%, rgba(255, 103, 0, 0.1), transparent 30%),
    linear-gradient(180deg, #080b12 0%, #0b1017 42%, #080b12 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%);
}

main {
  min-height: 100vh;
}

.top-bar {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  width: min(760px, calc(100% - 18px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(14px, 2.8vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, var(--top-border-alpha));
  border-radius: 999px;
  background: rgba(8, 11, 18, var(--top-bg-alpha));
  opacity: var(--top-progress);
  pointer-events: none;
  transform: translate(-50%, var(--top-offset));
  transition: opacity 140ms ease, transform 140ms ease, width 220ms ease, padding 220ms ease, gap 220ms ease;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, var(--top-shadow-alpha));
}

body.is-top-visible .top-bar {
  pointer-events: auto;
}

body.is-at-end .top-bar {
  width: min(600px, calc(100% - 18px));
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-inline: clamp(14px, 2.4vw, 20px);
}

.splash {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: var(--splash-opacity);
  filter: blur(0);
  pointer-events: none;
  transform: translate(-50%, calc(-50% + var(--splash-offset))) scale(var(--splash-scale));
  transition: opacity 120ms ease, filter 120ms ease, transform 120ms ease;
}

body.is-scrolled .splash {
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.98);
}

.title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.eod,
.toc {
  font-size: clamp(48px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 0.95;
}

.eod {
  color: #fff;
}

.toc {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(8px);
  background: linear-gradient(90deg, var(--orange), var(--orange) 40%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: toc-in 650ms ease-out 150ms forwards;
}

.title--compact {
  gap: 5px;
}

.title--compact .eod,
.title--compact .toc {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.01em;
}

.title--compact .toc {
  animation: none;
  filter: none;
  opacity: 1;
  transform: none;
}

@keyframes toc-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.soon-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.soon-row--compact {
  gap: 14px;
  max-width: 170px;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 220ms ease, max-width 260ms ease, transform 260ms ease, gap 260ms ease;
}

body.is-at-end .top-bar .soon-row--compact {
  max-width: 0;
  gap: 0;
  opacity: 0;
  transform: none;
}

.soon-label {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.soon-row--compact .soon-label {
  font-size: 12px;
}

.icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon {
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
}

.soon-row--compact .icon {
  font-size: 22px;
}

@media (min-width: 1100px) {
  .top-bar {
    padding-inline: 18px;
  }
}

.feature-scroll {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: min(42vh, 360px) 0 96px;
  opacity: var(--scroll-progress);
  transform: translateY(18px);
  transition: opacity 150ms ease, transform 170ms ease;
}

.end-availability {
  min-height: min(46vh, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 128px;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(22px) scale(0.96);
  transition: opacity 420ms ease, filter 520ms ease, transform 520ms ease;
}

body.is-at-end .end-availability {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.end-soon-label {
  color: rgba(246, 247, 242, 0.92);
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 900;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

body.is-scrolled .feature-scroll {
  transform: translateY(0);
}

.feature-heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(34px, 7vw, 74px);
  text-align: center;
}

.eyebrow,
.feature-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-heading h1 {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 800;
  line-height: 0.98;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: min(72vh, 720px);
  margin: 0 0 clamp(46px, 8vw, 92px);
  padding: clamp(24px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 38%),
    var(--panel);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.36);
  opacity: 0.38;
  transform: scale(0.985);
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.feature-card--reverse .feature-copy {
  order: 2;
}

.feature-card--reverse .feature-visual {
  order: 1;
}

.feature-card--security {
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1.18fr);
}

.feature-card.is-active {
  border-color: rgba(255, 224, 0, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 103, 0, 0.11), transparent 36%),
    var(--panel-strong);
  opacity: 1;
  transform: scale(1);
}

.feature-card--security.is-active {
  animation: security-focus-border 1.05s ease forwards;
}

.feature-copy {
  max-width: 560px;
}

.feature-card--security .feature-copy {
  max-width: 720px;
}

.feature-copy h2 {
  margin-top: 12px;
  color: #fff;
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
}

.ai-gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #54d6ff, #9b6dff, #e071ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.ai-wordmark {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.feature-copy p:last-child {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.62;
}

.feature-visual {
  min-width: 0;
}

.device-shell {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 3 / 5;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 20%),
    #111820;
  box-shadow:
    inset 0 0 0 9px #080b12,
    inset 0 0 0 10px rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.44);
}

.device-shell::before {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 86px;
  height: 8px;
  border-radius: 99px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.screenshot-shell {
  border-color: transparent;
  box-shadow:
    inset 0 0 0 9px #080b12,
    0 24px 70px rgba(0, 0, 0, 0.44);
}

.device-shell > * {
  position: absolute;
}

.image-slot {
  inset: 46px 28px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  color: rgba(246, 247, 242, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.image-slot i {
  color: var(--gold);
  font-size: 34px;
}

.preview-image-stack {
  inset: 10px;
  overflow: hidden;
  border-radius: 22px;
  background: #111820;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 0, 0.16);
}

.preview-image-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-image-stack img:first-child {
  opacity: 1;
}

.preview-image-stack img:last-child {
  opacity: 0;
}

.feature-card.is-active .preview-image-stack img:first-child {
  animation: preview-primary-cycle 6.8s ease-in-out infinite;
}

.feature-card.is-active .preview-image-stack img:last-child {
  animation: preview-secondary-cycle 6.8s ease-in-out infinite;
}

@keyframes preview-primary-cycle {
  0%,
  42% {
    opacity: 1;
    filter: blur(0);
  }

  52%,
  86% {
    opacity: 0;
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes preview-secondary-cycle {
  0%,
  42% {
    opacity: 0;
    filter: blur(8px);
  }

  52%,
  86% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
  }
}

.intelligence-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 18%),
    #10161e;
}

.ai-summary-demo {
  inset: 54px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.operation-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(169, 176, 184, 0.3);
  border-radius: 16px;
  background: rgba(29, 39, 49, 0.95);
}

.operation-entry div {
  display: grid;
  gap: 5px;
}

.operation-entry div:last-child {
  text-align: right;
}

.operation-entry strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.operation-entry span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.operation-entry div:last-child strong {
  color: var(--red);
}

.mission-summary-block {
  display: grid;
  gap: 8px;
}

.mission-summary-block > p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-stage {
  position: relative;
  min-height: 124px;
}

.summary-empty,
.summary-preview {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(169, 176, 184, 0.3);
  border-radius: 18px;
  background: rgba(29, 39, 49, 0.95);
}

.summary-empty {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  opacity: 1;
  filter: blur(0);
}

.summary-empty span {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: rgba(169, 176, 184, 0.18);
}

.summary-empty span:nth-child(1) {
  width: 72%;
}

.summary-empty span:nth-child(2) {
  width: 88%;
}

.summary-empty span:nth-child(3) {
  width: 54%;
}

.summary-preview {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  color: var(--text);
  font-size: clamp(11px, 1.35vw, 13px);
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  filter: blur(7px);
}

.summary-preview span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feature-card.is-active .summary-empty {
  animation: summary-empty-cycle 7.4s ease-in-out infinite;
}

.feature-card.is-active .summary-preview {
  animation: summary-cycle 7.4s ease-in-out infinite;
}

.generate-row {
  display: flex;
  justify-content: flex-end;
}

.generate-row span {
  position: relative;
  min-width: 104px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: transparent;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.feature-card.is-active .generate-row span {
  animation: generate-press-shell 7.4s ease-in-out infinite;
}

.generate-row span::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "GENERATE";
  color: var(--text);
}

.feature-card.is-active .generate-row span::before {
  animation: generate-press-text 7.4s ease-in-out infinite;
}

@keyframes summary-empty-cycle {
  0%,
  8% {
    opacity: 1;
    filter: blur(0);
  }

  16%,
  72% {
    opacity: 0;
    filter: blur(7px);
  }

  80%,
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes summary-cycle {
  0%,
  8% {
    opacity: 0;
    filter: blur(7px);
  }

  16%,
  72% {
    opacity: 1;
    filter: blur(0);
  }

  80%,
  100% {
    opacity: 0;
    filter: blur(7px);
  }
}

@keyframes generate-press-shell {
  0%,
  8%,
  100% {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1);
  }

  3%,
  5% {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(0.92);
  }
}

@keyframes generate-press-text {
  0%,
  8%,
  100% {
    color: var(--text);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
  }

  3%,
  5% {
    color: transparent;
    background: linear-gradient(90deg, #54d6ff, #9b6dff, #e071ff);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.visual-security {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.security-lock {
  color: var(--gold);
  font-size: clamp(96px, 10vw, 150px);
  line-height: 1;
  text-shadow: 0 0 34px rgba(255, 224, 0, 0.28);
  transition: color 220ms ease, text-shadow 220ms ease, transform 220ms ease;
}

.feature-card--security.is-active .security-lock {
  animation: security-lock-color 1.05s ease forwards;
}

.feature-card--security.is-active .feature-kicker {
  animation: security-kicker-color 1.05s ease forwards;
}

@keyframes security-focus-border {
  0%,
  68% {
    border-color: rgba(255, 224, 0, 0.34);
  }

  100% {
    border-color: rgba(241, 97, 101, 0.82);
  }
}

@keyframes security-kicker-color {
  0%,
  68% {
    color: var(--gold);
  }

  100% {
    color: var(--red);
  }
}

@keyframes security-lock-color {
  0%,
  68% {
    color: var(--gold);
    text-shadow: 0 0 34px rgba(255, 224, 0, 0.28);
  }

  100% {
    color: var(--red);
    text-shadow: 0 0 40px rgba(241, 97, 101, 0.45);
  }
}

.email {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 21;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: var(--email-opacity);
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}

body.is-scrolled .email {
  opacity: 0;
}

body.is-at-end .email {
  opacity: 1;
}

@media (max-width: 860px) {
  .top-bar {
    gap: 14px;
    padding: 14px 18px;
  }

  body.is-at-end .top-bar {
    width: min(440px, calc(100% - 28px));
  }

  .title--compact .eod,
  .title--compact .toc {
    font-size: 22px;
  }

  .soon-row--compact {
    gap: 10px;
  }

  .soon-row--compact .soon-label {
    font-size: 11px;
  }

  .soon-row--compact .icons {
    gap: 10px;
  }

  .soon-row--compact .icon {
    font-size: 20px;
  }

  .feature-scroll {
    width: min(680px, calc(100% - 28px));
    padding-top: 34vh;
    padding-bottom: 112px;
  }

  .feature-heading {
    text-align: left;
  }

  .feature-heading h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.03;
  }

  .feature-card,
  .feature-card--reverse {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 24px;
  }

  .feature-card--reverse .feature-copy,
  .feature-card--reverse .feature-visual {
    order: initial;
  }

  .feature-copy {
    max-width: none;
  }

  .feature-copy h2 {
    font-size: clamp(29px, 9vw, 42px);
  }

  .feature-card--security {
    gap: 18px;
  }

  .feature-card--security .visual-security {
    min-height: 150px;
  }

  .feature-card--security .security-lock {
    font-size: clamp(82px, 24vw, 116px);
  }

  .device-shell {
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .splash {
    width: 100%;
    padding: 0 20px;
  }

  .top-bar {
    align-items: flex-start;
    padding-bottom: 12px;
  }

  .top-bar .icons {
    gap: 8px;
  }

  .top-bar .soon-label {
    display: inline;
    font-size: 10px;
  }

  .eod,
  .toc {
    font-size: clamp(44px, 16vw, 62px);
  }

  .feature-scroll {
    width: calc(100% - 22px);
    padding-top: 32vh;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-copy p:last-child {
    font-size: 15px;
    line-height: 1.56;
  }

  .device-shell {
    border-radius: 28px;
  }

  .email {
    bottom: 14px;
    font-size: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
