:root {
  --bg: #0a0c0e;
  --bg-elev: #12161a;
  --ink: #e8eee9;
  --muted: #8b9690;
  --line: rgba(232, 238, 233, 0.12);
  --accent: #2fd4a1;
  --accent-deep: #1a9f78;
  --warn: #e8a45a;
  --glow: rgba(47, 212, 161, 0.18);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --radius: 14px;
  --max: 1080px;
  --gutter: clamp(1.5rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--bg);
  overflow-x: clip;
  max-width: 100%;
}

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

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, rgba(47, 212, 161, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(232, 164, 90, 0.06), transparent 50%),
    linear-gradient(180deg, #0d1013 0%, var(--bg) 45%, #070809 100%);
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(232, 238, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 233, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: grid-drift 48s linear infinite;
}

.atmosphere__glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  top: -18%;
  right: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(8px);
  animation: pulse 9s ease-in-out infinite;
}

.atmosphere__plate {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(920px, 92vw);
  height: 42vh;
  transform: translateX(-50%) perspective(900px) rotateX(62deg);
  transform-origin: center bottom;
  border: 1px solid rgba(47, 212, 161, 0.18);
  background:
    linear-gradient(180deg, transparent, rgba(47, 212, 161, 0.04)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(232, 238, 233, 0.05) 39px,
      rgba(232, 238, 233, 0.05) 40px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(232, 238, 233, 0.05) 39px,
      rgba(232, 238, 233, 0.05) 40px
    );
  opacity: 0.55;
}

.atmosphere__struts {
  position: absolute;
  inset: 0;
  display: none;
}

@media (min-width: 900px) {
  .atmosphere__struts {
    display: block;
  }

  .atmosphere__struts span {
    position: absolute;
    bottom: 18%;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.45;
    transform-origin: bottom center;
    animation: strut 6s ease-in-out infinite;
  }

  .atmosphere__struts span:nth-child(1) {
    left: 58%;
    height: 22vh;
    animation-delay: 0s;
  }
  .atmosphere__struts span:nth-child(2) {
    left: 62%;
    height: 28vh;
    width: 2px;
    animation-delay: 0.4s;
  }
  .atmosphere__struts span:nth-child(3) {
    left: 66%;
    height: 18vh;
    animation-delay: 0.9s;
  }
  .atmosphere__struts span:nth-child(4) {
    left: 71%;
    height: 32vh;
    width: 4px;
    opacity: 0.35;
    animation-delay: 1.3s;
  }
  .atmosphere__struts span:nth-child(5) {
    left: 75%;
    height: 14vh;
    animation-delay: 1.8s;
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes strut {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1.04);
    opacity: 0.55;
  }
}

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

/* —— Page shell (one column for every section) —— */
.shell {
  width: min(100%, var(--max));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
  min-width: 0;
  overflow-x: clip;
}

/* —— Top bar —— */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 3px rgba(47, 212, 161, 0.15);
}

.brand__name {
  font-size: 1.35rem;
  line-height: 1;
}

.top__nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.top__nav a {
  transition: color 0.2s ease;
}

.top__nav a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .top__nav {
    display: none;
  }
}

/* —— Hero (full-bleed sibling of .shell — no 100vw hacks) —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-height: min(70vh, 640px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vh, 5.5rem) 0;
  border-block: 1px solid var(--line);
  background: #07090b;
  animation: rise 0.8s ease both;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #07090b;
  background-image: url('/media/hero-viewport.jpg?v=16');
  background-image: image-set(
    url('/media/hero-viewport.webp?v=16') type('image/webp'),
    url('/media/hero-viewport.jpg?v=16') type('image/jpeg')
  );
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Soft left wash for copy — keep some of the product UI visible behind text */
  background:
    linear-gradient(
      100deg,
      rgba(7, 9, 11, 0.72) 0%,
      rgba(7, 9, 11, 0.55) 28%,
      rgba(7, 9, 11, 0.28) 52%,
      rgba(7, 9, 11, 0.08) 78%,
      transparent 100%
    ),
    linear-gradient(180deg, rgba(7, 9, 11, 0.28) 0%, transparent 20%, transparent 80%, rgba(7, 9, 11, 0.45) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--gutter), var(--max));
  max-width: 40rem;
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  margin-right: auto;
  padding-inline: 0;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.88;
  text-transform: uppercase;
  background: linear-gradient(120deg, #f4f7f4 20%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 18rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.8vw, 3.85rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #f2f5f2;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: rgba(232, 238, 233, 0.88);
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 0.85rem;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #04140f;
  box-shadow: 0 12px 40px rgba(47, 212, 161, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(47, 212, 161, 0.38);
}

.btn--primary.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.btn__meta {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.75;
}

.hero__detect {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9rem;
  color: rgba(232, 238, 233, 0.8);
}

.hero__detect strong {
  color: #f4f7f4;
  font-weight: 600;
}

.hero__detect a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 720px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
  }

  .hero__visual {
    position: relative;
    order: 2;
    inset: auto;
    width: 100%;
    height: clamp(12.5rem, 48vw, 17.5rem);
    background-size: 200% auto;
    background-position: right 42%;
    background-repeat: no-repeat;
  }

  .hero__visual::after {
    background: linear-gradient(
      180deg,
      rgba(7, 9, 11, 0.45) 0%,
      transparent 28%,
      transparent 72%,
      rgba(7, 9, 11, 0.55) 100%
    );
  }

  .hero__inner {
    order: 1;
    margin: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding: 2rem var(--gutter) 1.75rem;
  }

  .hero__headline {
    max-width: none;
  }

  .hero__lede {
    font-size: 1rem;
  }

  .btn--primary {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }
}

