/* =====================================================================
   AUTO BAIRRADA — Premium Automotive Consultancy
   Editorial luxury · dark cinematic · gold accent
   ===================================================================== */

:root {
  /* palette */
  --bg:        #0a0a0b;
  --bg-2:      #111114;
  --bg-3:      #18181d;
  --ink:       #f5f1e8;
  --ink-dim:   #a8a39a;
  --ink-mute:  #6f6b63;
  --line:      rgba(245, 241, 232, 0.08);
  --line-2:    rgba(245, 241, 232, 0.16);
  --gold:      #D21215;
  --gold-2:    #ff6b6d;
  --gold-soft: rgba(210, 18, 21, 0.14);
  --gold-soft-2: rgba(255, 107, 109, 0.10);
  --gold-glow: rgba(210, 18, 21, 0.26);
  --gold-glow-strong: rgba(255, 107, 109, 0.34);
  --burgundy:  #6b2a2a;

  /* typography */
  --serif:    'Fraunces', 'Times New Roman', serif;
  --sans:     'Manrope', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Courier New', monospace;

  /* sizing */
  --container: 1280px;
  --container-narrow: 880px;

  /* easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

/* Custom cursor desativado — cursor nativo sempre visivel */
.cursor { display: none !important; }

img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: #0a0a0b; }

/* =====================================================================
   CUSTOM CURSOR
   ===================================================================== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
body.cursor-active .cursor { opacity: 1; }
.cursor--dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor--ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(245, 241, 232, 0.55);
  border-radius: 50%;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.2s, background 0.2s;
}
body.cursor-hover .cursor--ring {
  width: 60px; height: 60px;
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold-soft-2), transparent 72%);
}
body.cursor-hover .cursor--dot {
  width: 4px; height: 4px;
}

/* =====================================================================
   LOADER
   ===================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner {
  text-align: center;
  position: relative;
}
.loader__logo {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  transform: rotate(-90deg);
}
.loader__ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.4s var(--ease-out);
}
.loader__brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
}
.loader__ab {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  font-style: italic;
}
.loader__name {
  font-size: 11px;
  letter-spacing: 0.5em;
  font-weight: 600;
  color: var(--ink-dim);
}
.loader__progress {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.loader__progress i { font-style: normal; opacity: 0.5; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  background: rgba(10, 10, 11, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 12px 40px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s;
}
.nav__brand:hover .nav__logo-img { opacity: 0.8; }
.nav__brand-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: linear-gradient(145deg, rgba(255, 107, 109, 0.08), rgba(210, 18, 21, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 0 var(--gold-glow);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  letter-spacing: 0;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.nav__brand:hover .nav__brand-mark {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--bg);
  box-shadow: 0 12px 28px -14px var(--gold-glow-strong);
  transform: translateY(-1px);
}
.nav__brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav__brand-text em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  color: var(--ink-dim);
  transition: color 0.25s;
  padding: 6px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 107, 109, 0.08), rgba(210, 18, 21, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.nav__cta:hover {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--bg);
  box-shadow: 0 14px 32px -18px var(--gold-glow-strong);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  width: 38px; height: 38px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.nav__burger span:first-child { top: 14px; }
.nav__burger span:last-child  { top: 22px; }
.nav__burger.is-open span:first-child { top: 18px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child  { top: 18px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav.is-scrolled { padding: 10px 20px; }
  .nav__cta span { display: none; }
  .nav__cta { padding: 8px; width: 38px; height: 38px; justify-content: center; border-radius: 50%; }
  .nav__brand-text { display: none; }
}

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }
.nav-drawer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 100%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
}
.nav-drawer nav a { color: var(--ink); transition: color 0.2s; }
.nav-drawer nav a:hover { color: var(--gold); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  /* tweakable text controls — overridden by tweak panel via inline style */
  --hero-title-scale: 0.58;
  --hero-sub-scale: 0.99;
  --hero-eyebrow-scale: 0.96;
  --hero-content-y: -20px;
  --hero-content-max: 1200px;
  --hero-text-max: 13.5ch;
  --hero-sub-max: 500px;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--gold-soft-2), transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(107, 42, 42, 0.10), transparent 70%),
    var(--bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  z-index: 2;
  opacity: 0.4;
}

.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hero__marquee {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 300;
  font-style: italic;
  color: rgba(245, 241, 232, 0.04);
  letter-spacing: -0.04em;
  animation: marquee 60s linear infinite;
}
.marquee__track span { display: inline-block; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: var(--hero-content-max, 1200px);
  margin: 0 auto;
  width: 100%;
  transform: translateY(var(--hero-content-y, 0px));
}

