/* ==========================================================================
   PRIMUS CRE Group — Careers
   Dark luxury · Gold · Editorial
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --bg-3: #16161a;
  --surface: #1c1c22;
  --surface-2: #22222a;
  --line: rgba(201, 169, 97, 0.18);
  --line-strong: rgba(201, 169, 97, 0.4);

  --gold: #c9a961;
  --gold-2: #d4b374;
  --gold-3: #e8d8a8;
  --gold-deep: #a07f3f;
  --cream: #f5efe1;

  --ink: #f5f1e8;
  --ink-2: #d8d2c2;
  --ink-3: #a8a296;
  --ink-4: #6f6a5e;

  --danger: #ef4444;
  --success: #10b981;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-gold: 0 18px 60px -28px rgba(201, 169, 97, 0.55);
  --shadow-deep: 0 30px 80px -30px rgba(0, 0, 0, 0.75);

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t: 320ms cubic-bezier(.4,0,.2,1);
  --t-slow: 700ms cubic-bezier(.16,1,.3,1);

  --container: 1200px;
  --pad: clamp(20px, 4vw, 36px);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--gold); color: #111;
  padding: 8px 12px; border-radius: 6px;
  font-weight: 600; font-size: 14px;
  z-index: 1000;
  transition: top var(--t);
}
.skip-link:focus { top: 8px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-2); font-weight: 400; }
p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-2);
}

/* ===== BUTTONS ===== */
.btn {
  --bgc: transparent;
  --fgc: var(--ink);
  --bdc: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--bdc);
  background: var(--bgc);
  color: var(--fgc);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--t), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
  overflow: hidden;
}
.btn svg { transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  --bgc: linear-gradient(135deg, var(--gold-2), var(--gold));
  --fgc: #161208;
  --bdc: transparent;
  background: var(--bgc);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -24px rgba(201,169,97,0.7); }

.btn--ghost {
  --bgc: transparent;
  --fgc: var(--ink);
  --bdc: rgba(245,241,232,0.25);
}
.btn--ghost:hover { --bdc: var(--gold); --fgc: var(--gold-3); }

.btn--lg { padding: 17px 30px; font-size: 13px; }
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn--block { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.is-scrolled {
  background: rgba(10,10,11,0.92);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-3);
  background: linear-gradient(135deg, rgba(201,169,97,0.1), rgba(201,169,97,0));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.nav__wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__wordmark small {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  font-weight: 400;
  color: var(--ink-3);
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color var(--t);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__links a:hover { color: var(--gold-3); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  transition: color var(--t);
}
.nav__phone:hover { color: var(--gold-3); }

.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
}
.nav__toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 18px var(--pad) 28px;
  border-top: 1px solid var(--line);
  background: rgba(10,10,11,0.96);
}
.nav__mobile a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--ink-2);
  font-size: 15px;
}
.nav__mobile .btn { margin-top: 12px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(201,169,97,0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(201,169,97,0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0b 0%, #0d0d10 100%);
  z-index: -2;
}
.hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,97,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero__grain {
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.79 0 0 0 0 0.66 0 0 0 0 0.38 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero__inner { position: relative; }
.hero__title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 400;
  margin: 8px 0 28px;
  max-width: 18ch;
}
.hero__lede {
  max-width: 58ch;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.hero__points li { display: inline-flex; align-items: center; gap: 10px; }
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,0.12);
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: grid; place-items: start center;
  padding-top: 6px;
}
.hero__scroll span {
  width: 2px; height: 8px;
  background: var(--gold-2);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== SECTIONS ===== */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section--dark { background: var(--bg-2); }
.section--gold {
  background:
    linear-gradient(180deg, rgba(201,169,97,0.04), rgba(0,0,0,0)),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--cream {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(232,216,168,0.05), transparent 70%),
    var(--bg-2);
}
.section--apply {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,169,97,0.18), transparent 70%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(201,169,97,0.10), transparent 60%),
    var(--bg);
}
.section--faq { background: var(--bg-2); }

.section__head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 400;
  margin-bottom: 18px;
}
.section__lede {
  color: var(--ink-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats { padding: 70px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 400;
  color: var(--gold-3);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--bg-2);
  padding: 44px 36px;
  transition: background var(--t), transform var(--t);
}
.feature:hover { background: var(--surface); }
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--gold-2);
  margin-bottom: 28px;
  position: relative;
}
.feature__icon::before {
  content: "";
  position: absolute; inset: -8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color var(--t), transform var(--t);
}
.feature:hover .feature__icon::before { border-color: var(--gold); transform: rotate(3deg); }
.feature h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--ink);
}
.feature p { color: var(--ink-3); font-size: 15px; line-height: 1.7; }

/* ===== SPLITS ===== */
.splits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.split {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.split:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-deep); }
.split__tag {
  position: absolute;
  top: -12px; left: 32px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.split__title {
  font-size: 32px;
  margin-bottom: 16px;
}
.split__pct {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  color: var(--gold-3);
  margin-bottom: 4px;
}
.split__pct span { font-size: clamp(56px, 6vw, 80px); font-weight: 400; line-height: 1; }
.split__pct small { font-size: 24px; color: var(--gold); }
.split__caption { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
.split__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.split__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--ink-2);
}
.split__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--gold-2);
}
.split--featured {
  background: linear-gradient(180deg, rgba(201,169,97,0.08), var(--bg-3));
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-8px);
}
.split--featured .split__tag { background: var(--gold); color: #111; border-color: var(--gold); }
.split__note {
  text-align: center;
  margin-top: 32px;
  color: var(--ink-4);
  font-size: 13px;
}

/* ===== TECH ===== */
.tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.tech__copy h2 { margin-bottom: 18px; }
.tech__copy > p { color: var(--ink-2); margin-bottom: 36px; line-height: 1.75; }
.tech__list { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 24px; }
.tech__list li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tech__list li:last-child { border-bottom: 0; }
.tech__list strong {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-3);
  font-weight: 500;
}
.tech__list span { color: var(--ink-3); font-size: 14px; line-height: 1.7; }

