/* ============================================================
   TOKENS — DESIGN SYSTEM
   ============================================================ */
:root {
  --ink: #0a0b0d;
  --ink-2: #131519;
  --ink-3: #1b1e24;
  --paper: #edefee;
  --paper-2: #ffffff;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-dark: rgba(10, 12, 15, 0.12);
  --line-dark-soft: rgba(10, 12, 15, 0.07);
  --red: #a91f23;
  --red-deep: #7d181d;
  --red-glow: rgba(169, 31, 35, 0.35);
  --red-glow-soft: rgba(169, 31, 35, 0.12);
  --blue: #3e8fb0;
  --blue-glow: rgba(62, 143, 176, 0.35);
  --text-hi: #f6f5f2;
  --text-lo: #9498a0;
  --text-hi-dk: #101215;
  --text-lo-dk: #565c65;
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-full: 999px;
  --max: 1240px;
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body: 'IBM Plex Sans', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 20px 60px -12px rgba(0, 0, 0, .5);
  --shadow-glow: 0 0 40px -8px var(--red-glow);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--text-hi);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

.container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  position: relative;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--max));
  }
}

section {
  position: relative;
}

.section {
  padding: 120px 0;
}

.section-tight {
  padding: 80px 0;
}

@media (max-width: 900px) {
  .section {
    padding: 88px 0;
  }
  .section-tight {
    padding: 64px 0;
  }
}

.muted {
  color: var(--text-lo);
}

.grid-bg {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: .98;
}

