@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ─── Custom Cursor ─── */
* { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: #c8ff00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 8px #c8ff00, 0 0 16px rgba(200,255,0,0.4);
  transition: width 0.2s, height 0.2s, background 0.2s;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(200,255,0,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  will-change: transform;
}

.cursor-dot.hovering {
  width: 10px; height: 10px;
  background: #c8ff00;
  box-shadow: 0 0 16px #c8ff00, 0 0 32px rgba(200,255,0,0.5);
}

.cursor-ring.hovering {
  width: 52px; height: 52px;
  border-color: rgba(200,255,0,0.8);
}

.cursor-dot.clicking {
  width: 4px; height: 4px;
  background: #fff;
}

.cursor-ring.clicking {
  width: 28px; height: 28px;
  border-color: rgba(255,255,255,0.6);
}

@media (hover: none) {
  * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─── Page Transitions ─── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

body { opacity: 0; transition: opacity 0.4s ease; }
body.page-loaded { opacity: 1; }

/* ─── Word animations ─── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.word.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ─── Scroll progress bar ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: #c8ff00;
  z-index: 99997;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(200,255,0,0.6);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #161616;
  --border:    rgba(255,255,255,0.08);
  --text:      #ffffff;
  --muted:     #666666;
  --muted-2:   #999999;
  --accent:    #c8ff00;
  --accent-dim: rgba(200,255,0,0.12);
  --font:      'Space Grotesk', sans-serif;
  --mono:      'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── Typography ─── */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* ─── Layout ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 40px; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  padding: 16px 0;
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted-2);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

.nav-hamburger { display: none; }

@media (max-width: 900px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }

  .nav-links.open li { width: 100%; }

  .nav-links.open a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted-2);
  }

  .nav-links.open li:last-child a {
    border-bottom: none;
    margin-top: 8px;
    color: var(--accent);
  }

  .nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ─── Hero Canvas ─── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero > .container,
.hero > .hero-scroll {
  position: relative;
  z-index: 1;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 32px;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 56px;
  font-weight: 400;
}

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover { background: #d4ff1a; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }

.hero-scroll {
  position: absolute;
  bottom: 48px; left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, var(--muted));
}

/* ─── Sections ─── */
section { padding: 120px 0; }

.section-header {
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-top: 20px;
  margin-bottom: 20px;
}

.section-header p {
  font-size: 17px;
  color: var(--muted-2);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Divider ─── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ─── Stats strip ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 80px 0;
}

.stat-item {
  background: var(--bg);
  padding: 40px 32px;
}

.stat-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 400;
}

/* ─── Cards ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.card {
  background: var(--bg);
  padding: 48px 40px;
  transition: background 0.2s;
}

.card:hover { background: var(--bg-3); }

.card-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 18px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* ─── Marquee ─── */
.marquee-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 24px 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border);
}

.marquee-item span { color: var(--accent); }

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

/* ─── CTA Block ─── */
.cta-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,255,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 20px;
}

.cta-block p {
  color: var(--muted-2);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Services page ─── */
.services-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 40px 48px;
  background: var(--bg);
  transition: background 0.2s;
  cursor: default;
}

.service-row:hover { background: var(--bg-3); }

.service-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.service-row h3 { font-size: 20px; font-weight: 600; }
.service-row p { font-size: 14px; color: var(--muted-2); line-height: 1.6; }

.service-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ─── Tool Stack ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.tool-category {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}

.tool-category h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 28px;
}

.tool-items { display: flex; flex-direction: column; gap: 1px; }

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.tool-item:last-child { border-bottom: none; }

.tool-name {
  font-size: 14px;
  font-weight: 500;
}

.tool-use {
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 { font-size: clamp(36px, 4vw, 52px); margin: 20px 0 28px; }
.about-text p { color: var(--muted-2); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.value-item {
  background: var(--bg-2);
  padding: 32px 36px;
}

.value-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.value-item p { font-size: 13px; color: var(--muted-2); line-height: 1.7; }

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(32px, 3.5vw, 48px); margin: 20px 0 24px; }
.contact-info p { color: var(--muted-2); font-size: 16px; line-height: 1.8; margin-bottom: 40px; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item .label { margin-bottom: 6px; }
.contact-detail-item span { font-size: 15px; }

/* ─── Form ─── */
.form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: rgba(200,255,0,0.4); }

.form-field textarea { resize: vertical; min-height: 140px; }

/* ─── Page hero ─── */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(48px, 6vw, 80px); margin: 20px 0 24px; }
.page-hero p { font-size: 18px; color: var(--muted-2); max-width: 560px; line-height: 1.7; }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .container, .container--narrow { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }

  .nav-links { display: none; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }
  .nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.3s; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .tools-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-block { padding: 56px 32px; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 28px;
  }
  .service-num { display: none; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-headline { font-size: 44px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