/* On wide viewports, keep text on the left half so the 3D car can breathe on the right */
@media (min-width: 1100px) {
  .hero__title { max-width: var(--hero-text-max, 12ch); }
  .hero__sub   { max-width: var(--hero-sub-max, 460px); }
  .hero__eyebrow,
  .hero__actions,
  .hero__meta { max-width: 720px; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: calc(11px * var(--hero-eyebrow-scale, 1));
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.02);
  margin-bottom: 36px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 14px var(--gold-glow-strong);
  animation: pulse 2s var(--ease-inout) infinite;
}
@keyframes pulse {
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--serif);
  font-size: calc(clamp(48px, 9vw, 144px) * var(--hero-title-scale, 1));
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.hero__title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.hero__title [data-reveal-char] {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.hero__sub {
  max-width: 540px;
  font-size: calc(clamp(16px, 1.4vw, 19px) * var(--hero-sub-scale, 1));
  line-height: 1.55;
  color: var(--ink-dim);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 80px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta strong {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero__meta em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--mono);
}

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 100%; height: 30%;
  background: var(--ink);
  animation: scrollDown 2s var(--ease-inout) infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

@media (max-width: 720px) {
  .hero { padding: 100px 20px 60px; }
  .hero__title { font-size: clamp(40px, 14vw, 64px); }
  .hero__meta { gap: 32px; }
  .hero__scroll { display: none; }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
  white-space: nowrap;
}
.btn--full { width: 100%; justify-content: center; }
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--bg);
  box-shadow: 0 12px 30px -18px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #ff7e7f, var(--gold));
  box-shadow: 0 16px 38px -16px var(--gold-glow-strong);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* =====================================================================
   SECTIONS — common
   ===================================================================== */
.section {
  position: relative;
  padding: 140px 40px;
}
@media (max-width: 720px) {
  .section { padding: 80px 20px; }
}
.container { max-width: var(--container); margin: 0 auto; }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; }

.section__head {
  margin-bottom: 80px;
}
.section__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.section__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.section__title span {
  display: block;
  overflow: hidden;
}
[data-reveal-line] > * { display: inline-block; }

.section__lede {
  max-width: 640px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
  font-weight: 400;
}
.section__lede strong { color: var(--ink); font-weight: 600; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   ABOUT / PILLARS
   ===================================================================== */
.section--about {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(210, 18, 21, 0.05), transparent),
    var(--bg);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: background 0.4s var(--ease-out);
}
.pillar:hover { background: var(--bg-2); }
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease-out);
}
.pillar:hover::before { width: 100%; }

.pillar__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 32px;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.pillar p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* =====================================================================
   PROCESS
   ===================================================================== */
.section--process {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.section--process::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  filter: blur(60px);
  opacity: 0.5;
}

.process {
  position: relative;
}

.process__path {
  display: none; /* Will be drawn between cards on desktop */
  position: absolute;
  top: 80px;
  left: 0; right: 0;
  width: 100%;
  height: 200px;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 901px) {
  .process__path { display: block; }
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) { .process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .process__steps { grid-template-columns: 1fr; gap: 16px; } }

.step {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 32px 28px 80px;
  border-radius: 4px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
  overflow: hidden;
  min-height: 280px;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gold-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(210, 18, 21, 0.28);
  background: #1d1d22;
}
.step:hover::before { opacity: 1; }

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.step h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.step__icon {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 32px; height: 32px;
  color: var(--gold);
  opacity: 0.5;
}

/* =====================================================================
   STOCK
   ===================================================================== */
.section--stock {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.car-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-8px);
  border-color: rgba(210, 18, 21, 0.32);
}

.car-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1f, #0e0e12);
  overflow: hidden;
}
.car-card__media svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transition: transform 0.7s var(--ease-out);
}
.car-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), opacity 0.3s;
}
.car-card:hover .car-card__media svg { transform: scale(1.05); }
.car-card:hover .car-card__image { transform: scale(1.05); }

.car-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 999px;
  z-index: 2;
}
.car-card__badge--import {
  border-color: rgba(210, 18, 21, 0.38);
  color: var(--gold);
}