.h-xl {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.h-lg {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
}

.h-md {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
}

.h-sm {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-top: 18px;
  font-size: 1.05rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 26px -8px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px var(--red-glow);
  background: var(--red-deep);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  background: rgba(169, 31, 35, 0.08);
}

.btn-white {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  background: #f0f0ee;
}

.btn-sm {
  padding: 10px 18px;
  font-size: .7rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: .9rem;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(10, 11, 13, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .3s, border-color .3s;
}

header.scrolled {
  background: rgba(10, 11, 13, 0.94);
  border-color: var(--line);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand img {
  height: 34px;
  width: auto;
}

.brand span {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-hi);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:not(.btn) {
  padding: 9px 16px;
  font-size: .88rem;
  color: var(--text-lo);
  border-radius: var(--radius-full);
  transition: color .25s, background-color .25s;
  font-weight: 500;
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
  color: var(--text-hi);
  background: rgba(255, 255, 255, .08);
}

.nav-links .btn {
  margin-left: 10px;
  padding: 11px 22px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  transition: .3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a:not(.btn) {
    padding: 16px;
    font-size: 1.05rem;
  }
  .nav-links .btn {
    margin: 14px 0 0;
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================================
   HERO / CANVAS SCROLL ANIMATION SECTION
   ============================================================ */
.hero {
  position: relative;
}

.hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 20px) 2rem 2.5rem;
  background: radial-gradient(circle at center, rgba(10, 11, 13, 0.25) 0%, rgba(10, 11, 13, 0.8) 100%),
              linear-gradient(180deg, rgba(10, 11, 13, 0.85) 0%, rgba(10, 11, 13, 0.15) 40%, rgba(10, 11, 13, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero__content {
  text-align: center;
  pointer-events: auto;
  max-width: 900px;
  margin: 0 auto;
  transition: opacity 0.1s linear;
  margin-top: auto;
  margin-bottom: auto;
}

.hero__title {
  color: var(--text-hi);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}

.hero__title span {
  color: var(--red);
  display: block;
}

.hero__subtitle {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(246, 245, 242, 0.85);
  max-width: 620px;
  margin-inline: auto;
  font-family: var(--f-body);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero__progress {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  pointer-events: auto;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  background: rgba(19, 21, 25, 0.65);
  backdrop-filter: blur(14px);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

.hero__progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.hero__progress-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--red);
  border-radius: 2px;
  transition: width 0.05s linear;
}

.hero__progress-label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
  min-width: 3.2rem;
  text-align: right;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hero__scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__scroll-hint span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero__spacer {
  height: 350vh;
}

/* ── Loading Screen ── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-screen__spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-screen__text {
  margin-top: 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-hi);
}

.loading-screen__count {
  margin-top: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--red);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   BUSINESS SEGMENTS
   ============================================================ */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.segment-card {
  background: var(--ink);
  padding: 42px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background-color .35s var(--ease), transform .3s var(--ease);
}

.segment-card:hover {
  background: var(--ink-2);
  transform: translateY(-3px);
}

.segment-code {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--red);
}

.segment-card h3 {
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0;
}

.segment-card p {
  color: var(--text-lo);
  font-size: .95rem;
}

@media (max-width: 900px) {
  .segments-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .segments-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WASH CYCLE SIMULATOR
   ============================================================ */
.cycle-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.cycle-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cycle-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: left;
  border-radius: var(--radius-md);
  transition: border-color .3s, background-color .3s;
}

.cycle-step-num {
  font-family: var(--f-mono);
  font-size: .85rem;
  color: var(--text-lo);
  flex-shrink: 0;
  width: 28px;
}

.cycle-step-body strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .02em;
}

.cycle-step-body span {
  font-size: .85rem;
  color: var(--text-lo);
}

.cycle-step.active {
  border-color: var(--red);
  background: rgba(169, 31, 35, 0.08);
}

.cycle-step.active .cycle-step-num {
  color: var(--red);
}

.cycle-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: radial-gradient(ellipse at 50% 30%, rgba(169, 31, 35, 0.1), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cycle-visual svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 1000px) {
  .cycle-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: rgba(19, 21, 25, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  backdrop-filter: blur(12px);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 20px 40px -12px rgba(169, 31, 35, 0.25);
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-3);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.product-body h3 {
  font-size: 1.3rem;
  text-transform: none;
  letter-spacing: 0;
}

.product-body p {
  color: var(--text-lo);
  font-size: .95rem;
  flex: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  transition: gap .25s;
}

.product-link:hover {
  gap: 14px;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ABOUT FOURWIN
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 4/3.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  color: var(--text-lo);
  margin: 16px 0;
  font-size: 1.05rem;
}

.about-copy h3 {
  text-transform: none;
  letter-spacing: -.01em;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(19, 21, 25, 0.5);
  backdrop-filter: blur(12px);
}

.stat-item {
  text-align: center;
  padding: 44px 24px;
  border-left: 1px solid var(--line);
  transition: background-color .3s;
}

.stat-item:hover {
  background: rgba(169, 31, 35, 0.05);
}

.stat-item:first-child {
  border-left: none;
}

.stat-num {
  display: block;
  font-family: var(--f-mono);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-lo);
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .stat-item:first-child {
    border-top: none;
  }
}

/* ============================================================
   CLIENT MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  margin-bottom: 80px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-track img {
  height: 28px;
  width: auto;
  filter: grayscale(1) brightness(3) opacity(.55);
  transition: filter .3s, transform .3s;
  flex-shrink: 0;
}

.marquee-track img:hover {
  filter: grayscale(0) brightness(1) opacity(1);
  transform: scale(1.1);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.testimonial-card {
  background: var(--ink);
  padding: 38px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
  transition: background-color .3s;
}

.testimonial-card:hover {
  background: var(--ink-2);
}

.testimonial-mark {
  font-family: var(--f-display);
  font-size: 2.8rem;
  color: var(--red);
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-hi);
  line-height: 1.7;
}

.testimonial-meta strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: none;
}

.testimonial-meta span {
  color: var(--red);
  font-size: .8rem;
  font-family: var(--f-mono);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   UTILITY CALCULATOR
   ============================================================ */
.calc-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  backdrop-filter: blur(12px);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.calc-group label {
  display: block;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text-lo);
}

.calc-group select,
.calc-group input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: .98rem;
  font-family: var(--f-body);
  outline: none;
  transition: border-color .25s;
}

.calc-group select:focus,
.calc-group input:focus {
  border-color: var(--red);
}

.calc-group select option {
  background: var(--ink-2);
  color: #fff;
}

.calc-btn {
  margin-top: 10px;
  width: 100%;
}

.calc-result {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-md);
  padding: 32px;
  background: rgba(169, 31, 35, 0.06);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .4s var(--ease), max-height .5s var(--ease), padding .4s var(--ease);
}

.calc-result.show {
  opacity: 1;
  max-height: 900px;
  padding: 32px;
}

.calc-result-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  text-transform: none;
  margin-bottom: 20px;
  line-height: 1.2;
}

