@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #050608;
  --surface: #0b0e12;
  --surface-2: #10151b;
  --line: #242a31;
  --line-strong: #3a414a;
  --orange: #ff5a13;
  --orange-light: #ff834c;
  --white: #f7f8fa;
  --muted: #a6adb7;
  --max: 1200px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .4);
  --app-height: 100svh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 132px) 0; }
.section-dark { background: #07090c; }

/* ---------- Labels / Eyebrows ---------- */
.eyebrow, .proof-label {
  color: var(--orange-light);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- Typography ---------- */
.display {
  margin: 0;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(2.8rem, 6.8vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .86;
  text-transform: uppercase;
}
.section-title {
  max-width: 850px;
  margin: 14px 0 0;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .92;
  text-transform: uppercase;
}
.section-lead { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.72; }
.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 16px 38px rgba(255, 90, 19, .25); }
.button-primary:hover { background: #ff6a27; box-shadow: 0 20px 46px rgba(255, 90, 19, .34); }
.button-secondary { border-color: var(--line-strong); background: rgba(255,255,255,.025); }
.button-secondary:hover { border-color: var(--orange); }
:focus-visible { outline: 3px solid rgba(255, 90, 19, .5); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(5,6,8,.88); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 148px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 28px; color: #c1c6cd; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav a:hover { color: var(--orange-light); }
.menu-button { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; border-radius: 3px; }
.mobile-nav {
  position: absolute;
  inset: 76px 0 auto;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  border-bottom: 1px solid var(--line);
  background: #090b0e;
  z-index: 49;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}
.mobile-nav a { display: block; padding: 14px; border-bottom: 1px solid var(--line); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { min-height: min(940px, 100svh); display: grid; align-items: center; padding: 132px 0 64px; background: radial-gradient(circle at 18% 20%, rgba(255,90,19,.16), transparent 31rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); align-items: center; gap: clamp(36px, 7vw, 90px); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .display { max-width: 820px; }
.hero-lead { max-width: 650px; margin: 26px 0 0; color: #c4c9d0; font-size: clamp(1rem, 1.55vw, 1.18rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.hero-visual::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(5,6,8,.88)), linear-gradient(90deg, rgba(5,6,8,.35), transparent); }
.hero-visual::after { content: ''; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-visual-label { position: absolute; z-index: 3; inset: auto 30px 28px; }
.hero-visual-label strong { display: block; margin-top: 7px; font-family: 'Barlow Condensed'; font-size: 1.7rem; text-transform: uppercase; }

/* ---------- Trust Bar ---------- */
.trust-bar { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; border: 1px solid var(--line); background: rgba(10,13,17,.85); }
.metric { min-height: 112px; padding: 22px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: 'Barlow Condensed'; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; text-transform: uppercase; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: .72rem; line-height: 1.45; }

/* ---------- Section Heading ---------- */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proof-card { position: relative; min-height: 290px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 38px); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, #10141a, #090b0e); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.proof-card::after { content: ''; position: absolute; inset: auto -12% -1px auto; width: 46%; height: 2px; background: var(--orange); opacity: .6; }
.proof-card:hover { border-color: #4a3831; }
.proof-card h3 { max-width: 540px; margin: 15px 0 0; font-family: 'Barlow Condensed'; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: .95; text-transform: uppercase; }
.proof-card p { max-width: 570px; margin: 15px 0 0; color: var(--muted); line-height: 1.65; }
.proof-evidence { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: #d9dde2; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.proof-evidence strong { color: var(--orange-light); font-weight: 800; }
.proof-card-photo { min-height: 470px; background-position: center center; background-size: cover; }
.proof-card-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #07090c 0, rgba(7,9,12,.65) 60%, rgba(7,9,12,.3)); }
.proof-card-photo > * { position: relative; z-index: 1; }

/* ---------- Process Animation Section ---------- */
.process { position: relative; background: #000; }
.process-stage {
  position: relative;
  width: 100%;
  height: var(--app-height, 100svh);
  min-height: 620px;
  overflow: hidden;
  background: #000;
}
#explodedCanvas { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.process-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0, rgba(0,0,0,.6) 42%, rgba(0,0,0,.08) 70%, rgba(0,0,0,.45)), linear-gradient(0deg, #000, transparent 20%, transparent 80%, #000); }
.process-content { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; }
.process-copy { width: min(92%, 560px); }
.process-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 0 0 28px; }
.process-progress i { height: 3px; background: #31363c; }
#processo[data-active-stage='1'] .process-progress i:nth-child(-n+1),
#processo[data-active-stage='2'] .process-progress i:nth-child(-n+2),
#processo[data-active-stage='3'] .process-progress i:nth-child(-n+3),
#processo[data-active-stage='4'] .process-progress i:nth-child(-n+4) { background: var(--orange); }
.process-step { position: absolute; max-width: 540px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .28s, transform .28s, visibility .28s; }
.process-step.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.process-step h3 { margin: 15px 0 0; font-family: 'Barlow Condensed'; font-size: clamp(2.7rem, 6vw, 5.7rem); line-height: .86; text-transform: uppercase; }
.process-step p { max-width: 500px; margin: 19px 0 0; color: #c0c5cc; line-height: 1.7; }
.process-proof { display: inline-flex; margin-top: 23px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.process-step .button { margin-top: 24px; pointer-events: auto; }

/* ---------- Factory ---------- */
.factory { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; border: 1px solid var(--line); background: var(--surface); }
.factory-image { min-height: 520px; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08); }
.factory-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 80px); }
.factory-copy h2 { margin: 15px 0 0; font-family: 'Barlow Condensed'; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .9; text-transform: uppercase; }
.factory-copy p { color: var(--muted); line-height: 1.7; }
.feature-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; color: #d7dbe0; }
.feature-list li::before { content: '✓'; color: var(--orange); font-weight: 900; }

/* ---------- Quote / Form ---------- */
.quote { background: radial-gradient(circle at 85% 20%, rgba(255,90,19,.15), transparent 34rem), #07090c; }
.quote-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(40px, 8vw, 110px); }
.quote-note { margin-top: 28px; padding: 20px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.03); color: var(--muted); line-height: 1.6; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); background: #0d1116; box-shadow: var(--shadow); }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #d7dbe1; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.field { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid #303740; border-radius: 3px; background: #080a0d; color: #fff; outline: none; font-size: 16px; /* prevent Safari zoom */ }
.field:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,19,.12); }
.field::placeholder { color: #69717b; }
.quote-form .button { grid-column: 1 / -1; width: 100%; margin-top: 5px; }
.quote-form .button:disabled { cursor: wait; opacity: .65; }
.form-status { grid-column: 1 / -1; min-height: 24px; margin: 0; color: var(--muted); font-size: .82rem; }
.form-status[data-state='error'] { color: #ff9070; }
.form-status[data-state='success'] { color: #75d69b; }

/* ---------- Footer ---------- */
.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: #050608; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.footer-brand img { width: 132px; }
.footer-copy { color: #727a84; font-size: .75rem; line-height: 1.6; text-align: right; }

/* ---------- Thank You ---------- */
.thank-you { min-height: 100svh; display: grid; place-items: center; padding: 40px 0; background: radial-gradient(circle at 50% 15%, rgba(255,90,19,.16), transparent 30rem); }
.thank-card { width: min(100%, 760px); padding: clamp(34px, 7vw, 76px); border: 1px solid var(--line); background: #0b0e12; text-align: center; box-shadow: var(--shadow); }
.thank-card .brand { display: inline-block; margin-bottom: 38px; }
.thank-card h1 { margin: 16px 0; font-family: 'Barlow Condensed'; font-size: clamp(3rem, 8vw, 6rem); line-height: .86; text-transform: uppercase; }
.thank-card p { max-width: 580px; margin: 18px auto 0; color: var(--muted); line-height: 1.7; }
.thank-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ==========================================================================
   RESPONSIVE — Tablet landscape / small desktop (901–1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-grid { gap: clamp(28px, 5vw, 60px); }
}

/* ==========================================================================
   RESPONSIVE — Tablet / ≤ 900px
   ========================================================================== */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero { min-height: auto; }
  .hero-grid, .factory, .quote-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 11; max-height: 380px; }
  .hero-visual img { object-fit: contain; object-position: center center; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .factory-image { min-height: 340px; }
  .section-heading { display: block; }
  .proof-card-photo { min-height: 380px; }

  /* Process section tablet */
  .process-stage { min-height: 580px; }
}

/* ==========================================================================
   RESPONSIVE — Large phone / small tablet (621–768px)
   ========================================================================== */
@media (max-width: 768px) {
  .hero { padding: 100px 0 48px; }
  .hero-visual { max-height: 360px; }
  .hero-visual img { object-fit: contain; object-position: center center; }
  .hero-visual::before { background: linear-gradient(180deg, transparent 50%, rgba(5,6,8,.85)), linear-gradient(90deg, rgba(5,6,8,.25), transparent); }
  .hero-visual::after { inset: 10px; }
  .hero-visual-label { inset: auto 20px 20px; }
  .hero-visual-label strong { font-size: 1.4rem; }

  /* Process mobile layout — text centered vertically */
  .process-stage { height: var(--app-height, 100dvh); min-height: 560px; }
  .process-shade {
    background:
      linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.4) 100%);
  }
  .process-content { align-items: center; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .process-copy { width: min(100%, 480px); }
  .process-step .proof-label { font-size: .75rem; }
  .process-step h3 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .process-step p { font-size: 1rem; line-height: 1.65; max-width: 420px; }
  .process-proof { font-size: .72rem; padding: 11px 14px; }
  .process-step .button { font-size: .74rem; padding: 14px 20px; min-height: 50px; }

  .factory-image { min-height: 280px; }
  .factory-copy { padding: 28px; }
}

/* ==========================================================================
   RESPONSIVE — Phone (≤ 620px)
   ========================================================================== */
@media (max-width: 620px) {
  .container { width: min(100% - 24px, var(--max)); }
  .section { padding: 64px 0; }
  .hero { padding-top: 100px; padding-bottom: 40px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { aspect-ratio: 3 / 4; max-height: none; }
  .hero-visual img { object-fit: contain; object-position: center center; }
  .hero-visual::after { inset: 8px; }
  .hero-visual-label { inset: auto 16px 16px; }
  .hero-visual-label strong { font-size: 1.2rem; }

  .trust-bar { margin-top: 28px; }
  .metric { min-height: 96px; padding: 16px; }

  .proof-card { min-height: auto; padding: 22px; }
  .proof-card h3 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  .proof-card-photo { min-height: 320px; background-position: center 40%; }

  /* Process — center text vertically */
  .process-stage { min-height: 580px; }
  .process-content { align-items: center; padding-bottom: env(safe-area-inset-bottom, 0px); padding-top: 0; }
  .process-step .proof-label { font-size: .72rem; }
  .process-step h3 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .process-step p { font-size: .96rem; line-height: 1.6; max-width: 360px; }
  .process-proof { font-size: .7rem; padding: 10px 13px; }
  .process-step .button { font-size: .72rem; padding: 14px 18px; min-height: 48px; }

  .quote-form { grid-template-columns: 1fr; padding: 20px; }
  .form-field.full, .quote-form .button, .form-status { grid-column: auto; }

  .footer-grid { align-items: start; flex-direction: column; }
  .footer-copy { text-align: left; }
}

/* ==========================================================================
   RESPONSIVE — Small phone (≤ 430px)
   ========================================================================== */
@media (max-width: 430px) {
  .container { width: min(100% - 20px, var(--max)); }
  .hero { padding-top: 92px; }
  .display { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-lead { font-size: .92rem; }
  .hero-visual { max-height: none; aspect-ratio: 3 / 4; }
  .hero-visual img { object-fit: contain; object-position: center center; }

  .trust-bar { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; padding: 14px 16px; }
  .metric:last-child { border-bottom: 0; }
  .metric:nth-child(2) { border-right: 0; }

  .section-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  .proof-card { padding: 18px; }
  .proof-card h3 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .proof-evidence { flex-direction: column; align-items: flex-start; gap: 6px; }

  .proof-card-photo { min-height: 280px; }

  /* Process — keep centered */
  .process-stage { min-height: 560px; }
  .process-content { align-items: center; }
  .process-step .proof-label { font-size: .7rem; }
  .process-step h3 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .process-step p { font-size: .94rem; max-width: 320px; }
  .process-proof { font-size: .68rem; padding: 9px 12px; }
  .process-step .button { font-size: .7rem; padding: 13px 16px; }

  .factory-image { min-height: 220px; }
  .factory-copy { padding: 22px; }
  .factory-copy h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
}

/* ==========================================================================
   RESPONSIVE — Tiny phone (≤ 375px)
   ========================================================================== */
@media (max-width: 375px) {
  .container { width: min(100% - 16px, var(--max)); }
  .hero { padding-top: 86px; }
  .display { font-size: clamp(2rem, 9.5vw, 2.8rem); }
  .hero-visual { max-height: none; }
  .hero-lead { font-size: .88rem; margin-top: 18px; }

  .section { padding: 56px 0; }
  .section-title { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }

  .metric strong { font-size: 1.5rem; }
  .metric span { font-size: .68rem; }

  .proof-card h3 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .proof-card p { font-size: .88rem; }

  .process-stage { min-height: 520px; }
  .process-step .proof-label { font-size: .68rem; }
  .process-step h3 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .process-step p { font-size: .9rem; }
  .process-content { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}

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

  .process-stage {
    height: auto;
    min-height: auto;
  }
  .process-step {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }
  .process-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .process-content {
    height: auto;
    padding: 60px 0;
  }
  #explodedCanvas {
    position: relative;
    height: 300px;
    margin-bottom: 32px;
  }
}
