/* ==========================================================
   Blaze Quest — site styles
   Brand colours from BlazeQuest-Logo-Kit/README.txt
   Theme: <html data-theme="light|dark"> (set in <head> script)
   ========================================================== */

/* Archivo (SIL Open Font License), self-hosted so visitors' browsers never contact Google */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #E3242B;
  --red-dark: #C11C22;
  --orange: #FF6A3D;
  --amber: #FFA24C;
  --cream: #F6F2EB;
  --night: #0A0A0A;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --wrap: 1180px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  /* Light theme */
  --bg: #FAF8F5;
  --bg-alt: #F3EFE8;
  --surface: #FFFFFF;
  --surface-2: #F7F4EF;
  --text: #111111;
  --muted: #5E5850;
  --line: rgba(17, 17, 17, .09);
  --line-strong: rgba(17, 17, 17, .2);
  --header-bg: rgba(255, 255, 255, .72);
  --grid-line: rgba(17, 17, 17, .055);
  --ember-opacity: .22;
  --input-bg: #FBFAF7;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -12px rgba(17, 17, 17, .12);
  --ok: #1E7A3E;
  --err: #C11C22;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-alt: #0F0E0D;
  --surface: #141312;
  --surface-2: #1B1A18;
  --text: #F6F2EB;
  --muted: #9A948C;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .18);
  --header-bg: rgba(20, 19, 18, .6);
  --grid-line: rgba(255, 255, 255, .05);
  --ember-opacity: .45;
  --input-bg: #0F0E0D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 40px -12px rgba(0, 0, 0, .6);
  --ok: #4ADE80;
  --err: #FF7A7F;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font: 600 16px/1 var(--font);
  color: #fff;
  background: linear-gradient(180deg, #EA3A40 0%, var(--red) 55%, var(--red-dark) 100%);
  border: 0; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px -10px rgba(227, 36, 43, .7);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 40px -10px rgba(227, 36, 43, .85); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow, .card-cta:hover .arrow, a.product:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  color: var(--text); background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--text); }
.btn-small { padding: 11px 18px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.text-fire {
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber), var(--orange), var(--red));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: fire-shift 6s linear infinite;
}
@keyframes fire-shift { to { background-position: 200% 0; } }

/* ---------- Header (floating glass pill) ---------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  padding: 0 16px;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  height: 72px; padding: 0 12px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: height .35s var(--ease-out), background .4s, border-color .4s;
}
.site-header.scrolled .header-inner { height: 62px; }

.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; transition: height .35s var(--ease-out); }
.site-header.scrolled .brand img { height: 38px; }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted);
  padding: 9px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--line); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav .nav-contact { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  cursor: pointer; transition: background .2s, transform .4s var(--ease-out);
}
.theme-toggle:hover { background: var(--line); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease-out); }
.i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .i-sun { opacity: 1; transform: none; }
[data-theme="dark"] .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 190px 0 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.ember {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: var(--ember-opacity);
  transition: opacity .4s;
}
.ember-1 {
  width: 620px; height: 620px; left: 50%; top: -12%;
  margin-left: -310px;
  background: radial-gradient(circle, var(--red) 0%, transparent 65%);
  animation: drift-1 14s ease-in-out infinite alternate;
}
.ember-2 {
  width: 440px; height: 440px; left: 58%; top: 20%;
  background: radial-gradient(circle, var(--amber) 0%, transparent 65%);
  animation: drift-2 18s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(-80px, 60px) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-220px, -40px) scale(.9); } }

.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  background: var(--header-bg);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(48px, 9vw, 120px); font-weight: 900; letter-spacing: -0.045em; line-height: .98;
}
.lead { font-size: 19px; color: var(--muted); }
.hero .lead { margin-top: 28px; max-width: 36em; font-size: clamp(17px, 1.6vw, 20px); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* Marquee */
.marquee {
  margin-top: 96px; padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: 18px; font-weight: 600; color: var(--muted);
}
.marquee li::after { content: "✦"; color: var(--red); font-size: 12px; margin: 0 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero entrance (delayed further when the intro plays) */
.hero-anim { animation: rise .9s var(--ease-out) both; animation-delay: calc(.1s + var(--d, 0) * .1s); }
.intro .hero-anim { animation-delay: calc(2.6s + var(--d, 0) * .1s); }
.intro.intro-skip .hero-anim { animation-delay: calc(var(--d, 0) * .08s); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Intro splash ---------- */
.intro-screen { display: none; }
.intro .intro-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--night); color: var(--cream);
  cursor: pointer; overflow: hidden;
  animation: intro-out .9s var(--ease-io) 2.25s forwards;
}
.intro.intro-skip .intro-screen { animation: intro-out .6s var(--ease-io) forwards; }
@keyframes intro-out {
  to { transform: translateY(-100%); visibility: hidden; }
}
.intro-glow {
  position: absolute; left: 50%; top: 50%;
  width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax;
  background: radial-gradient(circle, rgba(227, 36, 43, .35) 0%, rgba(255, 106, 61, .12) 30%, transparent 60%);
  animation: glow-in 1.6s var(--ease-out) .3s both;
}
@keyframes glow-in { from { opacity: 0; transform: scale(.3); } }
.intro-inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  animation: inner-out .5s ease-in 2s forwards;
}
@keyframes inner-out { to { opacity: 0; transform: translateY(-24px) scale(.97); } }
.intro-logo { width: min(78vw, 520px); height: auto; overflow: visible; }
.i-mountain { animation: mountain-in .8s var(--ease-out) .15s both; }
@keyframes mountain-in { from { opacity: 0; transform: translateY(40px); } }
.i-flame {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: flame-in .7s cubic-bezier(.34, 1.56, .64, 1) .6s both, flicker 1.4s ease-in-out 1.3s infinite;
}
@keyframes flame-in { from { transform: scale(0); opacity: 0; } }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  30% { transform: scale(.97, 1.06) skewX(-2deg); }
  60% { transform: scale(1.02, .97) skewX(1.5deg); }
}
.i-word { animation: word-in .9s var(--ease-out) .95s both; }
@keyframes word-in { from { opacity: 0; transform: translateX(-24px); filter: blur(10px); } }
.intro-tag {
  margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: #9A948C; text-align: center;
  animation: tag-in .8s var(--ease-out) 1.35s both;
}
@keyframes tag-in { from { opacity: 0; letter-spacing: .6em; } }
.intro-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
  transform-origin: left; animation: bar-in 1.9s var(--ease-io) .2s both;
}
@keyframes bar-in { from { transform: scaleX(0); } }

