@import url("fonts.css");

:root {
  --stapel-ink: #050922;
  --stapel-ink-raised: #0d1230;
  --stapel-ink-soft: #2a2859;
  --stapel-surface: rgb(255 255 255 / 4%);
  --stapel-paper: rgb(255 255 255 / 5%);
  --stapel-line: rgb(255 255 255 / 10%);
  --stapel-text: #f2f2f2;
  --stapel-text-muted: rgb(242 242 242 / 62%);
  --stapel-green: #41f184;
  --stapel-green-light: #8df7b5;
  --stapel-green-deep: #217942;
  --stapel-violet: #726ee3;
  --stapel-blue: #66cefb;
  --stapel-red: #f65a5b;
  --stapel-orange: #ff9700;
  --accent: var(--stapel-green);
  --accent-contrast: #050922;
  --accent-soft: rgb(65 241 132 / 16%);
  --action: var(--stapel-green);
  --action-contrast: var(--stapel-ink);
  --action-shadow: rgb(65 241 132 / 25%);
  --action-shadow-hover: rgb(65 241 132 / 35%);
  --font-wordmark: "Meltbrown Expanded", Arial, Helvetica, sans-serif;
  --font-heading: "Normalidad Extended", Arial, Helvetica, sans-serif;
  --font-body: "Normalidad Text", Arial, Helvetica, sans-serif;
  --font-mono: "Normalidad Compact", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content-width: 75rem;
  --reading-width: 43rem;
  --radius-sm: .5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 1.5rem 4rem rgb(0 0 0 / 40%);
  --glass-blur: 20px;
}

[data-product="cageplate"] {
  --accent: var(--stapel-orange);
  --accent-contrast: #1a0f00;
  --accent-soft: rgb(255 151 0 / 16%);
}

[data-product="horizon"] {
  --accent: var(--stapel-blue);
  --accent-contrast: #001824;
  --accent-soft: rgb(102 206 251 / 16%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--stapel-ink); }
body { position: relative; margin: 0; min-height: 100vh; background: var(--stapel-ink); color: var(--stapel-text); font-family: var(--font-body); line-height: 1.6; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60rem 60rem at 12% -12%, rgb(114 110 227 / 18%), transparent 60%),
    radial-gradient(50rem 50rem at 92% 8%, rgb(102 206 251 / 14%), transparent 55%),
    radial-gradient(70rem 70rem at 50% 115%, rgb(65 241 132 / 10%), transparent 60%),
    var(--stapel-ink);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.site-shell { position: relative; z-index: 0; overflow: clip; }