/* —— Inline product shots (placed with related copy) —— */
.inline-shot {
  margin: 2rem 0 0;
  animation: rise 0.75s ease both;
}

.feature-list + .inline-shot,
.principle-list + .inline-shot,
.steps + .inline-shot {
  margin-top: 2.25rem;
}

.inline-shot + .feature-list {
  margin-top: 2.5rem;
}

.inline-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.inline-shot figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.platform__meta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* —— Sections —— */
.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: none;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: none;
}

.features,
.workflow,
.platforms,
.principles,
.block {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.7s ease both;
}

.principle-list,
.feature-list,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.principle-list li,
.feature-list li,
.steps li {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.principle-list li::marker,
.feature-list li::marker,
.steps li::marker {
  content: none;
}

.principle-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  max-width: 42rem;
}

.principle-list li {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.principle-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.principle-list p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 2.25rem;
}

.feature-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.feature-list h3,
.principle-list h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.feature-list h3 .fa-solid,
.principle-list h3 .fa-solid {
  flex: 0 0 auto;
  width: 1.15em;
  font-size: 0.72em;
  line-height: 1;
  color: var(--accent);
  text-align: center;
}

.install-callout__eyebrow .fa-solid {
  margin-right: 0.4rem;
}

.feature-list p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-list li {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: 0;
  max-width: 42rem;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  color: var(--muted);
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.steps span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  min-width: 2.25rem;
  line-height: 1.2;
  padding-top: 0.1rem;
}

/* —— Platforms —— */
.dot {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 26, 0.65);
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.platform:hover {
  border-color: rgba(47, 212, 161, 0.35);
  transform: translateY(-2px);
}

.platform.is-recommended {
  border-color: rgba(47, 212, 161, 0.55);
  background: linear-gradient(160deg, rgba(47, 212, 161, 0.12), rgba(18, 22, 26, 0.8));
  box-shadow: 0 0 0 1px rgba(47, 212, 161, 0.12);
}

.platform__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.platform__label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.platform__badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #04140f;
  background: var(--accent);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.platform__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.platform__btn {
  align-self: flex-start;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.platform__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.platform__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.platform.is-recommended .platform__btn {
  background: var(--accent);
  border-color: transparent;
  color: #04140f;
}

.platform.is-recommended .platform__btn:hover:not(:disabled) {
  background: #45e0b0;
  color: #04140f;
}

.platforms__note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Install notes (high-visibility callout above downloads) —— */
.install-callout {
  margin-top: 0.5rem;
  padding: 1.75rem 1.35rem 1.85rem !important;
  border: 1px solid rgba(232, 164, 90, 0.45);
  border-radius: 16px;
  border-top: 1px solid rgba(232, 164, 90, 0.45) !important;
  background:
    linear-gradient(165deg, rgba(232, 164, 90, 0.14), rgba(18, 22, 26, 0.92) 42%),
    #12161a;
  box-shadow:
    0 0 0 1px rgba(232, 164, 90, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.35);
}

.install-callout__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
}

.install-callout .section-head h2 {
  color: #f3d2a6;
}

.install-callout .section-head p {
  color: #c9b8a0;
}

.install-callout .section-head p strong {
  color: #f6e7d2;
}

.install-panels {
  display: grid;
  gap: 1.1rem;
  max-width: 42rem;
  width: 100%;
  min-width: 0;
}

.install-panel {
  padding: 1.05rem 1.05rem 1.1rem;
  border: 1px solid rgba(232, 164, 90, 0.22);
  border-radius: 12px;
  background: rgba(8, 10, 12, 0.45);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.install-panel h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: #f0c48a;
}

.install-panel p {
  margin: 0 0 0.75rem;
  color: #c9b8a0;
  font-size: 0.98rem;
}

.install-panel__hint {
  margin-top: 0.85rem !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem !important;
  color: #a89882 !important;
}

.install-panel code,
.install-steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: #f6e7d2;
  background: rgba(232, 164, 90, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.code-block {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  border: 1px solid rgba(232, 164, 90, 0.35);
  border-radius: 10px;
  background: #1a140e;
  color: #ffc57a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.code-block code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.install-steps {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: #c9b8a0;
  font-size: 0.98rem;
}

.install-steps li {
  margin: 0 0 0.55rem;
  padding-left: 0.25rem;
}

.install-steps li:last-child {
  margin-bottom: 0;
}

.install-steps strong {
  color: #f6e7d2;
  font-weight: 600;
}

/* —— Footer —— */
.foot {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
}

.foot__brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.foot__copy {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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