:root {
  color-scheme: light;
  --bg: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(0, 0, 0, 0.18);
  --text: #f4f4f4;
  --muted: #cfcfcf;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d80000;
  --accent-2: #ff3b3b;
  --accent-3: #111111;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 24px 50px rgba(0, 0, 0, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 0, 0, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(80, 120, 255, 0.10), transparent 24%),
    linear-gradient(180deg, #060606 0%, #0a0a0a 55%, #050505 100%);
  color: var(--text);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--panel-border);
  background: rgba(232, 232, 232, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: var(--shadow);
  animation: header-drop 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: #111111;
}

.brand small {
  color: #555555;
  font-size: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(216, 0, 0, 0.22);
  animation: brand-pulse 5.2s ease-in-out infinite;
}

.nav {
  display: flex;
  gap: 22px;
  color: #444444;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(216, 0, 0, 0.2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.35) 48%, transparent 72%);
  transform: translateX(-160%);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.button:hover::after {
  transform: translateX(160%);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #8f0000);
  color: white;
}

.button-secondary,
.button-ghost {
  border-color: var(--panel-border);
  background: rgba(255, 255, 255, 0.82);
  color: #111111;
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding-top: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span,
.panel-label,
.card-kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555555;
}

.hero-points span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  animation: chip-float 7s ease-in-out infinite;
}

.hero-points span:nth-child(2) {
  animation-delay: 0.8s;
}

.hero-points span:nth-child(3) {
  animation-delay: 1.6s;
}

.hero-points span:nth-child(4) {
  animation-delay: 2.4s;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card,
.card,
.mini-card,
.stacked-item,
.contact-form,
.timeline-step {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: #111111;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.panel-card:hover,
.card:hover,
.mini-card:hover,
.stacked-item:hover,
.contact-form:hover,
.timeline-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(216, 0, 0, 0.22);
}

.panel-card {
  border-radius: var(--radius);
  padding: 22px;
}

.panel-card-large {
  min-height: 320px;
}

.node-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111111;
  animation: node-slide 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.node:nth-child(1) {
  animation-delay: 0.15s;
}

.node:nth-child(2) {
  animation-delay: 0.28s;
}

.node:nth-child(3) {
  animation-delay: 0.41s;
}

.node:nth-child(4) {
  animation-delay: 0.54s;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(216, 0, 0, 0.3);
  flex: 0 0 auto;
  animation: dot-glow 2.6s ease-in-out infinite;
}

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

.panel-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}

.strip,
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.strip {
  padding-top: 18px;
}

.strip p,
.split p,
.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  margin-bottom: 24px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card,
.mini-card {
  border-radius: 24px;
  padding: 24px;
}

.card h3,
.mini-card {
  margin-bottom: 0;
}

.card ul {
  padding-left: 18px;
  margin: 0;
  color: #444444;
}

.card li + li {
  margin-top: 10px;
}

.card-accent {
  background:
    linear-gradient(180deg, rgba(216, 0, 0, 0.08), rgba(255, 255, 255, 0.12)),
    var(--panel);
}

.mini-card {
  color: #111111;
  min-height: 120px;
  display: flex;
  align-items: center;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--panel-border);
}

.timeline-step span {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #8f0000);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(216, 0, 0, 0.22);
}

.stacked-list {
  display: grid;
  gap: 14px;
}

.stacked-item {
  border-radius: 22px;
  padding: 18px 20px;
  color: rgb(17, 17, 17);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.contact-form {
  border-radius: 28px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #111111;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: #111111;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(216, 0, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(216, 0, 0, 0.12);
  transform: translateY(-1px);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 18px 0 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.bg-orb {
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  filter: blur(80px);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-left {
  top: 120px;
  left: -140px;
  background: rgba(216, 0, 0, 0.18);
  animation: orb-left-float 18s ease-in-out infinite alternate;
}

.bg-orb-right {
  right: -120px;
  top: 720px;
  background: rgba(80, 120, 255, 0.14);
  animation: orb-right-float 22s ease-in-out infinite alternate;
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 14px 26px rgba(216, 0, 0, 0.22);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(216, 0, 0, 0.3);
  }
}

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

@keyframes node-slide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dot-glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(216, 0, 0, 0.22);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px rgba(216, 0, 0, 0.38);
    transform: scale(1.08);
  }
}

@keyframes orb-left-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(42px, -26px, 0) scale(1.08);
  }
}

@keyframes orb-right-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-34px, 24px, 0) scale(1.1);
  }
}

@media (max-width: 1024px) {
  .hero,
  .strip,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .three-up,
  .four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
  }

  .three-up,
  .four-up,
  .two-up,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(1120px, calc(100% - 24px));
    padding: 72px 0;
  }

  .footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  body.motion-ready .reveal,
  body.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
