:root {
  color-scheme: dark;
  --black: #050607;
  --panel: #0b0d0f;
  --panel-2: #111418;
  --graphite: #181c21;
  --graphite-strong: #242d35;
  --line: rgba(214, 220, 224, 0.14);
  --line-strong: rgba(235, 239, 242, 0.24);
  --line-soft: rgba(214, 220, 224, 0.08);
  --panel-line: rgba(255, 255, 255, 0.12);
  --text: #f4f7f8;
  --muted: #a2abb2;
  --soft: #707a82;
  --silver: #d9dee1;
  --cyan: #66f0e7;
  --green: #8dffbd;
  --shadow: rgba(0, 0, 0, 0.55);
  --reveal-duration: 860ms;
  --reveal-distance: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

::selection {
  color: inherit;
  background: transparent;
}

input::selection,
textarea::selection {
  color: #050607;
  background: rgba(102, 240, 231, 0.72);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), transparent 26rem),
    linear-gradient(180deg, #030404 0%, #07090a 42%, #0a0c0e 100%);
  letter-spacing: 0;
  overflow-x: hidden;
  position: relative;
}

body.is-dragging-card {
  cursor: grabbing;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.hero-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  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: 64px 64px, 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  mix-blend-mode: soft-light;
}

.webgl-fallback {
  position: fixed;
  z-index: 5;
  inset: 96px 1rem 0;
  width: min(840px, calc(100% - 2rem));
  margin: 0 auto;
  border: 1px solid rgba(102, 240, 231, 0.32);
  border-radius: 12px;
  background: rgba(5, 6, 7, 0.9);
  padding: 16px 18px;
  color: var(--silver);
  display: none;
  backdrop-filter: blur(12px);
}

.webgl-fallback[hidden] {
  display: none;
}

.webgl-fallback.is-visible {
  display: block;
  animation: revealUp var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1);
}

.webgl-fallback p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.webgl-fallback p + p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.8) 0%, rgba(5, 6, 7, 0.42) 100%);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.26);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--silver);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #050607 url("/assets/redalpine-logo.svg") center / 82% no-repeat;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 12px 32px var(--shadow);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%);
  opacity: 0.6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 34px);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-header nav a {
  transition: color 180ms ease;
}

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

.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
}

.language-toggle button {
  min-width: 36px;
  min-height: 28px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-toggle button[aria-pressed="true"] {
  color: #050607;
  background: linear-gradient(180deg, #f2f5f6, #aeb6bc);
}

main {
  position: relative;
  z-index: 2;
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  filter: blur(1.4px);
  transition:
    opacity var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1),
    transform var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1),
    filter var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 132px 0 72px;
  position: relative;
  cursor: grab;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero::before {
  content: "";
  position: absolute;
  width: min(900px, 86vw);
  aspect-ratio: 16 / 6;
  left: -6%;
  bottom: -24%;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(102, 240, 231, 0.21), transparent 54%),
    radial-gradient(ellipse at 76% 52%, rgba(141, 255, 189, 0.14), transparent 58%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-top: 3vh;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -30px -34px -30px -26px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.88) 72%, rgba(5, 6, 7, 0) 100%);
  filter: blur(0.2px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.05rem, 5.7vw, 5.45rem);
  line-height: 0.95;
  font-weight: 820;
  letter-spacing: 0;
}

.hero-subline {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%) skewX(-16deg);
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 68%);
  transition: transform 320ms ease;
}

.button:hover::after {
  transform: translateX(110%) skewX(-16deg);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
}

.button.primary {
  color: #050607;
  background: linear-gradient(180deg, #f2f5f6, #aeb6bc);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.08);
  font-weight: 780;
}

.button.secondary {
  color: var(--silver);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
}

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

.signal-row span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 10px 13px;
  color: var(--soft);
  background: rgba(5, 6, 7, 0.42);
  backdrop-filter: blur(12px);
}

.signal-row strong {
  color: var(--silver);
}

.hero-hint {
  position: absolute;
  right: 0;
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}