/* ---------- Sections ---------- */
.section { padding: 130px 0; position: relative; }
.section-alt { background: var(--bg-alt); transition: background-color .4s; }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section h2 { font-size: clamp(38px, 5.5vw, 64px); font-weight: 900; letter-spacing: -0.04em; }
.section-sub { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), border-color .3s, background-color .4s, box-shadow .3s;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal].in.glow:hover, .js .card-cta[data-reveal].in:hover { transform: translateY(-3px); transition-delay: 0s; }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .3s, transform .4s var(--ease-out), background-color .4s, box-shadow .3s;
}
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 16px; }

/* Cursor spotlight (JS sets --mx / --my) */
.glow::before, .glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.glow::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 36, 43, .09), transparent 45%);
}
.glow::after {
  inset: -1px; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 36, 43, .75), transparent 60%);
  -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);
}
.glow:hover::before, .glow:hover::after { opacity: 1; }
.glow:hover { transform: translateY(-3px); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 44px;
  display: grid; place-items: center;
  color: var(--red);
  background: rgba(227, 36, 43, .1);
  box-shadow: inset 0 0 0 1px rgba(227, 36, 43, .2);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-num {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--red);
  padding: 5px 10px; border-radius: 8px; background: rgba(227, 36, 43, .1); margin-bottom: 36px;
}
.mini-tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tags li { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.card-cta {
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; color: #fff; border: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 162, 76, .5), transparent 55%),
    linear-gradient(135deg, var(--red), #A3141A);
  min-height: 240px; overflow: hidden;
}
.card-cta p { color: rgba(255, 255, 255, .8); }
.card-cta:hover { box-shadow: 0 20px 50px -15px rgba(227, 36, 43, .6); }
.arrow-link { margin-top: 22px; font-weight: 700; display: inline-flex; gap: 8px; }
.arrow-link .arrow { transition: transform .25s var(--ease-out); }

/* Build with us */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-card { display: flex; flex-direction: column; padding: 32px; }
.partner-card h3 { font-size: 26px; margin: 22px 0 10px; }
.partner-label {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); padding: 6px 12px; border-radius: 999px; background: rgba(227, 36, 43, .1);
}
.partner-card.featured {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 106, 61, .16), transparent 55%),
    var(--surface);
  border-color: rgba(227, 36, 43, .45);
  box-shadow: 0 24px 60px -30px rgba(227, 36, 43, .55);
}
.partner-card.featured .partner-label { color: #fff; background: linear-gradient(135deg, var(--red), var(--orange)); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(227, 36, 43, .12);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px;
  border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.partner-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 40px; }
.partner-cta p { color: var(--muted); font-size: 15px; }
.idea-link {
  display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--red); text-decoration: none;
}
.idea-link .arrow { transition: transform .25s var(--ease-out); }
.idea-link:hover .arrow { transform: translateX(4px); }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--text); }

/* Legal / long-form text */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px) !important; letter-spacing: -0.02em !important; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--red); }

/* Process */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative;
}
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
  background: linear-gradient(90deg, var(--red), var(--line-strong) 40%, var(--line));
}
.process li { position: relative; padding-top: 44px; }
.process li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--red);
  box-shadow: 0 0 0 5px var(--bg-alt), 0 0 18px rgba(227, 36, 43, .6);
}
.step {
  display: block; font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  margin-bottom: 18px;
}
.process h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 16px; }

