/* ============================================================
   DudeFactory — design system
   Dark industrial theme · amber accent · Space Grotesk / Inter
   ============================================================ */

:root {
  --bg: #09090b;
  --bg-raised: #101014;
  --bg-card: #0e0e12;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f2;
  --text-dim: #a1a1aa;
  --text-faint: #63636b;
  --accent: #ffc233;
  --accent-hot: #ff9f2e;
  --accent-ink: #0b0b0d;
  --accent-glow: rgba(255, 194, 51, 0.14);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 860px; }

.section { padding: 128px 0; }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-head { margin-bottom: 72px; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.25rem); }

.br-lg { display: none; }
@media (min-width: 720px) { .br-lg { display: inline; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-lg { padding: 17px 34px; font-size: 1.0625rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9375rem; }

.btn-solid {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-solid:hover {
  transform: translateY(-2px);
  background: var(--accent-hot);
  box-shadow: 0 12px 40px -8px rgba(255, 194, 51, 0.45);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 11, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-name em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9688rem;
}
.nav-links > a:not(.btn) {
  color: var(--text-dim);
  transition: color 0.25s;
}
.nav-links > a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: rgba(9, 9, 11, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) {
    padding: 16px 4px;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta { margin-top: 20px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 190px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 42% at 50% -6%, rgba(255, 194, 51, 0.13), transparent 68%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 34px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 194, 51, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 194, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 194, 51, 0); }
}

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- Pipeline visual ---------- */

.pipeline {
  margin-top: 84px;
}

.pipeline-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}

.pipe-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--accent);
}
.pipe-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipe-label {
  font-family: var(--font-display);
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
}

.pipe-link {
  flex: 0 1 70px;
  height: 1px;
  margin-top: 26px;
  background-image: linear-gradient(90deg, var(--accent) 45%, transparent 45%);
  background-size: 9px 1px;
  opacity: 0.55;
  animation: flow 1.1s linear infinite;
}
@keyframes flow { to { background-position: 9px 0; } }

.pipeline-caption {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--text-faint);
}

@media (max-width: 820px) {
  .pipeline-track { flex-wrap: wrap; gap: 26px 8px; }
  .pipe-node { flex: 1 1 40%; }
  .pipe-link { display: none; }
}

/* ---------- Stats ---------- */

.stats { border-block: 1px solid var(--border); background: var(--bg-raised); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 52px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat + .stat { border-left: 1px solid var(--border); }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat-label { color: var(--text-dim); font-size: 0.9688rem; max-width: 30ch; }

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat { padding: 36px 4px; }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  padding: 42px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 194, 51, 0.35);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), 0 0 60px -30px var(--accent-glow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 26px;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 1.4375rem; margin-bottom: 14px; }
.service-card p { color: var(--text-dim); margin-bottom: 26px; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}
.service-tags li {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 34px 26px; }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 26px 0;
  -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;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--accent); }
.marquee-track i { color: var(--accent); font-style: normal; opacity: 0.6; }

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

/* ---------- Case studies ---------- */

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
}
.case + .case { border-top: 1px solid var(--border); }
.case:nth-of-type(even) .case-visual { order: -1; }

.case-num {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.case-tags {
  display: flex;
  gap: 9px;
  margin: 18px 0 16px;
}
.case-tags span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
}

.case h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 22px; }

.case-problem, .case-solution {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1rem;
}
.case-problem strong, .case-solution strong { color: var(--text); font-weight: 600; }

.case-outcomes {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-outcomes li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 0.9955rem;
  font-weight: 500;
}
.case-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="black" stroke="none"/><path d="m8.5 12.5 2.5 2.5 5-5.5" stroke="white"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="black" stroke="none"/><path d="m8.5 12.5 2.5 2.5 5-5.5" stroke="white"/></svg>') center / contain no-repeat;
}

.case-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9688rem;
  color: var(--accent);
}
.case-more svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.case-more:hover svg { transform: translateX(4px); }