section:not(.hero) {
  padding: clamp(76px, 10vw, 128px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  width: min(760px, 100%);
}

.section-heading h2,
.investor h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4.6vw, 4.55rem);
  line-height: 0.98;
  font-weight: 810;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.investor p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(214px, auto);
  gap: 12px;
}

.feature,
.split article,
.software-grid div,
.compare-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 32%, rgba(255, 255, 255, 0.035)),
    rgba(10, 12, 14, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px) saturate(128%);
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.feature::after,
.split article::after,
.software-grid div::after,
.compare-card::after,
.contact-form::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 220ms ease;
}

.feature:hover,
.split article:hover,
.software-grid div:hover,
.compare-card:hover,
.contact-form:hover {
  border-color: rgba(102, 240, 231, 0.28);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 26px 90px rgba(0, 0, 0, 0.3);
}

.feature:hover::after,
.split article:hover::after,
.software-grid div:hover::after,
.compare-card:hover::after,
.contact-form:hover::after {
  border-color: rgba(102, 240, 231, 0.28);
}

.feature {
  position: relative;
  min-height: 214px;
  padding: 24px;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 38%);
  opacity: 0.25;
  pointer-events: none;
}

.feature.large {
  grid-column: span 2;
  grid-row: span 2;
}

.feature.tall {
  grid-row: span 2;
}

.feature-kicker {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature h3,
.split h3 {
  position: relative;
  margin: 16px 0 10px;
  color: var(--silver);
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.08;
}

.feature p,
.split p,
.software-grid span,
.compare-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.metric {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.78;
  font-weight: 850;
  letter-spacing: 0;
}

.fan-stack {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fan-stack span {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 14deg, rgba(255, 255, 255, 0.24) 0 7deg, rgba(255, 255, 255, 0.03) 7deg 20deg),
    radial-gradient(circle, #050607 0 20%, #181c21 21% 56%, #050607 57%);
  opacity: 0.62;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.split article {
  min-height: 250px;
  padding: clamp(24px, 4vw, 38px);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.software-grid div {
  min-height: 188px;
  padding: 24px;
}

.software-grid strong {
  display: block;
  margin-bottom: 16px;
  color: var(--silver);
  font-size: 1.08rem;
  line-height: 1.25;
}

.software-grid span {
  display: block;
}

.comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.compare-card {
  min-height: 258px;
  padding: clamp(24px, 3vw, 34px);
}

.compare-card span {
  display: block;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-card strong {
  display: block;
  margin: 32px 0 18px;
  color: var(--silver);
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.compare-card.atlas {
  border-color: rgba(102, 240, 231, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 42px rgba(102, 240, 231, 0.06);
}

.compare-line {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(102, 240, 231, 0.64), var(--line-strong));
}

.investor {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: start;
  padding-bottom: 96px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 12px 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(102, 240, 231, 0.68);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.99);
    filter: blur(1.4px);
  }

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  button,
  input,
  select,
  textarea {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.js-ready .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .button::after,
  .hero-actions .button::after,
  .reveal,
  .webgl-fallback,
  .hero::before,
  .compare-line,
  .pulse-dot {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 100svh;
    padding-top: 248px;
  }

  .hero-copy {
    width: min(620px, 100%);
  }

  .hero-hint {
    position: static;
    margin-top: 42px;
  }

  .section-heading,
  .investor {
    grid-template-columns: 1fr;
  }

  .bento,
  .software-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature.large,
  .feature.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .metric,
  .fan-stack {
    display: none;
  }

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

  .compare-line {
    width: 1px;
    height: 54px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 14px;
  }

  .brand {
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.4rem, 11.2vw, 3.95rem);
    line-height: 0.96;
  }

  .hero-copy::before {
    inset: -24px -14px -24px -14px;
    background: rgba(5, 6, 7, 0.9);
  }

  .hero-subline {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .signal-row span {
    width: 100%;
    justify-content: space-between;
  }

  .bento,
  .split,
  .software-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .feature,
  .software-grid div,
  .split article,
  .compare-card {
    min-height: auto;
  }

  .contact-form .full {
    grid-column: auto;
  }
}
