:root {
  --bg: #050508;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --text: #e0e0e6;
  --text-dim: #6a6a78;
  --accent: #00f0ff;
  --accent-dim: rgba(0, 240, 255, 0.15);
  --accent-glow: rgba(0, 240, 255, 0.4);
  --purple: #a855f7;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
em { color: var(--accent); font-style: normal; }

/* ── Canvas Grid ── */
#grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Scanline overlay ── */
.scanline {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  backdrop-filter: blur(20px);
  background: rgba(5, 5, 8, 0.7);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--accent); }
}

/* ── Hero ── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 4rem;
}

.hero-content { max-width: 800px; }

.hero-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

h1 {
  font-family: var(--mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px var(--accent-dim);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.metric { display: flex; flex-direction: column; gap: 0.25rem; }

.metric-value {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.metric-unit {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.metric-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-dim);
}

.cta-arrow { transition: transform 0.3s; }
.cta-btn:hover .cta-arrow { transform: translateX(4px); }

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-sweep 2s ease-in-out infinite;
}

@keyframes scroll-sweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  padding: 8rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.section h2 {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

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

.about-text .lead {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.about-text p { color: var(--text-dim); font-size: 1rem; }

/* ── Glass Cards ── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.card-body { padding: 1.5rem 1.25rem; }

.card-body.mono { font-family: var(--mono); font-size: 0.85rem; }

.card-line {
  padding: 0.3rem 0;
  display: flex;
  gap: 1rem;
}

.card-line .key { color: var(--purple); }
.card-line .val { color: var(--accent); }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 240, 255, 0.06);
}

.service-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--accent-glow);
}

.service-card h3 {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* ── Stack ── */
.stack-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
}

.stack-orbit {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbit-spin 30s linear infinite;
}

.stack-orbit::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.stack-orbit::after {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

.stack-center {
  animation: orbit-counter 30s linear infinite;
}

@keyframes orbit-counter { to { transform: rotate(-360deg); } }

.orbit-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.stack-list { display: flex; flex-direction: column; gap: 2rem; }

.stack-group h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.stack-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.stack-chip {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  transition: all 0.3s ease;
  cursor: default;
}

.stack-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

/* ── Contact ── */
.contact-content {
  max-width: 600px;
}

.contact-lead {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-content .card-body p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.contact-channels {
  margin-bottom: 2rem;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.3s;
}

.channel-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}

.channel-icon { color: var(--accent); }

.contact-payments {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.payment-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-dot { opacity: 0.3; }

.mono { font-family: var(--mono); }

/* ── Reveal animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scramble placeholder ── */
[data-scramble] { display: inline-block; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  #hero { padding: 6rem 1.5rem 3rem; }
  .hero-metrics { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .metric-divider { width: 3rem; height: 1px; }
  .section { padding: 5rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stack-container { grid-template-columns: 1fr; }
  .stack-orbit { display: none; }
}
