
/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scrollbar-width: none; overflow-x: hidden }
html::-webkit-scrollbar { display: none }

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --blue:  #2C19D6;
  --white: #FFFFFF;
  --ink:   #070707;
  --sans:  'Questrial', sans-serif;
  --mono:  'Space Mono', monospace;
  --pad:   clamp(24px, 5vw, 72px);
}

/* ── Body ───────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background:
    linear-gradient(to bottom, rgba(5,5,26,.55) 0%, rgba(5,5,26,.72) 100%),
    url('../img/bg.jpg') center center / cover no-repeat fixed;
  background-color: #05051a;
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

/* ── Cursor ─────────────────────────────────────────── */
*, a, button, input { cursor: none !important }

#cur-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%,-50%);
  transition: width .3s ease, height .3s ease, border-color .3s ease, background .3s ease;
  will-change: transform;
}
#cur-ring.hovered {
  width: 52px; height: 52px;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
}
#cur-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9001;
  transform: translate(-50%,-50%);
  will-change: transform;
  transition: background .2s ease, width .2s ease, height .2s ease;
}
#cur-dot.hovered {
  width: 3px; height: 3px;
  background: rgba(255,255,255,.6);
}

/* ── Film grain ─────────────────────────────────────── */
#grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 8500;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grainMove .5s steps(1) infinite;
}
@keyframes grainMove {
  0%  { transform:translate(0,0) }       15% { transform:translate(-3%,-2%) }
  30% { transform:translate(2%,3%) }     45% { transform:translate(-2%,1%) }
  60% { transform:translate(3%,-3%) }    75% { transform:translate(-1%,2%) }
  90% { transform:translate(2%,-1%) }   100% { transform:translate(-2%,2%) }
}

/* ── Background geometry ────────────────────────────── */
#bg-geo-r {
  position: fixed; right: -8%; top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 54vw, 700px);
  pointer-events: none; z-index: 1;
  animation: geoBreathe 18s ease-in-out infinite alternate;
}
#bg-geo-l {
  position: fixed; left: -12%; top: 32%;
  width: clamp(180px, 30vw, 400px);
  pointer-events: none; z-index: 1;
  animation: geoBreathe 24s ease-in-out infinite alternate-reverse;
}
@keyframes geoBreathe {
  0%   { opacity: .05 }
  100% { opacity: .13 }
}
.ring-flow     { stroke-dasharray: 48 24; animation: ringFlow 22s linear infinite }
.ring-flow-rev { stroke-dasharray: 68 34; animation: ringFlow 34s linear infinite reverse }
@keyframes ringFlow { to { stroke-dashoffset: -2400 } }

/* ── Loader ─────────────────────────────────────────── */
#main { opacity: 1 }

/* ── Nav ────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(14px, 2vw, 22px) var(--pad);
  opacity: 1;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
#nav.scrolled {
  background: rgba(5,5,26,.88);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
#nav-rule {
  position: absolute; bottom: 0; left: var(--pad); right: var(--pad);
  height: 1px; background: rgba(255,255,255,.08);
  transform: scaleX(1); transform-origin: left;
}
#logo-wrap img {
  height: 35px;
  width: auto; display: block;
  filter: brightness(0) invert(1);
}
#nav-cta {
  font-family: var(--sans);
  font-size: 14px; letter-spacing: .01em;
  color: var(--ink);
  background: var(--white);
  border: none;
  padding: 11px 24px; border-radius: 3px;
  transition: background .2s, transform .15s;
}
#nav-cta:hover { background: #e8e8e8; transform: translateY(-1px) }

/* ── Subtle vertical grid lines ─────────────────────── */
#grid-lines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  display: flex; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 48px);
}
.grid-line {
  width: 1px; height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,.05) 20%,
    rgba(255,255,255,.05) 80%,
    transparent 100%);
}

/* ── Hero ───────────────────────────────────────────── */
#hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(110px,16vh,160px) var(--pad) clamp(60px,8vh,90px);
}
#hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 7px 18px 7px 14px;
  font-family: var(--mono);
  font-size: 8px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 38px;
  opacity: 1;
}
#hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0 }
#hero-badge svg { opacity: .45 }

#hero-h1 {
  font-size: clamp(36px, 5vw, 75px);
  line-height: 1.06; letter-spacing: -.025em;
  font-weight: 400; max-width: 820px;
  opacity: 1; margin-bottom: 22px;
}
.lw { overflow: hidden; display: block; padding-bottom: .04em; margin-bottom: -.04em }
.li { display: block }

#hero-sub {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65; color: rgba(255,255,255,.42);
  max-width: 400px;
  opacity: 1; margin-bottom: 52px;
}

