/* TEXCHARGE EV — brand tokens & base */
:root {
  --lime: #CAD405;
  --green-mid: #9AC43A;
  --green-trans: #70B966;
  --teal: #0AB8D7;
  --blue: #3459A5;
  --navy: #0A1628;
  --navy-2: #0E1C33;
  --navy-3: #142442;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #FFFFFF;
  --text-mute: rgba(255,255,255,0.62);
  --text-dim: rgba(255,255,255,0.42);
  --grad: linear-gradient(135deg, #3459A5 0%, #0AB8D7 40%, #70B966 70%, #CAD405 100%);
  --grad-soft: linear-gradient(135deg, rgba(52,89,165,0.18) 0%, rgba(10,184,215,0.14) 50%, rgba(202,212,5,0.12) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--navy); color: var(--text); font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

/* type ramp */
.h-display { font-weight: 800; font-size: clamp(48px, 7vw, 112px); line-height: 0.95; letter-spacing: -0.02em; }
.h-1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.h-2 { font-weight: 700; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -0.015em; }
.h-3 { font-weight: 700; font-size: clamp(22px, 1.6vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }
.eyebrow-dim { font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.body-lg { font-size: 18px; line-height: 1.55; color: var(--text-mute); font-weight: 400; }
.body { font-size: 15px; line-height: 1.6; color: var(--text-mute); font-weight: 400; }
.body-tight { font-size: 14px; line-height: 1.5; color: var(--text-mute); }
.mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; font-feature-settings: 'tnum' 1; }

/* layout */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wrap-tight { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 72px 0; position: relative; }
@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .wrap, .wrap-tight { padding: 0 20px; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 2px;
  font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; border: none; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--lime); color: var(--navy); }
.btn-primary:hover { background: #DDE628; box-shadow: 0 0 0 6px rgba(202,212,5,0.18); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--navy); color: var(--text); border: 1px solid var(--line-2); }
.btn-dark:hover { border-color: var(--lime); }
.btn .arrow { width: 14px; height: 14px; display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* surfaces */
.card { background: var(--navy-2); border: 1px solid var(--line); border-radius: 4px; }
.card-hover { transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.card-hover:hover { border-color: var(--line-2); background: var(--navy-3); }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10,22,40,0.72); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-mute); padding: 10px 14px; border-radius: 2px;
  cursor: pointer; background: transparent; border: none; font-family: inherit;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--lime); }
.nav-cta { height: 40px; padding: 0 18px; }
.brand-mark { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.brand-mark img { transition: opacity .2s ease; }
.brand-mark:hover img { opacity: 0.85; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* footer */
.footer { background: #06101F; border-top: 1px solid var(--line); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; color: var(--text-mute); text-decoration: none; font-size: 14px; padding: 6px 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-dim); }
.footer-bottom .legal { display: flex; gap: 24px; }

/* texture / patterns */
.bg-circuit {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.bg-glow-1 {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,184,215,0.18) 0%, transparent 60%);
  filter: blur(20px); pointer-events: none;
}
.bg-glow-2 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(202,212,5,0.12) 0%, transparent 60%);
  filter: blur(20px); pointer-events: none;
}

/* gradient text */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad-fill { background: var(--grad); }
.grad-border { position: relative; }
.grad-border::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* utility */
.divider { height: 1px; background: var(--line); width: 100%; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(202,212,5,0.1); color: var(--lime);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(202,212,5,0.25);
}
.tag-dim { background: rgba(255,255,255,0.04); color: var(--text-mute); border-color: var(--line); }
.tag-teal { background: rgba(10,184,215,0.12); color: var(--teal); border-color: rgba(10,184,215,0.3); }
.tag-gray { background: rgba(255,255,255,0.04); color: var(--text-dim); border-color: var(--line); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-lime { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.dot-teal { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.dot-gray { background: rgba(255,255,255,0.3); }

.pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1c2f55; }

/* placeholder images (striped) */
.ph {
  position: relative; overflow: hidden; border-radius: 4px;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 2px,
      transparent 2px,
      transparent 14px),
    linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.ph-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-dim); letter-spacing: 0.06em;
  padding: 4px 10px; background: rgba(10,22,40,0.85); border: 1px solid var(--line);
  border-radius: 2px;
}

/* page transitions */
.page-fade {
  animation: pageFade .35s ease;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* charging animation bar */
.charge-bar {
  height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
  position: relative;
}
.charge-bar::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad);
  transform-origin: left;
  animation: charge 2.4s ease-in-out infinite;
}
@keyframes charge {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* lightning bolt watermark */
.bolt-watermark {
  position: absolute; pointer-events: none; opacity: 0.04;
  font-size: 1px; line-height: 0;
}

/* ============ CUSTOM CURSOR ============ */
@media (hover: hover) and (pointer: fine) {
  html, body, button, a, input, textarea, select, [role="button"] { cursor: none; }
  input[type="text"], input[type="email"], input[type="tel"], textarea, input[type="search"] { cursor: text; }

  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transform: translate3d(0,0,0);
    will-change: transform;
  }
  .cursor-dot {
    width: 6px; height: 6px; margin: -3px 0 0 -3px;
    background: #CAD405;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(202,212,5,0.8), 0 0 2px #CAD405;
    transition: width .2s ease, height .2s ease, margin .2s ease, background .2s ease;
  }
  .cursor-ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(202,212,5,0.7);
    border-radius: 50%;
    transition: width .25s cubic-bezier(.2,.8,.2,1),
                height .25s cubic-bezier(.2,.8,.2,1),
                margin .25s cubic-bezier(.2,.8,.2,1),
                border-color .25s ease,
                background .25s ease,
                opacity .2s ease;
    backdrop-filter: blur(1px);
  }
  /* hover state for interactive elements */
  body.cursor-hover .cursor-dot {
    width: 0; height: 0; margin: 0;
  }
  body.cursor-hover .cursor-ring {
    width: 52px; height: 52px; margin: -26px 0 0 -26px;
    background: rgba(202,212,5,0.14);
    border-color: var(--lime);
    border-width: 2px;
  }
  /* click state */
  body.cursor-down .cursor-ring {
    width: 24px; height: 24px; margin: -12px 0 0 -12px;
    background: rgba(202,212,5,0.3);
  }
  /* hide on input focus */
  body.cursor-text .cursor-ring,
  body.cursor-text .cursor-dot { opacity: 0; }

  /* tick marks inside ring */
  .cursor-ring::before, .cursor-ring::after {
    content: ''; position: absolute; background: rgba(202,212,5,0.6);
  }
  .cursor-ring::before {
    width: 1px; height: 6px; top: -3px; left: 50%; transform: translateX(-50%);
  }
  .cursor-ring::after {
    width: 6px; height: 1px; left: -3px; top: 50%; transform: translateY(-50%);
    box-shadow: 41px 0 0 rgba(202,212,5,0.6);
  }
  body.cursor-hover .cursor-ring::before { display: none; }
  body.cursor-hover .cursor-ring::after { display: none; }
}
