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

:root {
  --bg: #080f10;
  --teal: #4ee8e4;
  --teal-dim: #36b4b1;
  --text: #6a8a8e;
  --text-bright: #c0dde0;
  --border: rgba(78, 232, 228, 0.12);
  --font: 'JetBrains Mono', 'SF Mono', monospace;
  --glow-sm: 0 0 10px rgba(78, 232, 228, 0.15);
  --glow-md: 0 0 20px rgba(78, 232, 228, 0.2);
}

html {
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

html, body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  top: var(--modal-lock-top, 0);
}

#network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ── Atmosphere Overlays ─────────────── */

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.02) 1px,
    rgba(0, 0, 0, 0.02) 2px
  );
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ── Scroll Reveal ───────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.page {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-section {
  height: 300vh; /* scroll track for the animation */
  position: relative;
}

/* ── Monitor ─────────────────────────── */

.monitor {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) perspective(1800px) rotateX(var(--mon-tilt-x, 0deg)) rotateY(var(--mon-tilt-y, 0deg)) scale(var(--mon-scale, 1.8));
  transform-origin: center center;
  width: max(900px, calc(100vw / 1.8 + 60px));
  z-index: 4;
}

.monitor-screen {
  background: #0b0f11;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  border: 2px solid #1a2a2d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.monitor-bezel {
  height: 18px;
  background: linear-gradient(180deg, #141e20 0%, #0d1517 100%);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monitor-bezel::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a2a2d;
}

.monitor-stand {
  width: 80px;
  height: 30px;
  margin: 0 auto;
  background: linear-gradient(180deg, #141e20 0%, #0d1517 100%);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

/* ── Fake AI Chat Page Inside Screen ── */

.fake-page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0b0f11;
  font-family: var(--font);
}

.fake-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(78, 232, 228, 0.06);
}

.fake-logo {
  font-size: 0.55rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.fake-nav-dots {
  display: flex;
  gap: 4px;
}

.fake-nav-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1e2e31;
}

.fake-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  gap: 12px;
}

.fake-title {
  font-size: 0.95rem;
  color: var(--text-bright);
  font-weight: 400;
  text-align: center;
}

.fake-input-wrap {
  width: 65%;
  background: #111b1d;
  border: 1px solid rgba(78, 232, 228, 0.12);
  border-radius: 18px;
  padding: 9px 38px 9px 14px;
  display: flex;
  align-items: center;
  position: relative;
}

.fake-placeholder {
  color: var(--text);
  font-size: 0.6rem;
  opacity: 0.4;
}

.fake-messages {
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fake-msg {
  font-size: 0.5rem;
  line-height: 1.6;
  padding: 6px 10px;
  border-radius: 12px;
  max-width: 85%;
}

.fake-msg-user {
  align-self: flex-end;
  background: rgba(78, 232, 228, 0.15);
  color: #e0f5f4;
  border: 1px solid rgba(78, 232, 228, 0.12);
  border-bottom-right-radius: 3px;
}

.fake-msg-ai {
  align-self: flex-start;
  background: none;
  color: var(--text-bright);
  border-bottom-left-radius: 3px;
  padding-left: 0;
  max-width: 80%;
  text-align: left;
}

.fake-thinking {
  display: inline-flex;
  gap: 3px;
  padding: 0 4px;
  vertical-align: middle;
}

.fake-thinking span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.4;
  animation: thinkDot 1.2s ease-in-out infinite;
}

.fake-thinking span:nth-child(2) { animation-delay: 0.2s; }
.fake-thinking span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkDot {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-2px); }
}

.fake-send {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  border: none;
  cursor: pointer;
  padding: 0;
}

.fake-suggestions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  width: 85%;
}

.fake-suggestion {
  font-size: 0.45rem;
  color: var(--text);
  border: 1px solid rgba(78, 232, 228, 0.1);
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.fake-suggestion:hover {
  color: var(--teal);
  border-color: rgba(78, 232, 228, 0.3);
  background: rgba(78, 232, 228, 0.04);
}

/* ── Breakout Text ───────────────────── */

.breakout-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text);
  opacity: 0.4;
  transition: opacity 0.3s;
  cursor: default;
}

.scroll-cue:hover {
  opacity: 0.7;
}

