:root {
  --background: #020607;
  --foreground: #f4fff9;
  --muted: #9db7ad;
  --panel: rgba(7, 18, 22, 0.78);
  --line: rgba(115, 255, 190, 0.18);
  --green: #5dffb2;
  --green-strong: #18f28b;
  --green-soft: rgba(93, 255, 178, 0.12);
  --ink: #061014;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

.hero-band {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 28%, rgba(24, 242, 139, 0.18), transparent 34rem),
    radial-gradient(circle at 12% 12%, rgba(93, 255, 178, 0.08), transparent 30rem),
    linear-gradient(180deg, #010303 0%, #061014 58%, #020607 100%);
}

.hero-band::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(93, 255, 178, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 255, 178, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

.hero-band::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 7, 0.96) 0%, rgba(2, 6, 7, 0.68) 48%, rgba(2, 6, 7, 0.2) 100%),
    url("assets/matrix-chat-hero.svg") right 9% center / min(54vw, 680px) auto no-repeat;
  opacity: 0.74;
}

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(24, 242, 139, 0.35);
}

.site-nav nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav nav a:hover {
  color: var(--green);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3.1rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: #c5d8d0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.access-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 700;
}

.primary-button,
.access-form button {
  border: 1px solid rgba(93, 255, 178, 0.55);
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 0 34px rgba(24, 242, 139, 0.32);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #e6fff3;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(4, 14, 18, 0.6);
  color: #bdebd6;
  font-size: 0.9rem;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  opacity: 0.88;
}

.phone-frame {
  width: min(360px, 76vw);
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 1px solid rgba(186, 255, 220, 0.16);
  border-radius: 34px;
  background: #020407;
  box-shadow:
    0 0 70px rgba(24, 242, 139, 0.25),
    inset 0 0 0 8px rgba(255, 255, 255, 0.03);
}

.splash-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020407;
}

.status-panel {
  position: absolute;
  right: -28px;
  bottom: 8%;
  display: flex;
  width: min(280px, 72vw);
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(3, 11, 14, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.status-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-light {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.content-band,
.split-band,
.ramdisk-band,
.access-band,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.content-band {
  padding: 104px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.section-heading h2,
.split-copy h2,
.ramdisk-band h2,
.access-band h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
}

.section-heading p:not(.eyebrow),
.split-copy p,
.ramdisk-band p,
.access-band p {
  color: #b6c9c1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(8, 24, 28, 0.9), rgba(5, 13, 16, 0.76));
}

.feature-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: center;
  padding: 24px 0 104px;
}

.brand-board {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(24, 242, 139, 0.12), transparent 52%),
    #02080b;
}

.brand-board img {
  width: 100%;
  display: block;
}

.split-copy {
  max-width: 610px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 700;
}

.ramdisk-band {
  margin-bottom: 96px;
  border: 1px solid rgba(93, 255, 178, 0.2);
  border-radius: 8px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(93, 255, 178, 0.08), transparent 40%),
    rgba(5, 15, 18, 0.86);
}

.ramdisk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ramdisk-grid article {
  border: 1px solid rgba(93, 255, 178, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.2);
}

.ramdisk-grid h3 {
  margin: 0 0 12px;
  color: #f4fff9;
}

.ramdisk-grid p {
  margin: 0;
}

.ramdisk-note {
  margin: 22px 0 0;
  border-left: 3px solid var(--green);
  padding-left: 16px;
  color: #cfe7dd;
}

.roadmap-band {
  border-top: 1px solid var(--line);
}

.roadmap-list {
  display: grid;
  gap: 12px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  border: 1px solid rgba(93, 255, 178, 0.14);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.035);
}

.roadmap-item span {
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
}

.roadmap-item p {
  margin: 0;
  color: #def5e9;
}

.access-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  gap: 36px;
  align-items: center;
  margin-bottom: 80px;
  border: 1px solid rgba(93, 255, 178, 0.22);
  border-radius: 8px;
  padding: 34px;
  background:
    radial-gradient(circle at 84% 0%, rgba(24, 242, 139, 0.18), transparent 28rem),
    rgba(6, 18, 22, 0.82);
}

.access-form {
  display: grid;
  gap: 10px;
}

.access-form label {
  color: #d8f7e9;
  font-weight: 700;
}

.access-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.access-form input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.32);
  color: white;
  outline: none;
}

.access-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(93, 255, 178, 0.14);
}

.access-form small {
  color: #84a398;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
  color: #8da79d;
  font-size: 0.9rem;
}

.site-footer span {
  color: #f4fff9;
  font-weight: 700;
}

.site-footer p {
  max-width: 660px;
  margin: 0;
  text-align: right;
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    gap: 18px;
  }

  .site-nav nav {
    display: none;
  }

  .hero-shell,
  .split-band,
  .access-band {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    display: grid;
    gap: 30px;
    padding-top: 20px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    position: relative;
    order: 1;
    top: auto;
    right: auto;
    transform: none;
    opacity: 1;
  }

  .hero-band::after {
    background:
      linear-gradient(180deg, rgba(2, 6, 7, 0.6) 0%, rgba(2, 6, 7, 0.96) 55%),
      url("assets/matrix-chat-hero.svg") center 8% / min(86vw, 520px) auto no-repeat;
    opacity: 0.5;
  }

  .security-grid,
  .ramdisk-grid {
    grid-template-columns: 1fr;
  }

  .status-panel {
    right: auto;
    bottom: 4%;
  }

  .access-form div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .content-band,
  .split-band,
  .ramdisk-band,
  .access-band,
  .site-footer,
  .site-nav,
  .hero-shell {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 3rem;
  }

  .access-band {
    padding: 24px;
  }

  .ramdisk-band {
    padding: 24px;
  }

  .roadmap-item {
    grid-template-columns: 52px 1fr;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
