:root {
  --bg: #120906;
  --bg-soft: #1f100a;
  --panel: rgba(41, 21, 14, 0.8);
  --panel-strong: rgba(53, 24, 16, 0.95);
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffeee3;
  --muted: #efbca2;
  --accent: #ff7e2f;
  --accent-strong: #ef4932;
  --accent-soft: rgba(255, 126, 47, 0.24);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --headline-font: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --body-font: "Trebuchet MS", "Segoe UI", sans-serif;
  --mono-font: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 126, 47, 0.34), transparent 30%),
    radial-gradient(circle at 78% 14%, rgba(233, 68, 49, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 116, 37, 0.12), transparent 32%),
    linear-gradient(180deg, #231008 0%, #0c0605 100%);
  color: var(--text);
  font-family: var(--body-font);
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar,
.hero-grid,
.cards,
.install-layout,
.footer {
  animation: rise 700ms ease both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(28, 13, 10, 0.76);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff8f2a, #ff5b39 68%, #db3d33);
  color: #130e0d;
  font-family: var(--headline-font);
  letter-spacing: 0.08em;
}

.brand-text,
.eyebrow,
.section-kicker,
.card-index,
.signal {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  padding-top: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 44px 0 28px;
}

.hero-copy h1,
.section-head h2,
.card h3 {
  font-family: var(--headline-font);
}

.hero-copy h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 10ch;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.hero-text,
.install-copy p,
.card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #190f0d;
  box-shadow: 0 14px 34px rgba(239, 73, 50, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: #f2d8ca;
}

.hero-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 126, 47, 0.82);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.glow-ring {
  position: absolute;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 142, 47, 0.38) 0%, rgba(230, 69, 50, 0.18) 38%, rgba(255, 126, 47, 0.08) 58%, transparent 74%);
  filter: blur(10px);
}

.avatar-card {
  position: relative;
  z-index: 1;
  width: min(88%, 460px);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 128, 39, 0.24), rgba(219, 61, 51, 0.08) 52%, rgba(255, 255, 255, 0.03)),
    rgba(22, 10, 8, 0.9);
  box-shadow: var(--shadow);
}

.avatar {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(255, 98, 42, 0.42));
}

.signal {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 10, 10, 0.85);
  color: #ffd2c4;
  font-size: 0.74rem;
}

.signal-left {
  left: 0;
  top: 18%;
}

.signal-right {
  right: 2%;
  bottom: 18%;
}

.section {
  padding: 96px 0 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.section-why .section-head h2 {
  max-width: none;
}

.section-install .install-title {
  max-width: none;
  white-space: nowrap;
}

.section-pov .pov-title {
  max-width: none;
}

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

.pov-showcase {
  display: grid;
  justify-content: center;
}

.pov-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 900px);
}

.pov-tile {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  min-height: 260px;
}

.pov-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.pov-tile:hover img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(92vw, 1180px);
  max-height: 86vh;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.card,
.terminal {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
}

.reveal-card {
  opacity: 0;
  transform: translateY(42px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-card:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-card:nth-child(3) {
  transition-delay: 0.24s;
}

.card-emoji {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.card-index {
  color: var(--accent);
  font-size: 0.76rem;
}

.card h3 {
  margin: 14px 0 10px;
  font-size: 1.65rem;
  line-height: 1;
}

.section-why .card:first-child h3 {
  margin-top: 22px;
}

.install-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 22px;
  align-items: start;
}

.install-copy {
  padding: 12px 0;
}

.terminal {
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel-strong);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-bar span:first-child {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

code {
  font-family: var(--mono-font);
  color: #ffe5d6;
  font-size: 0.98rem;
  line-height: 1.85;
}

.typed-command-block {
  display: inline-block;
  min-height: calc(1.85em * 5);
  white-space: pre-wrap;
}

.typed-command-block::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.16em;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffae52, #ef4932);
  box-shadow: 0 0 16px rgba(255, 126, 47, 0.48);
  animation: blink-caret 0.95s steps(1) infinite;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 10px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

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

@keyframes blink-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .section-head h2,
  .hero-copy h1 {
    max-width: none;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links,
  .footer-links {
    flex-wrap: wrap;
  }

  .hero-grid {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .avatar-card {
    padding: 18px;
    border-radius: 28px;
  }

  .signal {
    position: static;
    margin-top: 10px;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .pov-tile img {
    transition: none;
  }
}