.scroll-cue .scroll-arrow {
  animation: bobDown 1.5s ease-in-out infinite;
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Details Section ─────────────────── */

.details-section {
  position: relative;
  max-width: 100%;
  margin: -30vh auto 0;
  padding: 6rem 2rem 4rem;
  z-index: 10;
}

.details-section .details-inner {
  max-width: 700px;
  margin: 0 auto;
}

.details-lead {
  font-size: 0.85rem;
  color: var(--text-bright);
  line-height: 1.9;
  margin-bottom: 4rem;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.detail-card {
  text-align: left;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--teal-dim);
  display: block;
  margin-bottom: 0.5rem;
}

.detail-text {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.8;
}

.details-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.cta-secondary {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

.cta-secondary:hover {
  background: rgba(78, 232, 228, 0.08);
  box-shadow: 0 0 30px rgba(78, 232, 228, 0.15);
}

.badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 6px 20px;
  border-radius: 2px;
  margin-bottom: 3rem;
}

h1 {
  font-family: 'Orbitron', var(--font);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.nine {
  color: var(--teal);
  text-shadow: 0 0 30px rgba(78, 232, 228, 0.3);
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-bright);
  line-height: 1.8;
  margin-bottom: 3.5rem;
  letter-spacing: 0.02em;
}

.tagline-dim {
  color: var(--text);
}

.claims {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.claim {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.claim-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--teal-dim);
}

.claim-value {
  font-size: 0.8rem;
  color: var(--text-bright);
  font-weight: 500;
  white-space: nowrap;
}

.divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.production {
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 3rem;
  font-style: italic;
}

.cta {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bg);
  background: var(--teal);
  padding: 14px 40px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 4rem;
}

.cta:hover {
  background: var(--teal-dim);
  box-shadow: 0 0 30px rgba(78, 232, 228, 0.2);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #0c1415;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal h3 {
  font-size: 0.9rem;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.modal > p {
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover { color: var(--teal); }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form input {
  padding: 12px 16px;
  background: rgba(8, 15, 16, 0.82);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-bright);
  font-size: 0.8rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--teal);
}

.modal-form textarea {
  padding: 12px 16px;
  background: rgba(8, 15, 16, 0.82);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-bright);
  font-size: 0.8rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}

.modal-form textarea::placeholder {
  color: var(--text);
  opacity: 0.5;
}

.modal-form input::placeholder {
  color: var(--text);
  opacity: 0.5;
}