.car-card__price {
  position: absolute;
  bottom: 16px; right: 16px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.car-card__body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.car-card__brand {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.car-card__model {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.car-card__version {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.car-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.car-card__spec {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-dim);
}

.stock-cta { text-align: center; }

/* =====================================================================
   STATS BAR
   ===================================================================== */
.section--stats {
  padding: 80px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}
.stat {
  text-align: center;
  position: relative;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-block;
}
.stat i {
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold);
  font-weight: 300;
}
.stat em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 14px;
}

/* =====================================================================
   SIMULATORS
   ===================================================================== */
.section--simulators {
  background: var(--bg);
}

.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  background: var(--bg-2);
  margin-bottom: 40px;
  width: 100%;
  max-width: 720px;
}
.sim-tab {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 20px;
  border-radius: 2px;
  color: var(--ink-dim);
  transition: background 0.3s, color 0.3s;
  text-align: left;
}
.sim-tab__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.6;
}
.sim-tab__label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sim-tab.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 30px -20px var(--gold-glow-strong);
  color: var(--bg);
}
.sim-tab.is-active .sim-tab__num { color: var(--bg); opacity: 0.7; }
.sim-tab:hover:not(.is-active) { color: var(--ink); }

.sim-panels { position: relative; }
.sim-panel {
  display: none;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding: 48px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sim-panel.is-active { display: grid; }

@media (max-width: 1100px) {
  .sim-panel.is-active { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
}

.sim-panel__intro h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.sim-panel__intro p {
  font-size: 15px;
  color: var(--ink-dim);
  margin-bottom: 24px;
  line-height: 1.55;
}
.sim-panel__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sim-panel__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-dim);
}
.sim-panel__bullets li::before {
  content: '→';
  color: var(--gold);
  font-weight: 600;
  margin-top: -1px;
}