.calc-result-title b {
  color: var(--red);
}

.calc-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
  font-size: .94rem;
}

.calc-row span:first-child {
  color: var(--text-lo);
}

.calc-row span:last-child {
  font-family: var(--f-mono);
  font-weight: 600;
  text-align: right;
  color: var(--text-hi);
}

.calc-note {
  margin-top: 18px;
  font-size: .8rem;
  color: var(--text-lo);
  text-align: center;
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calc-panel {
    padding: 32px;
  }
}

/* ============================================================
   CALL TO ACTION (CTA)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px var(--red-glow);
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16), transparent 60%);
  pointer-events: none;
}

.cta-content h3 {
  color: #fff;
  text-transform: none;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.01em;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 14px;
  font-size: 1.05rem;
  max-width: 540px;
}

.cta-btn-wrapper {
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 44px 28px;
  }
  .cta-content p {
    max-width: 100%;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #050506;
  border-top: 1px solid var(--line);
  padding: 80px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer h4 {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 22px;
  font-weight: 600;
}

.footer p {
  color: var(--text-lo);
  font-size: .95rem;
  line-height: 1.7;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list a {
  color: var(--text-lo);
  font-size: .94rem;
  transition: color .25s;
}

.footer-list a:hover {
  color: var(--red);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-lo);
  line-height: 1.55;
}

.contact-list svg {
  flex-shrink: 0;
  color: var(--red);
  margin-top: 3px;
}

.contact-list a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  font-size: .8rem;
  color: var(--text-lo);
  font-family: var(--f-mono);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  transition: all .3s;
  font-weight: 600;
}

.social-links a:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chatbot-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -6px var(--red-glow);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px -8px var(--red-glow);
}

.chatbot-toggle .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00c853;
  font-size: 0;
  border: 2px solid var(--ink);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.chatbot-panel {
  width: 380px;
  max-width: calc(100vw - 32px);
  background: rgba(19, 21, 25, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, .7);
  overflow: hidden;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.chatbot-panel.open {
  display: flex;
}

.chatbot-panel.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  padding: 18px 20px;
  background: var(--red);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

.chatbot-header button {
  font-size: 1.1rem;
  opacity: .85;
  transition: opacity .2s;
}

.chatbot-header button:hover {
  opacity: 1;
}

.chatbot-messages {
  padding: 20px;
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}

.chatbot-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  max-width: 88%;
  line-height: 1.5;
  animation: msg-in .25s var(--ease);
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-message.bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  align-self: flex-start;
  color: var(--text-hi);
}

.chatbot-message.user {
  background: var(--red);
  color: #fff;
  align-self: flex-end;
}

.chatbot-shortcuts {
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.chatbot-shortcuts button {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  font-size: .76rem;
  color: var(--text-lo);
  transition: all .25s;
}

.chatbot-shortcuts button:hover {
  border-color: var(--red);
  color: var(--red);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
}

.chatbot-input input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: .88rem;
  outline: none;
  transition: border-color .25s;
}

.chatbot-input input:focus {
  border-color: var(--red);
}

.chatbot-input button {
  padding: 11px 20px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  transition: background .25s;
}

.chatbot-input button:hover {
  background: var(--red-deep);
}

@media (max-width: 480px) {
  .chatbot-panel {
    width: calc(100vw - 32px);
  }
  .chatbot-float {
    right: 16px;
    bottom: 16px;
  }
}

/* ============================================================
   REVEAL ON SCROLL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: .32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: .40s; }
