/* =========================================================
   CodeRed Software — styles
   ========================================================= */
:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --surface: #121218;
  --surface-2: #17171f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ececf1;
  --muted: #9a9aa8;
  --red: #e5141c;
  --red-2: #ff3b3f;
  --red-deep: #9e0b10;
  --silver: #d6d6dc;
  --silver-2: #8e8e98;

  --grad-red: linear-gradient(135deg, #ff4a4f 0%, #e5141c 45%, #9e0b10 100%);
  --grad-silver: linear-gradient(135deg, #ffffff 0%, #c9c9d1 45%, #7c7c86 100%);
  --grad-text: linear-gradient(90deg, #ff5a5e, #e5141c, #ffffff, #e5141c, #ff5a5e);

  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Michroma", "Eurostile", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--red); color: #fff; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.red { color: var(--red); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-2);
  padding: 6px 14px;
  border: 1px solid rgba(229, 20, 28, 0.35);
  border-radius: 999px;
  background: rgba(229, 20, 28, 0.08);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(229, 20, 28, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 20, 28, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(229, 20, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 20, 28, 0); }
}

.gradient-text {
  background: var(--grad-text);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.btn--sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(229, 20, 28, 0.7);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(229, 20, 28, 0.85); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 20, 28, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s, padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 10px 0;
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { height: 30px; width: auto; }
.nav__word { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.08em; color: var(--silver); }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) {
  position: relative;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.3s;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:not(.btn):hover,
.nav__links a.is-active { color: var(--text); }
.nav__links a:not(.btn):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; }
.nav__toggle span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 11px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav__toggle.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(229, 20, 28, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(200, 200, 215, 0.06), transparent 60%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  animation: gridMove 20s linear infinite;
  z-index: 0;
}
@keyframes gridMove { to { background-position: 64px 64px; } }

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}
.hero__orb--1 { width: 420px; height: 420px; background: #b30c12; top: -120px; right: -80px; }
.hero__orb--2 { width: 320px; height: 320px; background: #3a3a48; bottom: -100px; left: -60px; animation-delay: -7s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.1); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 22px 0 22px;
}
.hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 34px; }

/* Terminal */
.terminal {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.terminal__bar i:first-child { background: var(--red); }
.terminal__bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.terminal__body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  min-height: 124px;
  white-space: pre-wrap;
  color: var(--silver);
}
.terminal__body .t-prompt { color: var(--red-2); }
.terminal__body .t-ok { color: #4ade80; }
.terminal__body .t-dim { color: var(--silver-2); }
.caret { color: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Logo stage */
.hero__visual { display: flex; justify-content: center; }
.logo-stage {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
}
.logo-stage__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(229,20,28,0.9) 85%, transparent 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  animation: spin 8s linear infinite;
}
.logo-stage__ring--2 {
  inset: 14%;
  background: conic-gradient(from 180deg, transparent 0 75%, rgba(220,220,230,0.7) 90%, transparent 100%) border-box;
  animation-duration: 12s;
  animation-direction: reverse;
}
.logo-stage::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,20,28,0.35), transparent 70%);
  filter: blur(30px);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: 0.5; transform: scale(0.9); } }

.logo-stage__mark {
  position: relative;
  width: 68%;
 
  filter: drop-shadow(0 0 30px rgba(229,20,28,0.35));
  animation: hover 6s ease-in-out infinite;
  transform: translateZ(40px);
}
.logo-stage__word {
  position: relative;
  width: 62%;
 
  transform: translateZ(20px);
}
@keyframes hover { 50% { translate: 0 -10px; } }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--red);
  animation: scrollCue 1.8s var(--ease) infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   TICKER
   ========================================================= */
.ticker-section {
  position: relative;
  padding: 50px 0 60px;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.ticker-section__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.ticker {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker + .ticker { margin-top: 14px; }
.ticker__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee var(--duration, 40s) linear infinite;
}
.ticker--reverse .ticker__track { animation-direction: reverse; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.tech {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  white-space: nowrap;
  font-weight: 500;
  color: var(--silver);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s, color 0.3s;
}
.tech i { font-size: 1.6rem; filter: grayscale(1) brightness(1.6); transition: filter 0.3s; }
.tech:hover {
  color: #fff;
  border-color: rgba(229,20,28,0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -12px rgba(229,20,28,0.6);
}
.tech:hover i { filter: none; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 120px 0; }
.section--alt {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(229, 20, 28, 0.08), transparent 70%),
    var(--bg-2);
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  margin: 18px 0 14px;
}
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* =========================================================
   CARDS (shared spotlight + tilt)
   ========================================================= */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--products { grid-template-columns: repeat(2, 1fr); }

.card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s var(--ease), border-color 0.4s, box-shadow 0.4s;
  isolation: isolate;
  outline: none;
}
/* Spotlight that follows the mouse */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(229, 20, 28, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
/* Gradient border that follows the mouse */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255, 70, 75, 0.95), rgba(255,255,255,0.15) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover,
.card:focus-visible,
.card.is-focused {
  box-shadow: 0 30px 60px -30px rgba(229, 20, 28, 0.45), 0 0 0 1px rgba(229,20,28,0.1);
}
.card:hover::before, .card:hover::after,
.card:focus-visible::before, .card:focus-visible::after,
.card.is-focused::before, .card.is-focused::after { opacity: 1; }

/* Dim siblings while one card is focused */
.cards:hover .card:not(:hover) { opacity: 0.6; filter: saturate(0.6); }
.cards .card { transition: transform 0.25s var(--ease), border-color 0.4s, box-shadow 0.4s, opacity 0.4s, filter 0.4s; }

.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(229,20,28,0.22), rgba(229,20,28,0.05));
  border: 1px solid rgba(229,20,28,0.35);
  margin-bottom: 22px;
  transition: transform 0.5s var(--ease), background 0.4s;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--red-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { transform: translateZ(30px) rotate(-6deg) scale(1.08); background: var(--grad-red); }