.container { width: min(calc(100% - 2rem), var(--content-width)); margin: 0 auto; }
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--surface { background: linear-gradient(180deg, rgb(255 255 255 / 3.5%), rgb(255 255 255 / 1.5%)); border-top: 1px solid var(--stapel-line); border-bottom: 1px solid var(--stapel-line); }
.section--ink { background: radial-gradient(60rem 30rem at 50% 0%, rgb(114 110 227 / 10%), transparent 60%), var(--stapel-ink); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: var(--accent); font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; content: ""; box-shadow: 0 0 .6rem currentColor; }
.display { max-width: 14ch; margin: 0; color: inherit; font-family: var(--font-heading); font-size: clamp(2.6rem, 6vw, 5.7rem); font-weight: 800; letter-spacing: -.03em; line-height: .98; }
.heading { max-width: 18ch; margin: 0; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }
.intro { max-width: var(--reading-width); margin: 1.5rem 0 0; color: var(--stapel-text-muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgb(5 9 34 / 55%); border-bottom: 1px solid var(--stapel-line); backdrop-filter: blur(var(--glass-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%); transition: background .3s ease, border-color .3s ease; }
.site-header--dark { background: rgb(5 9 34 / 72%); border-bottom-color: rgb(255 255 255 / 6%); }
.nav { display: flex; min-height: 4.6rem; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; color: var(--stapel-text); font-family: var(--font-wordmark); font-size: 1.25rem; font-weight: 400; letter-spacing: -.08em; }
.wordmark__mark { margin-right: .18rem; color: var(--accent); }
.wordmark__logo { display: block; flex: 0 0 auto; width: clamp(9rem, 16vw, 13rem); aspect-ratio: 715 / 175; height: auto; padding: 0; color: transparent; background: url("../images/Logo_Main_Light_IR_wide_175h.png") center / contain no-repeat; border: 0; border-radius: 0; font-size: 0; letter-spacing: 0; }
.site-footer .wordmark + p { display: none; }
.wordmark__context { margin-left: .75rem; color: var(--stapel-text-muted); font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; color: var(--stapel-text-muted); font-size: .9rem; font-weight: 700; }
.nav-links a:hover { color: var(--stapel-text); }
.menu-toggle { display: none; padding: .55rem; color: var(--stapel-text); background: transparent; border: 0; }
.mobile-nav { display: none; padding: 0 1rem 1rem; background: rgb(5 9 34 / 85%); border-top: 1px solid var(--stapel-line); backdrop-filter: blur(var(--glass-blur)); }
.mobile-nav a { display: block; padding: .75rem 0; color: var(--stapel-text-muted); font-weight: 700; }
.mobile-nav.is-open { display: block; }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 800; transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--action-contrast); background: var(--action); box-shadow: 0 .5rem 1.5rem var(--action-shadow); }
.button--primary:hover { box-shadow: 0 .75rem 2rem var(--action-shadow-hover); }
.button--secondary { color: var(--stapel-text); background: rgb(255 255 255 / 5%); border-color: var(--stapel-line); backdrop-filter: blur(var(--glass-blur)); }
.button--secondary:hover { background: rgb(255 255 255 / 9%); border-color: rgb(255 255 255 / 24%); }
.button--dark { color: #fff; background: var(--stapel-ink); }

.hero { position: relative; padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); background: var(--stapel-ink); color: #fff; overflow: hidden; }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px); background-size: 2.5rem 2.5rem; content: ""; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero .intro { color: rgb(255 255 255 / 68%); }
.hero .eyebrow { color: var(--accent); }

.hero--home { padding: clamp(6rem, 14vw, 12rem) 0 clamp(5rem, 10vw, 9rem); }
.hero--home .display { max-width: none; font-size: clamp(3rem, 5.1vw, 5rem); }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero__glow { position: absolute; border-radius: 50%; filter: blur(8rem); opacity: .35; pointer-events: none; will-change: transform; }
.hero__glow--1 { width: 38rem; height: 38rem; top: -12rem; left: -8rem; background: var(--stapel-green); animation: glow-drift-1 14s ease-in-out infinite alternate; }
.hero__glow--2 { width: 28rem; height: 28rem; bottom: -6rem; right: -4rem; background: var(--stapel-violet); animation: glow-drift-2 18s ease-in-out infinite alternate; }
.hero__glow--3 { width: 22rem; height: 22rem; top: 20%; left: 55%; background: var(--stapel-blue); opacity: .2; animation: glow-drift-3 12s ease-in-out infinite alternate; }

@keyframes glow-drift-1 { to { transform: translate(6rem, 4rem) scale(1.15); } }
@keyframes glow-drift-2 { to { transform: translate(-5rem, -3rem) scale(1.1); } }
@keyframes glow-drift-3 { to { transform: translate(-4rem, 3rem) scale(1.2); } }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero__art { position: relative; min-height: 23rem; display: grid; place-items: center; padding: 2rem; background: linear-gradient(160deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%)); border-radius: var(--radius-lg); box-shadow: 0 2rem 6rem rgb(65 241 132 / 10%), 0 1rem 3rem rgb(0 0 0 / 50%), inset 0 1px 0 rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); backdrop-filter: blur(var(--glass-blur)) saturate(150%); overflow: hidden; }
.hero__art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / 12%), transparent 40%); pointer-events: none; }
.hero__art--float { animation: hero-float 6s ease-in-out infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.75rem); } }
.hero__art img { width: min(100%, 28rem); max-height: 28rem; object-fit: contain; }
.hero__placeholder { position: relative; width: min(100%, 26rem); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 2rem; color: rgb(255 255 255 / 60%); border: 1px solid rgb(255 255 255 / 13%); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

.button--glow { box-shadow: 0 0 1.5rem rgb(65 241 132 / 30%); }
.button--glow:hover { box-shadow: 0 0 2.5rem rgb(65 241 132 / 50%); }

.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(2rem); transition: opacity .7s ease-out, transform .7s ease-out; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: .15s; }
.reveal--delay-2 { transition-delay: .3s; }

.product-card--hover { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease; }
.product-card--hover:hover { transform: translateY(-.5rem); box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 45%), 0 0 0 1px var(--accent); border-color: var(--accent); background: linear-gradient(160deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%)); }