.sim-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-2);
}
.field textarea { font-family: var(--sans); resize: vertical; min-height: 100px; }
.field small {
  font-size: 11px;
  color: var(--ink-mute);
}
.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-3);
  height: 4px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  margin: 14px 0;
}
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 50%;
  border: 3px solid var(--bg-3);
  box-shadow: 0 0 18px -6px var(--gold-glow-strong);
  cursor: pointer;
  transition: transform 0.2s;
}
.field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.field input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 50%;
  border: 3px solid var(--bg-3);
  box-shadow: 0 0 18px -6px var(--gold-glow-strong);
  cursor: pointer;
}
.field output {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.sim-result {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.sim-result::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.sim-result__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sim-result__head span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.sim-result__head small {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.sim-result__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.sim-result__rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  gap: 12px;
}
.sim-result__rows > div:last-child { border-bottom: 0; }
.sim-result__rows label {
  font-size: 13px;
  color: var(--ink-dim);
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.sim-result__rows strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.sim-result__rows .big { padding-top: 14px; }
.sim-result__rows .big label {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.sim-result__rows .big strong {
  font-size: 28px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sim-result--placeholder { border-style: dashed; }
.sim-result--placeholder::before { display: none; }
.sim-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-mute);
  min-height: 200px;
}
.sim-placeholder svg { color: var(--gold); opacity: 0.4; }
.sim-placeholder p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.section--faq {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.faq {
  display: flex;
  flex-direction: column;
}
.faq__item {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.faq__item[open] { background: linear-gradient(90deg, rgba(210, 18, 21, 0.05), rgba(255, 107, 109, 0.02)); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }
.faq__item summary i {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.faq__item summary i::before, .faq__item summary i::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  transition: transform 0.4s var(--ease-out);
}
.faq__item summary i::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.faq__item summary i::after  { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.faq__item[open] summary i { border-color: var(--gold); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) scaleY(0); }

.faq__body {
  padding: 0 0 28px;
  max-width: 720px;
}
.faq__body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.section--contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.section--contact::before {
  content: '';
  position: absolute;
  top: 50%; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; } }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 600px) { .contact-form { padding: 28px 24px; } }

.contact-form__note {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 4px;
}

.contact-form.is-success {
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.contact-form__success-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.3s, background 0.3s;
}
.contact-card:hover { border-color: rgba(210, 18, 21, 0.28); background: linear-gradient(180deg, rgba(255, 107, 109, 0.04), var(--bg-3)); }
.contact-card__label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.contact-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.contact-card p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 8px;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.contact-card a:hover { color: var(--gold-2); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(210, 18, 21, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, #0a0a0c 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* CTA banner */
.footer__cta {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  padding: 56px 40px;
}
.footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__cta-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer__cta-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  max-width: 600px;
}
.footer__cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Main grid */
.footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 64px 0 48px;
}
.footer__brand-col { display: flex; flex-direction: column; gap: 18px; }
.footer__brand img { height: 42px; }
.footer__brand-text {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 380px;
  margin: 0;
}
.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.footer__links a { transition: color 0.3s; }
.footer__links a:hover { color: var(--gold); }

.footer__col-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-family: var(--mono);
  font-weight: 500;
}
.footer__address {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.7;
  margin: 0 0 16px;
}
.footer__maps-btn,
.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  margin: 0 0 8px 0;
  width: fit-content;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.footer__maps-btn:hover,
.footer__contact:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.05);
  border-color: rgba(200, 162, 85, 0.35);
  transform: translateX(2px);
}
.footer__contact { display: flex; }
.footer__contact--whatsapp { color: #5cd3a0; border-color: rgba(92, 211, 160, 0.18); }
.footer__contact--whatsapp:hover { color: #7ee0b4; border-color: rgba(92, 211, 160, 0.4); }
.footer__legal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__legal-list a {
  font-size: 13px;
  color: var(--ink-dim);
  transition: color .25s, padding-left .25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__legal-list a:hover { color: var(--gold); padding-left: 4px; }
.footer__complaints { display: inline-flex; align-items: center; gap: 8px; }

/* PRR band */
.footer__prr-band {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer__prr-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.footer__prr { flex: 1; display: flex; justify-content: flex-end; }
.footer__prr img {
  display: block;
  max-width: 100%;
  max-height: 36px;
  height: auto;
  width: auto;
  opacity: 0.7;
  transition: opacity .25s;
}
.footer__prr img:hover { opacity: 1; }

.footer__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin-bottom: 20px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__bottom small { font-size: inherit; }
.footer__tagline { color: var(--ink-mute); opacity: 0.7; text-align: center; flex: 1; }
.footer__admin-link {
  color: var(--ink-mute);
  opacity: 0.6;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s, opacity 0.3s;
}
.footer__admin-link:hover { color: var(--gold); opacity: 1; }
.footer__dev {
  text-align: center;
  font-size: 10px;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 0 24px;
  opacity: 0.45;
}
.footer__dev a {
  color: var(--gold);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity .25s;
}
.footer__dev a:hover { opacity: 1; }

@media (max-width: 1024px) {
  .footer__main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
}
@media (max-width: 600px) {
  .footer__cta { padding: 40px 20px; }
  .footer__cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__main { grid-template-columns: 1fr; gap: 36px; }
  .footer__prr-band { padding: 18px 20px; gap: 14px; flex-direction: column; align-items: flex-start; }
  .footer__prr { justify-content: flex-start; width: 100%; }
  .footer__bottom { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__tagline { text-align: left; flex: none; }
}

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

/* =====================================================================
   COOKIE BAR + WA FAB (Fase 4)
   ===================================================================== */

/* WhatsApp FAB */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 998; width: 48px; height: 48px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,0.35), 0 2px 6px rgba(37,211,102,0.35); transition: transform .25s, box-shadow .25s; opacity: 0.92; }
.wa-fab:hover { transform: translateY(-2px) scale(1.04); opacity: 1; box-shadow: 0 10px 22px rgba(0,0,0,0.4), 0 3px 10px rgba(37,211,102,0.5); }
.wa-fab svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .wa-fab { right: 14px; bottom: 14px; width: 46px; height: 46px; } }

/* Cookie consent bar */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999; background: rgba(15,15,18,0.96); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.55); padding: 16px 20px; transform: translateY(120%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-bar[data-visible="1"] { transform: translateY(0); opacity: 1; }
.cookie-bar__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.cookie-bar__text { font-size: 13px; color: var(--ink-dim); margin: 0; flex: 1 1 320px; line-height: 1.55; }
.cookie-bar__text a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(212,175,55,0.4); }
.cookie-bar__actions { display: flex; gap: 8px; }
.cookie-bar__btn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 16px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; border: 1px solid var(--line-2); background: transparent; color: var(--ink-dim); }
.cookie-bar__btn--ghost:hover { color: var(--ink); }
.cookie-bar__btn--primary { background: var(--gold); color: #0a0a0a; border-color: var(--gold); font-weight: 600; }
.cookie-bar__btn--primary:hover { background: var(--gold-2, #f0c94a); }
@media (max-width: 600px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-bar__inner { gap: 12px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__btn { flex: 1; }
}

/* =====================================================================
   LEGAL PAGES (shared layout)
   ===================================================================== */
.legal-page { background: var(--bg-1, #0a0a0a); color: var(--ink, #e8e8ea); min-height: 100vh; padding: 48px 24px 80px; }
.legal-page__container { max-width: 760px; margin: 0 auto; }
.legal-page__back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 13px; text-decoration: none; margin-bottom: 32px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 7px; transition: color .25s, background .25s; }
.legal-page__back:hover { color: var(--gold); background: rgba(255,255,255,0.04); }
.legal-page__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; }
.legal-page__title { font-family: var(--display, 'Fraunces', serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.legal-page__meta { font-size: 12px; color: var(--ink-mute); font-family: var(--mono); margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-page__content h2 { font-family: var(--display, 'Fraunces', serif); font-size: 22px; margin: 36px 0 12px; color: var(--ink); }
.legal-page__content h3 { font-size: 15px; margin: 24px 0 8px; color: var(--ink); }
.legal-page__content p, .legal-page__content li { font-size: 14.5px; line-height: 1.7; color: var(--ink-dim); }
.legal-page__content ul { padding-left: 22px; margin: 12px 0; }
.legal-page__content li { margin-bottom: 6px; }
.legal-page__content a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(212,175,55,0.4); }
.legal-page__note { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; padding: 16px 18px; margin: 24px 0; font-size: 13px; color: var(--ink-dim); }
.legal-page__footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-mute); }
.legal-page__footer a { color: var(--ink-dim); text-decoration: none; transition: color .25s; }
.legal-page__footer a:hover { color: var(--gold); }

/* =====================================================================
   HERO TWEAK PANEL (dev-only)
   ===================================================================== */
.hero-tweak { position: fixed; top: 16px; left: 16px; z-index: 9999; width: 280px; max-height: calc(100vh - 32px); background: rgba(12,12,15,0.94); backdrop-filter: blur(14px); border: 1px solid rgba(200,162,85,0.35); border-radius: 12px; color: #e8e8ea; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; box-shadow: 0 12px 40px rgba(0,0,0,0.55); display: none; flex-direction: column; overflow: hidden; }
.hero-tweak[data-visible="1"] { display: flex; }
.hero-tweak__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(200,162,85,0.06); }
.hero-tweak__head strong { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #C8A255; font-weight: 600; }
.hero-tweak__close { background: transparent; border: none; color: #9c9c9c; font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; }
.hero-tweak__close:hover { color: #fff; }
.hero-tweak__body { padding: 8px 12px 12px; overflow-y: auto; }
.hero-tweak__section { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #6e6e74; margin: 12px 0 6px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,0.06); }
.hero-tweak__section:first-child { margin-top: 4px; padding-top: 0; border-top: none; }
.hero-tweak__row { display: grid; grid-template-columns: 80px 1fr 38px; align-items: center; gap: 8px; padding: 4px 0; }
.hero-tweak__row--inline { grid-template-columns: auto 1fr auto; gap: 10px; }
.hero-tweak__label { color: #c4c4c8; font-size: 10px; }
.hero-tweak__value { color: #C8A255; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.hero-tweak input[type="range"] { width: 100%; accent-color: #C8A255; height: 16px; }
.hero-tweak input[type="color"] { width: 28px; height: 22px; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; background: transparent; padding: 0; cursor: pointer; }
.hero-tweak input[type="checkbox"] { accent-color: #C8A255; }
.hero-tweak__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.25); }
.hero-tweak__btn { font-family: inherit; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; cursor: pointer; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: #c4c4c8; transition: background .2s, color .2s; }
.hero-tweak__btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.hero-tweak__btn--primary { background: #C8A255; color: #0a0a0a; border-color: #C8A255; font-weight: 600; }
.hero-tweak__btn--primary:hover { background: #d8b265; color: #0a0a0a; }
.hero-tweak__hint { padding: 8px 12px; font-size: 10px; color: #6e6e74; text-align: center; border-top: 1px solid rgba(255,255,255,0.04); }
.hero-tweak__hint kbd { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 3px; padding: 1px 5px; font-family: inherit; font-size: 10px; color: #c4c4c8; }
@media (max-width: 600px) { .hero-tweak { width: calc(100vw - 24px); left: 12px; top: 12px; } .hero-tweak__row { grid-template-columns: 70px 1fr 36px; } }