/* ── Newsletter ─────────────────────────────────────── */
#newsletter {
  width: 100%; max-width: 460px;
  opacity: 1;
}
#nl-label {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .06em;
  color: rgba(255,255,255,.28);
  margin-bottom: 14px;
  text-align: left;
}
#nl-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 8px;
  transition: border-color .25s, box-shadow .25s;
}
#nl-card:focus-within {
  border-color: rgba(44,25,214,.7);
  box-shadow: 0 0 0 3px rgba(44,25,214,.18), 0 0 24px rgba(44,25,214,.15);
}
#nl-card.err {
  border-color: rgba(220,48,48,.6);
  box-shadow: 0 0 0 3px rgba(220,48,48,.12);
}
#nl-email {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--sans); font-size: 15px;
  color: var(--white); padding: 10px 0;
  min-width: 0;
}
#nl-email::placeholder { color: rgba(255,255,255,.2) }
#nl-submit {
  background: var(--white); color: var(--ink);
  border: none;
  font-family: var(--sans); font-size: 14px;
  letter-spacing: .01em;
  padding: 12px 20px; border-radius: 7px;
  flex-shrink: 0; white-space: nowrap;
  transition: background .2s, transform .15s;
}
#nl-submit:hover { background: #e8e8e8; transform: translateY(-1px) }
#nl-hint {
  font-family: var(--sans); font-size: 11px;
  color: rgba(255,255,255,.18); letter-spacing: .02em;
  margin-top: 10px; text-align: center;
}
#nl-success {
  display: none;
  font-family: var(--sans); font-size: 14px;
  color: rgba(255,255,255,.5);
  padding: 14px 0; text-align: center;
}

/* ── Partners ───────────────────────────────────────── */
#partners {
  position: relative; z-index: 2;
  padding: 36px 0 56px;
  border-top: 1px solid rgba(255,255,255,.06);
}
#partners-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.22);
  text-align: center; margin-bottom: 28px;
}
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
          mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center;
  gap: 64px; width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused }
.marquee-track img {
  height: 22px; width: auto;
  filter: brightness(0) invert(1);
  opacity: .25;
  pointer-events: none; user-select: none;
  flex-shrink: 0;
  transition: opacity .3s;
}
.marquee-track:hover img { opacity: .4 }
@keyframes marqueeScroll {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* ── Contact Modal ──────────────────────────────────── */
#contact-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,5,26,.82);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#contact-overlay.open {
  opacity: 1; pointer-events: all;
}
#contact-modal {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 52px);
  width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  scrollbar-width: none;
  transform: translateY(24px);
  transition: transform .35s ease;
  position: relative;
}
#contact-overlay.open #contact-modal {
  transform: translateY(0);
}
#contact-modal::-webkit-scrollbar { display: none }

#modal-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 18px; line-height: 1;
  transition: background .2s, color .2s;
}
#modal-close:hover { background: rgba(255,255,255,.12); color: var(--white) }

#modal-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400; letter-spacing: -.02em;
  margin-bottom: 6px;
}
#modal-sub {
  font-size: 14px; color: rgba(255,255,255,.38);
  margin-bottom: 32px; line-height: 1.5;
}

.form-row {
  display: flex; gap: 14px; margin-bottom: 14px;
}
.form-field {
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.form-field label {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: .06em; color: rgba(255,255,255,.35);
}
.form-field label span { color: rgba(255,255,255,.18); margin-left: 3px }
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--sans); font-size: 15px;
  padding: 12px 16px;
  outline: none; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.18) }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(44,25,214,.7);
  box-shadow: 0 0 0 3px rgba(44,25,214,.18);
}
.form-field input.err,
.form-field textarea.err {
  border-color: rgba(220,48,48,.6);
  box-shadow: 0 0 0 3px rgba(220,48,48,.12);
}
.form-field textarea {
  resize: vertical; min-height: 110px;
}
#form-submit {
  width: 100%; margin-top: 8px;
  background: var(--white); color: var(--ink);
  border: none; border-radius: 8px;
  font-family: var(--sans); font-size: 15px;
  padding: 14px;
  transition: background .2s, transform .15s;
}
#form-submit:hover:not(:disabled) { background: #e8e8e8; transform: translateY(-1px) }
#form-submit:disabled { opacity: .55 }
#form-success {
  display: none; text-align: center;
  padding: 32px 0;
}
#form-success p:first-child {
  font-size: 32px; margin-bottom: 12px;
}
#form-success p:last-child {
  font-size: 15px; color: rgba(255,255,255,.45); line-height: 1.6;
}
#form-error {
  display: none; text-align: center;
  font-size: 13px; color: rgba(220,100,100,.8);
  margin-top: 10px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  #hero-h1 { font-size: clamp(30px, 9vw, 48px) }
  #bg-geo-r, #bg-geo-l { opacity: .04 }
  #nl-card { padding: 5px 5px 5px 16px }
  .form-row { flex-direction: column; gap: 14px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}