.lead-panel--glow::before { content: ""; position: absolute; top: -40%; right: -20%; width: 28rem; height: 28rem; border-radius: 50%; background: var(--accent); opacity: .1; filter: blur(6rem); pointer-events: none; }

.product-grid, .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.product-card, .feature-card { position: relative; min-height: 100%; padding: clamp(1.4rem, 3vw, 2rem); background: linear-gradient(160deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%)); border: 1px solid var(--stapel-line); border-radius: var(--radius-md); backdrop-filter: blur(var(--glass-blur)); overflow: hidden; }
.product-card::before, .feature-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, var(--accent-soft), transparent 55%); pointer-events: none; }
.product-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 20rem; }
.product-card__label { position: relative; color: var(--accent); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3, .feature-card h3 { position: relative; margin: .8rem 0 0; color: var(--stapel-text); font-size: 1.4rem; letter-spacing: -.04em; line-height: 1.1; }
.product-card p, .feature-card p { position: relative; margin: .8rem 0 0; color: var(--stapel-text-muted); }
.product-card .button { position: relative; align-self: flex-start; margin-top: 1.5rem; }
.feature-card__number { position: relative; color: var(--accent); font-family: var(--font-mono); font-size: .78rem; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.media-panel { min-height: 26rem; display: grid; place-items: center; padding: 2rem; background: linear-gradient(150deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%)); border: 1px solid var(--stapel-line); border-radius: var(--radius-lg); backdrop-filter: blur(var(--glass-blur)); }
.media-panel img { max-height: 28rem; object-fit: contain; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; overflow: hidden; border: 1px solid var(--stapel-line); border-radius: var(--radius-md); background: var(--stapel-line); }
.metric-grid--lifecycle { grid-template-columns: repeat(2, 1fr); }
.metric { padding: 1.25rem; background: rgb(5 9 34 / 65%); backdrop-filter: blur(var(--glass-blur)); }
.metric strong { display: block; color: var(--accent); font-family: var(--font-heading); font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.03em; }
.metric span { display: block; margin-top: .35rem; color: var(--stapel-text-muted); font-size: .8rem; }
.spec-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--stapel-line); }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--stapel-line); }
.spec-list span { color: var(--stapel-text-muted); }
.spec-list strong { color: var(--stapel-text); text-align: right; }

.lead-panel { position: relative; padding: clamp(1.6rem, 4vw, 3.5rem); background: linear-gradient(160deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%)); border: 1px solid var(--stapel-line); border-radius: var(--radius-lg); color: var(--stapel-text); backdrop-filter: blur(var(--glass-blur)); overflow: hidden; }
.lead-panel .heading { max-width: 15ch; }
.lead-panel .intro { max-width: 38rem; }
.lead-form { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .75rem; max-width: 38rem; margin-top: 2rem; }
.field { min-height: 3rem; padding: .75rem 1rem; color: var(--stapel-ink); background: rgb(255 255 255 / 95%); border: 1px solid transparent; border-radius: .5rem; }
.form-note { position: relative; margin: 1rem 0 0; color: var(--stapel-text-muted); font-size: .75rem; }
.form-status { display: none; margin-top: 1rem; color: var(--stapel-green); font-weight: 700; }
.form-status.is-visible { display: block; }
.notifications [role="alert"] { color: var(--stapel-red); font-weight: 700; }
.notifications [role="status"] { color: var(--stapel-green); font-weight: 700; }
.lead-panel .field { display: block; width: 100%; }
.lead-panel form .button { margin-top: .5rem; }

.site-footer { padding: 3.5rem 0 2rem; color: var(--stapel-text-muted); background: rgb(5 9 34 / 60%); border-top: 1px solid var(--stapel-line); backdrop-filter: blur(var(--glass-blur)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer .wordmark { color: var(--stapel-text); }
.footer-title { margin: 0 0 .8rem; color: var(--stapel-text); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: .55rem; font-size: .9rem; }
.footer-links a:hover { color: var(--stapel-text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--stapel-line); font-size: .75rem; }

@media (max-width: 900px) {
  .hero--home .hero__grid { grid-template-columns: 1fr; }
  .hero--home .hero__art { width: min(100%, 34rem); min-height: 20rem; margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 18rem; }
  .hero__glow { display: none; }
  .hero__particles { display: none; }
  .product-grid, .card-grid { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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