.work-all {
  padding-top: 64px;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* --- Mockups --- */

.case-visual { perspective: 1200px; }

.mock {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #141419, #0d0d11);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.95), 0 0 90px -50px var(--accent-glow);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.case:nth-of-type(even) .mock { transform: rotateY(4deg) rotateX(2deg); }
.case:hover .mock { transform: none; }

.mock-callbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
}
.mock-callbar strong { font-family: var(--font-display); font-size: 0.9375rem; display: block; }
.mock-callbar small { color: var(--text-faint); font-size: 0.8125rem; }

.mock-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-hot));
  flex: none;
}

.mock-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.mock-wave i {
  width: 3.5px;
  border-radius: 4px;
  background: var(--accent);
  animation: wave 1s ease-in-out infinite;
}
.mock-wave i:nth-child(1) { height: 10px; animation-delay: 0s; }
.mock-wave i:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.mock-wave i:nth-child(3) { height: 26px; animation-delay: 0.3s; }
.mock-wave i:nth-child(4) { height: 16px; animation-delay: 0.45s; }
.mock-wave i:nth-child(5) { height: 9px; animation-delay: 0.6s; }
@keyframes wave { 50% { transform: scaleY(0.45); } }

.mock-chat { display: flex; flex-direction: column; gap: 11px; }

.bubble {
  max-width: 82%;
  padding: 11px 17px;
  border-radius: 16px;
  font-size: 0.9188rem;
  line-height: 1.45;
}
.bubble.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  border-bottom-right-radius: 5px;
}
.bubble.user.alt { background: rgba(255, 194, 51, 0.22); color: var(--text); font-weight: 400; }
.bubble.sys {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 4px 0;
}
.bubble.sys .arrow {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.msg-ico {
  display: inline-block;
  width: 15px;
  height: 15px;
  vertical-align: -2.5px;
  margin-left: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.msg-ico.sm { width: 12px; height: 12px; vertical-align: -1.5px; }

.pill {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-dim { background: rgba(255, 255, 255, 0.07); color: var(--text-dim); border: 1px solid var(--border); }
.pill-hot { background: var(--accent); color: var(--accent-ink); }

.mock-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 194, 51, 0.35);
  background: var(--accent-glow);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.mock-toast svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* table mock */
.mock-tablehead, .mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
}
.mock-tablehead {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 4px;
}
.mock-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}
.mock-row .pill { justify-self: start; }

/* funnel mock */
.funnel-row {
  display: grid;
  grid-template-columns: 108px 1fr 56px;
  align-items: center;
  gap: 14px;
}
.funnel-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
}
.funnel-val {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: right;
}
.funnel-bar {
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  overflow: hidden;
}
.funnel-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 7px;
  background: rgba(255, 194, 51, 0.3);
}
.funnel-bar.hot i { background: linear-gradient(90deg, var(--accent), var(--accent-hot)); }

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .case:nth-of-type(even) .case-visual { order: 0; }
  .mock, .case:nth-of-type(even) .mock { transform: none; }
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 194, 51, 0.35);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 194, 51, 0.55);
  display: block;
  margin-bottom: 20px;
}

.process-step h3 { font-size: 1.3125rem; margin-bottom: 12px; }
.process-step p { color: var(--text-dim); font-size: 0.9563rem; }

@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color 0.35s;
}
.faq-item[open] { border-color: rgba(255, 194, 51, 0.35); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.0938rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease);
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translateY(-50%) rotate(0deg); }

.faq-body { padding: 0 26px 24px; color: var(--text-dim); max-width: 62ch; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 50% 108%, rgba(255, 194, 51, 0.16), transparent 70%);
}
.cta-inner { position: relative; }

.cta-title {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  margin-bottom: 26px;
}
.cta-sub {
  max-width: 560px;
  margin: 0 auto 42px;
  color: var(--text-dim);
  font-size: 1.125rem;
}

.cta-contacts {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-dim);
}
.cta-contacts a { transition: color 0.25s; }
.cta-contacts a:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 76px 0 0;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand p {
  margin-top: 18px;
  color: var(--text-dim);
  max-width: 34ch;
  font-size: 0.9688rem;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.footer-col a { color: var(--text-dim); font-size: 0.9688rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 26px 150px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.footer-wordmark {
  position: absolute;
  inset: auto 0 -0.26em 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12.5vw, 11rem);
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

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

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

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