/* ---------- Products ---------- */
.grid { display: grid; gap: 16px; }
.products { grid-template-columns: repeat(3, 1fr); }
.product {
  display: flex; flex-direction: column;
  min-height: 290px; padding: 28px;
  color: var(--text); text-decoration: none;
}
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.product-icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-weight: 900; font-size: 20px;
}
.product-icon:has(img) { background: var(--cream); }
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface-2);
}
.badge-live { color: #15803D; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: blink 2s ease-in-out infinite; }
.badge-soon { color: var(--red-dark); background: rgba(227, 36, 43, .08); border-color: rgba(227, 36, 43, .3); }
[data-theme="dark"] .badge-live { color: #86EFAC; }
[data-theme="dark"] .badge-soon { color: #FF8A8E; }
@keyframes blink { 50% { opacity: .4; } }
.product h3 { font-size: 24px; margin-bottom: 0; }
.product .domain { font-size: 14px; color: var(--muted); margin-top: 6px; }
.product p.desc { margin-top: 14px; flex: 1; }
.product .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.product .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.product .visit { margin-top: 20px; font-weight: 700; font-size: 15px; color: var(--red); display: inline-flex; gap: 6px; }
.product .visit .arrow { transition: transform .25s var(--ease-out); }

.product-more {
  border-style: dashed; border-color: var(--line-strong); background: transparent;
  justify-content: center;
}
.product-more p { margin-top: 10px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-lead { margin-top: 24px; font-size: 19px; color: var(--muted); max-width: 32em; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px; margin-top: 44px; }
.stats strong {
  display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text) 30%, var(--muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.points li { padding: 22px 24px 22px 56px; color: var(--muted); font-size: 16px; }
.points li::before {
  content: ""; position: absolute; left: 24px; top: 29px;
  width: 11px; height: 11px; background: var(--red); border-radius: 3px; transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(227, 36, 43, .6);
}
.points strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact .lead { margin-top: 20px; }
.contact-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span:not(.label) { font-size: 21px; font-weight: 600; }
.contact-list a { text-decoration: none; justify-self: start; background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat; transition: color .2s; }
.contact-list a:hover { color: var(--red); }
.contact-list .plain { font-size: 16px !important; font-weight: 400 !important; color: var(--muted); line-height: 1.55; }

.contact-form {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 36px; display: grid; gap: 18px;
  box-shadow: var(--shadow);
}
.contact-form::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(227, 36, 43, .6), transparent 35%);
  -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);
}
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--text);
  background: var(--input-bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background-color .4s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input[type="file"] { padding: 10px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: 600 14px/1 var(--font); color: var(--bg); background: var(--text);
  border: 0; border-radius: 999px; padding: 9px 16px; margin-right: 12px; cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 36, 43, .15);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ---------- Careers ---------- */
.hero-short { min-height: auto; padding-bottom: 120px; }
.chips { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 500; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; color: var(--muted); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -3px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 18px -6px rgba(227, 36, 43, .7);
}
.steps strong { color: var(--text); }
.fine { margin-top: 32px; font-size: 14px; color: var(--muted); border-left: 3px solid var(--red); padding-left: 14px; }

/* ---------- Footer (always dark) ---------- */
.site-footer {
  background: var(--night); color: #9A948C;
  padding: 90px 0 44px; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-big {
  font-size: clamp(44px, 12vw, 152px); font-weight: 900; line-height: .8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(246, 242, 235, .26);
  white-space: nowrap; user-select: none; margin-bottom: 64px;
}
.footer-big span { -webkit-text-stroke-color: rgba(227, 36, 43, .5); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 52px; width: auto; }
.footer-meta { font-size: 14px; text-align: right; display: grid; gap: 4px; }
.footer-meta a { color: var(--cream); text-decoration: none; }
.footer-meta a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento, .products { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; }
  .card-cta { grid-column: span 2; min-height: 180px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process::before { display: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease-out);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav .nav-contact { display: block; margin-top: 6px; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--red), var(--red-dark)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header { top: 10px; padding: 0 10px; }
  .header-inner, .site-header.scrolled .header-inner { height: 60px; padding: 0 8px 0 16px; }
  .brand img, .site-header.scrolled .brand img { height: 34px; }
  .header-cta { display: none; }
  .theme-toggle, .nav-toggle { width: 40px; height: 40px; }

  .hero { padding-top: 140px; min-height: auto; }
  .hero-cta { flex-direction: column; align-self: stretch; }
  .marquee { margin-top: 72px; padding: 20px 0; }
  .marquee li { font-size: 16px; }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .bento, .products { grid-template-columns: 1fr; }
  .span-2, .card-cta { grid-column: auto; }
  .card { padding: 24px; }
  .card-icon { margin-bottom: 32px; }
  .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .contact-form .btn { justify-self: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