.modal-form input:-webkit-autofill,
.modal-form input:-webkit-autofill:hover,
.modal-form input:-webkit-autofill:focus,
.modal-form textarea:-webkit-autofill,
.modal-form textarea:-webkit-autofill:hover,
.modal-form textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-bright);
  box-shadow: 0 0 0 1000px rgba(8, 15, 16, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.modal-form .cta {
  margin-bottom: 0;
}

.access-success p {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 1rem 0;
  white-space: nowrap;
}

.credibility {
  font-size: 0.65rem;
  color: var(--text);
  opacity: 0.4;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.footer {
  font-size: 0.65rem;
  color: var(--text);
  opacity: 0.5;
}

.footer a {
  color: var(--teal-dim);
  text-decoration: none;
}

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

@media (max-width: 500px) {
  .hero-section {
    height: 260vh;
  }

  .monitor {
    --mon-scale: 1;
    --mon-tilt-x: 0deg;
    --mon-tilt-y: 0deg;
    --chrome-opacity: 0;
    --screen-radius-factor: 0;
    --nav-divider-opacity: 0;
    --suggestions-opacity: 1;
    top: 50%;
    width: 100vw;
    max-width: none;
  }

  .monitor-screen {
    background: var(--bg);
    height: var(--mobile-screen-height, 100dvh);
    min-height: 100dvh;
    aspect-ratio: auto;
    border-radius: calc(6px * var(--screen-radius-factor));
    border-width: calc(2px * var(--chrome-opacity));
    border-color: rgba(26, 42, 45, var(--chrome-opacity));
    box-shadow:
      0 calc(28px * var(--chrome-opacity)) calc(72px * var(--chrome-opacity)) rgba(0, 0, 0, calc(0.5 * var(--chrome-opacity))),
      0 0 calc(24px * var(--chrome-opacity)) rgba(78, 232, 228, calc(0.08 * var(--chrome-opacity)));
  }

  .monitor-bezel {
    height: 14px;
    border-radius: 0 0 6px 6px;
    display: none;
  }

  .monitor-stand {
    width: 54px;
    height: 22px;
    display: none;
  }

  .fake-nav {
    padding: 6px 10px;
    border-bottom-color: rgba(78, 232, 228, calc(0.06 * var(--nav-divider-opacity)));
  }

  .fake-logo {
    font-size: 0.62rem;
  }

  .fake-hero {
    justify-content: flex-start;
    min-height: calc(100dvh - 30px);
    padding: max(0.9rem, calc(env(safe-area-inset-top) + 0.35rem)) 1rem max(1rem, calc(env(safe-area-inset-bottom) + 0.9rem));
    gap: 0.55rem;
  }

  .fake-title {
    margin-top: clamp(7.75rem, 21vh, 11.5rem);
    margin-bottom: 0;
    font-size: clamp(1.32rem, 7.9vw, 1.72rem);
    line-height: 1.2;
    max-width: 15.6ch;
  }

  .fake-input-wrap,
  .fake-messages,
  .fake-suggestions {
    width: 100%;
  }

  .fake-input-wrap {
    margin-top: clamp(2.35rem, 7.5vh, 4rem);
    min-height: 3.45rem;
    border-radius: 19px;
    padding: 0.88rem 3.25rem 0.88rem 1rem;
  }

  .fake-placeholder {
    font-size: 0.96rem;
  }

  .fake-send {
    width: 28px;
    height: 28px;
  }

  .fake-msg {
    font-size: 0.83rem;
    line-height: 1.62;
    padding: 0.6rem 0.86rem;
  }

  .fake-messages:not(:empty) {
    margin-top: clamp(2rem, 6.5vh, 3rem);
  }

  .fake-suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-top: 0.95rem;
    padding-bottom: 0.2rem;
    max-height: calc(11.5rem * var(--suggestions-opacity));
    opacity: var(--suggestions-opacity);
    transform: translateY(calc((1 - var(--suggestions-opacity)) * 8px));
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
  }

  .fake-suggestion {
    display: grid;
    align-content: center;
    justify-items: start;
    width: 100%;
    font-size: 0.76rem;
    line-height: 1.48;
    padding: 1rem 1rem 0.92rem;
    min-height: 4.85rem;
    max-width: 100%;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    overflow: hidden;
  }

  .breakout-text {
    width: min(92vw, 28rem);
  }

  .badge {
    margin-bottom: 1.5rem;
    padding: 5px 14px;
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.2rem);
    margin-bottom: 0.9rem;
  }

  .tagline {
    font-size: 0.76rem;
    line-height: 1.65;
    margin-bottom: 2.2rem;
  }

  .scroll-cue {
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  }

  .claims {
    flex-direction: column;
    gap: 1.5rem;
  }

  .divider {
    width: 40px;
    height: 1px;
  }

  .details-section {
    margin: -18vh auto 0;
    padding: 3rem 1rem 2.75rem;
  }

  .modal-overlay {
    padding: 1rem;
    align-items: flex-start;
  }

  .modal {
    width: min(100%, 21rem);
    margin-top: max(1rem, calc(env(safe-area-inset-top) + 0.6rem));
    padding: 1.5rem 1rem 1rem;
  }

  .modal h3 {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
  }

  .modal > p {
    font-size: 0.68rem;
    margin-bottom: 1rem;
  }

  .modal-close {
    top: 8px;
    right: 10px;
    font-size: 1rem;
    line-height: 1;
  }

  .modal-form {
    gap: 10px;
  }

  .modal-form input,
  .modal-form textarea {
    padding: 10px 12px;
    font-size: 16px;
    background: rgba(8, 15, 16, 0.92);
  }

  .modal-form textarea {
    min-height: 5.25rem;
  }

  .modal-form .cta {
    padding: 11px 20px;
  }

  .details-lead {
    margin-bottom: 2.5rem;
    font-size: 0.8rem;
    line-height: 1.8;
  }

  .details-grid {
    gap: 2rem;
    margin-bottom: 2.75rem;
  }

  .detail-label {
    font-size: 0.64rem;
  }

  .detail-text {
    font-size: 0.73rem;
    line-height: 1.7;
  }

  .details-cta {
    gap: 1rem;
    margin-bottom: 2.75rem;
  }

  .cta {
    padding: 12px 24px;
    margin-bottom: 2.5rem;
  }

  .detail-card {
    padding-left: 0.5rem;
  }
}