.tech__visual {
  position: relative;
  aspect-ratio: 5 / 6;
}
.tech__panel {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
  box-shadow: var(--shadow-deep);
}
.tech__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tech__pill {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(201,169,97,0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
}
.tech__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tech__dot--live { animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(201,169,97,0.6); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,169,97,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(201,169,97,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,169,97,0); }
}
.tech__line {
  height: 8px;
  background: linear-gradient(90deg, rgba(201,169,97,0.25), rgba(201,169,97,0.05));
  border-radius: 4px;
  width: 60%;
  animation: lineSlide 4s ease-in-out infinite;
}
.tech__line--lg { width: 92%; }
.tech__line--md { width: 75%; animation-delay: 0.2s; }
@keyframes lineSlide {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}
.tech__cards {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tech__card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tech__metric { font-family: var(--serif); font-size: 28px; color: var(--gold-3); }
.tech__metricLabel { font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.tech__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(201,169,97,0.18), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ===== TIMELINE ===== */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.4;
}
.timeline__item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--t), border-color var(--t);
}
.timeline__item:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.timeline__num {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold-2);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 18px;
  position: relative;
}
.timeline__item h3 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.timeline__item p { color: var(--ink-3); font-size: 14px; line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  margin: 0;
  padding: 36px 32px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--t), border-color var(--t);
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 12px; left: 24px;
  font-family: var(--serif);
  font-size: 90px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
}
.testimonial:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.testimonial blockquote {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.t__name { font-size: 14px; font-weight: 600; color: var(--gold-3); letter-spacing: 0.04em; }
.t__role { font-size: 12px; color: var(--ink-4); letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== APPLY ===== */
.apply {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.apply__copy h2 { margin-bottom: 18px; }
.apply__copy > p { color: var(--ink-2); margin-bottom: 32px; line-height: 1.75; }
.apply__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.apply__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-2);
}
.apply__list svg { color: var(--gold-2); flex-shrink: 0; }
.apply__list a:hover { color: var(--gold-3); }

.apply__form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-deep);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  font-family: var(--sans);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.12);
}
.field input:invalid:not(:placeholder-shown):not(:focus),
.field select:invalid:not(:focus) {
  border-color: rgba(239,68,68,0.4);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23c9a961' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 100px; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  line-height: 1.5;
  user-select: none;
}
.checkbox input {
  width: 18px; height: 18px;
  margin-top: 2px;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t);
}
.checkbox input:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__status {
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }

/* ===== FAQ ===== */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.faq__item[open] { border-color: var(--line-strong); background: var(--surface); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a961' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--t);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item p {
  padding: 0 28px 24px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.75;
  max-width: 70ch;
}

/* ===== FOOTER ===== */
.footer {
  background: #050506;
  border-top: 1px solid var(--line);
  padding: 80px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 20px;
}
.footer__tag { color: var(--ink-3); font-size: 14px; line-height: 1.7; max-width: 32ch; margin-top: 18px; }
.footer__col p, .footer__col a { color: var(--ink-3); font-size: 14px; line-height: 1.9; }
.footer__col a:hover { color: var(--gold-3); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__form { display: flex; gap: 8px; margin-top: 12px; }
.footer__form input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.footer__form input:focus { outline: 0; border-color: var(--gold); }

.footer__bar {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: var(--ink-4);
  font-size: 12px;
  flex-wrap: wrap;
}
.footer__legal { max-width: 64ch; }

/* ===== FLOATING WHATSAPP ===== */
.floating-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 40px -10px rgba(37,211,102,0.6);
  z-index: 80;
  transition: transform var(--t);
}
.floating-wa:hover { transform: translateY(-2px) scale(1.05); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__mobile { display: flex; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .splits { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 32px; }
  .split--featured { transform: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .testimonials { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }

  .tech { grid-template-columns: 1fr; gap: 56px; }
  .tech__visual { aspect-ratio: 4/3; max-width: 560px; margin: 0 auto; width: 100%; }

  .apply { grid-template-columns: 1fr; gap: 56px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav__wordmark { font-size: 14px; }
  .nav__wordmark small { font-size: 8px; }
  .nav__cta .nav__phone { display: none; }

  .hero { padding: 100px 0 60px; }
  .hero__points { gap: 16px 22px; }
  .hero__ctas .btn { flex: 1; min-width: 0; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .features { grid-template-columns: 1fr; border-radius: var(--radius); }
  .feature { padding: 36px 28px; }

  .timeline { grid-template-columns: 1fr; }

  .tech__list li { grid-template-columns: 1fr; gap: 6px; }

  .apply__form { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bar { flex-direction: column; gap: 12px; }

  .floating-wa { bottom: 18px; right: 18px; width: 48px; height: 48px; }
}