.card:hover .card__icon svg { stroke: #fff; }

.card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card__tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--silver);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

/* Product cards */
.card--product { padding: 36px 34px; display: flex; flex-direction: column; }
.product__badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-red);
  color: #fff;
}
.product__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.product__head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.03em; }
.product__kind { font-size: 0.82rem; color: var(--red-2); font-family: var(--font-mono); }
.product__logo {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad-red);
  box-shadow: 0 10px 25px -10px rgba(229,20,28,0.8), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.5s var(--ease);
}
.card--product:nth-child(even) .product__logo {
  background: var(--grad-silver);
  color: #1a1a20;
  box-shadow: 0 10px 25px -10px rgba(200,200,210,0.5), inset 0 1px 0 rgba(255,255,255,0.6);
}
.card--product:hover .product__logo { transform: rotate(-8deg) scale(1.08); }

.product__features { margin: 20px 0 26px; display: grid; gap: 10px; }
.product__features li { position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--silver); }
.product__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.product__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price { color: var(--muted); font-size: 0.9rem; }
.price strong { color: var(--text); font-size: 1.35rem; font-weight: 700; }
.link-arrow { color: var(--red-2); font-weight: 600; font-size: 0.92rem; transition: letter-spacing 0.3s var(--ease); }
.link-arrow:hover { letter-spacing: 0.04em; }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  padding: 70px 0;
  background: linear-gradient(90deg, #5e070a, #b30c12 35%, #e5141c 55%, #7a080c);
  background-size: 200% 100%;
  animation: statsGrad 12s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}
@keyframes statsGrad { to { background-position: 100% 0; } }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: #fff; }
.stat__label { font-size: 0.9rem; color: rgba(255,255,255,0.8); letter-spacing: 0.05em; }

/* =========================================================
   PROCESS
   ========================================================= */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 34px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--silver-2), var(--red), transparent);
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
  opacity: 0.6;
}
.process__step { position: relative; text-align: center; padding: 0 10px; }
.process__num {
  display: grid; place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--bg);
  border: 2px solid rgba(229,20,28,0.6);
  color: var(--red-2);
  position: relative;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.process__step:hover .process__num { background: var(--grad-red); color: #fff; transform: scale(1.1); }
.process__step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process__step p { color: var(--muted); font-size: 0.93rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background:
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(229, 20, 28, 0.12), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact__copy .section__title { text-align: left; }
.contact__list { margin-top: 30px; display: grid; gap: 14px; color: var(--silver); }
.contact__list span {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  margin-right: 12px;
  border-radius: 10px;
  background: rgba(229,20,28,0.12);
  color: var(--red-2);
}

.contact__form {
  padding: 36px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  backdrop-filter: blur(12px);
  display: grid;
  gap: 18px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.field { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 22px 16px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field select { cursor: pointer; }
.field select option { background: var(--surface); }
.field label {
  position: absolute;
  left: 16px; top: 15px;
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(229,20,28,0.7);
  box-shadow: 0 0 0 4px rgba(229,20,28,0.15);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: 6px;
  font-size: 0.72rem;
  color: var(--red-2);
  letter-spacing: 0.04em;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #ff6b6b; }

.form-status { min-height: 1.2em; font-size: 0.9rem; text-align: center; color: #4ade80; }
.form-status.is-error { color: #ff6b6b; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 50px 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand img { height: 46px; width: auto; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.footer__links a:hover { color: var(--red-2); }
.footer__copy { color: var(--silver-2); font-size: 0.85rem; width: 100%; text-align: center; padding-top: 20px; border-top: 1px solid var(--line); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Cards use their own transform for tilt; reveal them via opacity + translate */
.card.reveal { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); translate: 0 30px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.25s var(--ease), box-shadow 0.4s, filter 0.4s; }
.card.reveal.is-visible { translate: 0 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead, .terminal { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .terminal { text-align: left; }
  .hero__visual { order: -1; }
  .logo-stage { width: min(380px, 90%); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .process::before { display: none; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(7,7,10,0.97);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav__links a:not(.btn) { font-size: 1.3rem; }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .hero { padding-top: 110px; }
  .cards--3, .cards--products { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .section { padding: 90px 0; }
  .contact__form { padding: 24px; }
  .footer__inner { justify-content: center; text-align: center; }
  .scroll-cue { display: none; }
}

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