/* ============================================================
   CONPTUS — base design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,300..800&family=Geist:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* brand */
  --brand-orange: #E8611A;
  --brand-orange-hot: #FF7A2F;
  --brand-orange-deep: #C44B0E;
  --brand-navy: #0A1628;

  /* light */
  --bg: #F7F5F2;
  --bg-elev: #FFFFFF;
  --bg-sunk: #EFEBE5;
  --ink: #0A1628;
  --ink-2: #2A3447;
  --ink-3: #5A6478;
  --ink-4: #8A92A2;
  --line: #E2DCD2;
  --line-strong: #C9C1B5;

  /* type */
  --f-display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --f-body: 'Geist', 'Helvetica Neue', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --max: 1320px;
  --pad-x: clamp(20px, 5vw, 64px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] {
  --bg: #050B14;
  --bg-elev: #0C1524;
  --bg-sunk: #020610;
  --ink: #F0EAE3;
  --ink-2: #D6CFC5;
  --ink-3: #8E96A6;
  --ink-4: #5F6677;
  --line: #182234;
  --line-strong: #243047;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050B14;
    --bg-elev: #0C1524;
    --bg-sunk: #020610;
    --ink: #F0EAE3;
    --ink-2: #D6CFC5;
    --ink-3: #8E96A6;
    --ink-4: #5F6677;
    --line: #182234;
    --line-strong: #243047;
  }
}

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

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

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--brand-orange); color: #fff; }

/* utility */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }
.mono { font-family: var(--f-mono); font-feature-settings: "ss01"; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; font-weight: 500; }
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.025em; line-height: 0.96; font-variation-settings: 'wdth' 90, 'opsz' 96; }
.brand-p { color: var(--brand-orange); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: 14px;
  transition: padding 0.4s var(--ease-out);
}
.nav.scrolled { padding-top: 8px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 16px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: calc(var(--max) - 40px);
  margin: 0 auto;
  width: calc(100% - 40px);
  transition: all 0.4s var(--ease-out);
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 44px; width: auto; display: block; }
.nav-brand img.dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-brand img.light-only { display: none; }
  :root:not([data-theme="light"]) .nav-brand img.dark-only { display: block; }
}
[data-theme="dark"] .nav-brand img.light-only { display: none; }
[data-theme="dark"] .nav-brand img.dark-only { display: block; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: all 0.2s var(--ease-out);
  font-weight: 450;
}
.nav-links a:hover { background: var(--bg-sunk); color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; display: block; width: 4px; height: 4px;
  background: var(--brand-orange); border-radius: 50%;
  margin: 2px auto 0;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-2);
  transition: all 0.2s;
}
.icon-btn:hover { background: var(--bg-sunk); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .sun, .icon-btn .moon { display: none; }
[data-theme="light"] .icon-btn .moon,
[data-theme="dark"] .icon-btn .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: none; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-btn .moon { display: block; }
  :root:not([data-theme="dark"]) .icon-btn .sun { display: none; }
}

.btn-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s var(--ease-out);
}
.btn-cta:hover { background: var(--brand-orange); color: #fff; transform: translateY(-1px); }
.btn-cta .arrow { transition: transform 0.2s; }
.btn-cta:hover .arrow { transform: translateX(3px); }

.hamburger { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 999px;
  }
  .hamburger span {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--ink);
    position: relative;
  }
  .hamburger span::before, .hamburger span::after {
    content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out);
  }
  .hamburger span::before { top: -6px; }
  .hamburger span::after { top: 6px; }
  .nav-inner.menu-open .hamburger span { background: transparent; }
  .nav-inner.menu-open .hamburger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-inner.menu-open .hamburger span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-inner { padding: 6px 6px 6px 14px; }
  .nav-brand img { height: 36px; }
  .btn-cta { display: none; }
}

/* mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  padding: 90px var(--pad-x) 40px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block;
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-variation-settings: 'wdth' 90;
}
.mobile-menu a .num { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); display: inline-block; margin-right: 18px; vertical-align: middle; }
.mobile-menu .m-foot { margin-top: auto; padding-top: 30px; }
.mobile-menu .m-foot .mono { color: var(--ink-3); display: block; margin-bottom: 8px; }
.mobile-menu .m-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 18px;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 18px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  border: 0;
}

/* ============================================================
   BUTTONS / PILLS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); }
.pill.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand-orange); color: #fff; }
.btn-primary:hover { background: var(--brand-orange-deep); transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--brand-orange); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-sunk); border-color: var(--ink-3); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--brand-orange); }

.btn .arrow { width: 16px; height: 16px; transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #02060D;
  color: #F0EAE3;
  padding: 80px 0 30px;
  margin-top: 100px;
}
footer .ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a { color: rgba(255,255,255,0.75); font-size: 15px; transition: color 0.2s; }
footer a:hover { color: var(--brand-orange); }
footer .ft-brand { display: inline-block; }
footer .ft-brand img { height: 52px; width: auto; display: block; }
/* footer is always on a dark background — use the white wordmark variant */
footer .ft-brand .ft-logo-light { display: none; }
footer .ft-brand + p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 20px; max-width: 320px; line-height: 1.5; }
footer .ft-bot { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .ft-bot small, footer .ft-bot a { font-size: 12px; color: rgba(255,255,255,0.4); }
footer .ft-bot strong { color: var(--brand-orange); font-weight: 600; letter-spacing: 0.02em; }
footer .ft-legal { padding-top: 14px; text-align: center; }
footer .ft-legal small { font-size: 11px; color: rgba(255,255,255,0.28); letter-spacing: 0.02em; }

@media (max-width: 740px) {
  footer { padding: 60px 0 30px; margin-top: 60px; }
  footer .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; padding-bottom: 40px; }
  footer .ft-brand-col { grid-column: 1 / -1; }
  footer .ft-brand img { height: 42px; }
  footer .ft-bot { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer .ft-legal { text-align: left; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js-ready .reveal { opacity: 0; transform: translateY(24px); }
.js-ready .reveal.in { opacity: 1; transform: none; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal.d1 { transition-delay: 0.03s; }
.reveal.d2 { transition-delay: 0.06s; }
.reveal.d3 { transition-delay: 0.09s; }
.reveal.d4 { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   FINAL CTA — used on every page (orange block)
   ============================================================ */
.final-cta { padding: 120px 0 60px; }
.final-cta-inner {
  background: var(--brand-orange);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(50px, 7vw, 90px) clamp(30px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: 'wdth' 85;
  max-width: 16ch;
  position: relative; z-index: 2;
  color: #fff;
}
.final-cta h2 em { font-style: normal; font-variation-settings: 'wdth' 75; color: rgba(255,255,255,0.55); }
.final-cta .right { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 2; }
.final-cta .right p { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.final-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.final-cta .btn-light { background: #fff; color: var(--brand-orange); }
.final-cta .btn-light:hover { background: var(--ink); color: #fff; }
.final-cta .btn-outline-light { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.final-cta .btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.final-cta-orbit {
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
}
.final-cta-orbit::before, .final-cta-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
}
.final-cta-orbit::before { inset: 50px; }
.final-cta-orbit::after { inset: 100px; border-color: rgba(255,255,255,0.08); }

@media (max-width: 820px) {
  .final-cta-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 28px; border-radius: var(--r-lg); }
  .final-cta { padding: 60px 0 30px; }
}
