@font-face { font-family: "Clash"; src: url("/fonts/clash-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash"; src: url("/fonts/clash-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash"; src: url("/fonts/clash-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Design system carried over from the Cenurys site: #101010 base, periwinkle accent,
   Clash Display headings, Urbanist body, glass pill nav, cinematic blur-rise reveals. */
:root {
  --bg: #101010;
  --bg-2: #0b0b0c;
  --surface: #151518;
  --surface-2: #1b1b1f;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #fff;
  --text-2: #b7b7bb;
  --muted: #8a8a90;
  --dim: #66666c;
  --accent: #a3bff0;
  --acc: 163, 191, 240;
  --accent-bright: #bccff4;
  --on-accent: #0d1424;
  --accent-2: #6f8fd6;
  --accent-3: #c4b5fd;
  --ok: 96, 208, 150;
  --red: #f87171;
  --grad: linear-gradient(100deg, #a3bff0 0%, #fff 45%, #a3bff0 60%, #6f8fd6 100%);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --edge-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --display: "Clash", "Urbanist", system-ui, sans-serif;
  --body: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; scrollbar-width: thin; scrollbar-color: rgba(163,191,240,0.5) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(163,191,240,0.35); color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(163,191,240,0.3)); }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ambient background (Cenurys): accent haze at the top + faint 64px grid ---------- */
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.noise::before {
  content: ""; position: absolute; left: 50%; top: -340px; width: 1100px; height: 760px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(163,191,240,0.22), rgba(163,191,240,0.06) 55%, transparent);
  filter: blur(10px); animation: amb-breathe 9s ease-in-out infinite;
}
.noise::after { display: none;
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
/* interactive dot-grid background (js/bg.js, from the Cenurys site) */
.cen-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
@keyframes amb-breathe { 50% { opacity: 0.7; scale: 1.06; } }
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: linear-gradient(90deg, #6f8fd6, #a3bff0, #fff); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- navbar: full width -> floating glass pill (Cenurys) ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px;
  padding: 18px 28px; border: 1px solid transparent;
  transition: top 0.7s var(--ease), left 0.7s var(--ease), right 0.7s var(--ease), padding 0.7s var(--ease), border-radius 0.7s var(--ease), border-color 0.7s ease, box-shadow 0.7s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: rgba(16,16,18,0.62); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); transition: opacity 0.55s ease;
}
.nav.solid {
  top: 12px; left: max(14px, calc((100% - clamp(760px, 64%, 1180px)) / 2)); right: max(14px, calc((100% - clamp(760px, 64%, 1180px)) / 2));
  padding: 10px 14px 10px 18px; border-radius: 20px; border-color: rgba(255,255,255,0.09); box-shadow: 0 10px 40px rgba(0,0,0,0.38), var(--edge-top);
}
.nav.solid::before { opacity: 1; }
.logo { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.logo i { font-style: normal; color: var(--accent); }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; overflow: hidden;
  background: linear-gradient(160deg, #1d1d22, #0c0c0e); border: 1px solid var(--line-2); box-shadow: 0 0 22px -6px rgba(163,191,240,0.7), var(--edge-top); }
.logo-mark img { width: 100%; height: 100%; }
.logo-name { overflow: hidden; white-space: nowrap; max-width: 200px; transition: max-width 0.7s var(--ease), opacity 0.4s ease; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { white-space: nowrap; position: relative; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; transition: color 0.25s, background-color 0.25s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 11px; position: relative; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav-burger span:nth-child(1) { top: 15px; } .nav-burger span:nth-child(2) { top: 22px; }
.nav.open .nav-burger span:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { top: 18.5px; transform: rotate(-45deg); }
@media (max-width: 920px) {
  .nav { padding: 14px 16px; }
  .nav.solid { left: 14px; right: 14px; padding: 8px 10px 8px 12px; }
  .nav.solid .logo-name { max-width: 0; opacity: 0; }
  .nav-links { position: fixed; top: 74px; left: 14px; right: 14px; flex-direction: column; padding: 12px; gap: 2px; border-radius: 20px;
    background: rgba(16,16,18,0.96); backdrop-filter: blur(16px); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transform: translateY(-10px); margin: 0;
    transition: opacity 0.3s, transform 0.4s var(--ease); }
  .nav-links a { font-size: 18px; padding: 14px 16px; color: var(--text); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-burger { display: block; }
  .nav-right { margin-left: auto; }
  .nav-right .btn-ghost { display: none; }
}

/* ---------- buttons (Cenurys) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; white-space: nowrap;
  color: var(--on-accent); background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 10px 30px -10px rgba(163,191,240,0.75), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 0 rgba(0,0,0,0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease, background-color 0.3s ease, filter 0.3s;
}
.btn:hover { transform: translateY(-2px); background: linear-gradient(180deg, #fff, var(--accent-bright)); box-shadow: 0 16px 40px -12px rgba(163,191,240,0.95), inset 0 1px 0 rgba(255,255,255,0.7); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.65), transparent); transform: skewX(-20deg); animation: btn-shine 5.5s 1.2s ease-in-out infinite;
}
@keyframes btn-shine { 0% { left: -60%; } 16%, 100% { left: 140%; } }
.btn-lg { height: 54px; padding: 0 24px; border-radius: 14px; font-size: 15.5px; }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; }
.btn-ghost { color: #fff; background: rgba(255,255,255,0.04); border-color: var(--line-2); box-shadow: var(--edge-top); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); box-shadow: var(--edge-top); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-shine::before { display: none; }
/* dark icon chip on the right of the main CTA, like the Cenurys "Choose your tool" button */
.btn .chip { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-right: -12px; background: #0d1424; color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); transition: transform 0.35s var(--ease); }
.btn .chip svg { width: 15px; height: 15px; }
.btn:hover .chip { transform: translateX(3px); }
.link-arrow { color: var(--accent); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform 0.3s var(--ease); }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(12px); transition: opacity 1.1s ease, transform 1.4s var(--ease-out), filter 1.2s ease; transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="blur"] { filter: blur(12px); transform: translateY(20px); transition-property: opacity, transform, filter; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.in .split-line > span, .split-line.in > span { transform: none; }

/* ---------- cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,0.35); transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(163, 191, 240, 0.08); border-color: rgba(163, 191, 240, 0.6); }
body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; }

/* ---------- modal (auth) ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.4s; }
.modal.open { pointer-events: auto; }
.modal.open::before { opacity: 1; }
.modal-card {
  position: relative; width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03) inset;
  opacity: 0; transform: translateY(30px) scale(0.96); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(163,191,240,0.6), transparent 40%, transparent 60%, rgba(111,143,214,0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.06); display: grid; place-items: center; transition: background 0.2s, transform 0.3s var(--ease); }
.modal-x:hover { background: rgba(255,255,255,0.14); transform: rotate(90deg); }
.modal h3 { font-size: 28px; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.05); margin-bottom: 20px; position: relative; }
.tabs button { position: relative; z-index: 1; height: 38px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.tabs button.on { color: #000; }
.tabs .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--text); transition: transform 0.45s var(--ease); }
.tabs[data-i="1"] .pill { transform: translateX(100%); }
.field { position: relative; margin-bottom: 12px; }
.field input {
  width: 100%; height: 54px; padding: 18px 16px 4px; border-radius: 14px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2); outline: none; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field label { position: absolute; left: 17px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform 0.25s var(--ease), font-size 0.25s; transform-origin: 0 0; }
.field input:focus { border-color: var(--accent); background: rgba(163,191,240,0.04); box-shadow: 0 0 0 4px rgba(163,191,240,0.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.75); }
.form-err { min-height: 20px; color: var(--red); font-size: 14px; margin: 4px 2px 10px; }
.modal .btn { width: 100%; }
.fine { font-size: 12.5px; color: var(--dim); margin-top: 14px; text-align: center; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 140%); padding: 12px 20px; border-radius: 999px; background: var(--text); color: #000; font-weight: 600; font-size: 14px; transition: transform 0.5s var(--ease); box-shadow: 0 20px 60px rgba(0,0,0,0.6); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }



/* keyboard focus (only shows for keyboard users) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .talk-btn:focus-visible { outline-offset: 4px; }
input:focus-visible, textarea:focus-visible { outline: none; }
