/* ─── Custom Properties ─────────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg: #050908;
  --bg-elevated: #080F0C;
  --surface: #0B1310;
  --surface-2: #131C18;
  --surface-3: #1A2520;
  --primary: #4FFF92;
  --primary-dim: #2BCC6E;
  --primary-glow: rgba(79, 255, 146, 0.5);
  --cyan: #5EE5FF;
  --violet: #B388FF;
  --amber: #FFD66B;
  --text: #F0F8F2;
  --text-muted: #8DA697;
  --text-faint: #4D6157;
  --border: rgba(79, 255, 146, 0.14);
  --border-bright: rgba(79, 255, 146, 0.32);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Border Radius */
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-input: 10px;
  --radius-icon: 14px;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ─── Body ──────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grid texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 255, 146, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 255, 146, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Top ambient glow */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(79, 255, 146, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}


/* ─── Mycelium Canvas ────────────────────────────────────────────────────────── */
#mycelium {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Selection ─────────────────────────────────────────────────────────────── */
::selection {
  background: var(--primary);
  color: var(--bg);
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ─── Scroll Reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ─── Spore Particles (richer field) ─────────────────────────────────────────── */
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  8%   { opacity: var(--peak-opacity, 1); }
  92%  { opacity: var(--peak-opacity, 1); }
  100% { transform: translate3d(var(--drift-x, 40px), calc(-100vh - 40px), 0) scale(0.3); opacity: 0; }
}

.spore {
  position: fixed;
  width: var(--size, 4px);
  height: var(--size, 4px);
  border-radius: 50%;
  background: var(--color, #4FFF92);
  box-shadow: 0 0 calc(var(--size, 4px) * 2.5) var(--glow, rgba(79, 255, 146, 0.6));
  left: var(--x, 50%);
  bottom: -10px;
  opacity: 0;
  animation: drift var(--duration, 25s) infinite linear;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }
}

/* ─── Nav ────────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(5, 9, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
}
.logo-mark { width: 48px; height: 36px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(79,255,146,0.45)) drop-shadow(0 0 12px rgba(179,136,255,0.25)); }
.logo-text {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: 0.02em; font-style: italic;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 400; letter-spacing: 0.01em;
  transition: color 0.2s ease; position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--primary); text-decoration: none;
  font-size: 13px; font-weight: 500;
  font-family: var(--font-mono); letter-spacing: 0.02em;
  transition: all 0.3s ease;
  background: rgba(79, 255, 146, 0.04);
}
.nav-cta:hover {
  border-color: var(--primary);
  background: rgba(79, 255, 146, 0.12);
  box-shadow: 0 0 20px rgba(79, 255, 146, 0.2);
}
@media (max-width: 640px) { .nav-links { display: none; } }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; position: relative;
}
.hero-content { max-width: 920px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--primary);
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(79, 255, 146, 0.04);
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 400; line-height: 0.95;
  letter-spacing: -0.02em; margin-bottom: 32px;
  opacity: 0; animation: fadeUp 1s ease forwards 0.4s;
}
.italic-green {
  font-style: italic;
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 20px; line-height: 1.5; color: var(--text-muted);
  max-width: 580px; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 1s ease forwards 0.6s;
}
.hero-cta-group {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s ease forwards 0.8s;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; background: var(--primary); color: var(--bg);
  text-decoration: none; font-weight: 600; font-size: 15px;
  border-radius: var(--radius-pill); border: 1px solid var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px -10px rgba(79,255,146,0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 40px var(--primary-glow),
              0 20px 60px -10px rgba(79,255,146,0.6);
  transform: translateY(-2px);
}
.btn-primary svg { transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; background: transparent; color: var(--text);
  text-decoration: none; font-weight: 500; font-size: 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--border-bright);
  background: rgba(79, 255, 146, 0.04);
}
.hero-meta {
  display: flex; gap: 48px; margin-top: 96px; padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  opacity: 0; animation: fadeUp 1s ease forwards 1s;
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-value {
  font-family: var(--font-display); font-size: 36px;
  color: var(--primary); line-height: 1;
}
.hero-meta-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.15em; text-transform: uppercase;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .hero-meta { gap: 32px; margin-top: 64px; }
  .hero-meta-value { font-size: 28px; }
}

/* ─── Section shared ─────────────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--primary);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 24px;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--primary); }
.section-title {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px);
  font-weight: 400; line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 24px; max-width: 800px;
}
.section-title .italic { font-style: italic; color: var(--primary); }
.section-sub {
  font-size: 18px; color: var(--text-muted); max-width: 620px;
  margin-bottom: 80px; line-height: 1.6;
}

/* ─── About ──────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-text .about-lead {
  font-family: var(--font-display); font-style: italic;
  font-size: 28px; line-height: 1.4; color: var(--text);
  margin-bottom: 32px;
}
.about-text p {
  color: var(--text-muted); font-size: 17px;
  line-height: 1.7; margin-bottom: 24px;
}
.about-text .italic { font-style: italic; color: var(--primary); }
.about-visual {
  position: sticky; top: 120px; aspect-ratio: 1;
  border: 1px solid var(--border); border-radius: 24px;
  background:
    radial-gradient(circle at 30% 30%, rgba(79,255,146,0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(94,229,255,0.1), transparent 50%),
    var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.about-visual img {
  width: 60%; height: 60%; object-fit: contain;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}
.about-meta {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { aspect-ratio: 16/10; position: relative; top: 0; }
}

/* ─── Services ───────────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 40px; background: var(--surface);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(79, 255, 146, 0.08), transparent 50%);
  opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius-icon);
  background: linear-gradient(135deg, rgba(79, 255, 146, 0.1), rgba(94, 229, 255, 0.05));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; transition: all 0.4s ease; color: var(--primary);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(79, 255, 146, 0.2), rgba(94, 229, 255, 0.1));
  box-shadow: 0 0 30px rgba(79, 255, 146, 0.2);
}
.service-icon svg { width: 28px; height: 28px; }
.service-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
}
.service-title {
  font-family: var(--font-display); font-size: 32px;
  margin-bottom: 16px; line-height: 1.1;
}
.service-desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.service-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted); font-family: var(--font-mono);
}
.service-features li::before {
  content: ''; width: 4px; height: 4px; background: var(--primary);
  border-radius: 50%; box-shadow: 0 0 6px var(--primary); flex-shrink: 0;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .service-card { padding: 28px; } .service-title { font-size: 26px; } }

/* ─── Process ────────────────────────────────────────────────────────────────── */
.process { background: var(--bg-elevated); position: relative; }
.process::before, .process::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}
.process::before { top: 0; } .process::after { bottom: 0; }
.process-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative;
}
.process-flow::before {
  content: ''; position: absolute; top: 56px; left: 12.5%; right: 12.5%;
  height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--border-bright) 10%,
    var(--border-bright) 90%, transparent);
}
.process-step { text-align: center; position: relative; padding: 0 16px; z-index: 1; }
.process-number {
  width: 112px; height: 112px; margin: 0 auto 32px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 48px;
  color: var(--primary); position: relative; transition: all 0.3s ease;
}
.process-number::before {
  content: ''; position: absolute; inset: -8px;
  border: 1px solid var(--border-subtle); border-radius: 50%; transition: all 0.3s ease;
}
.process-step:hover .process-number {
  box-shadow: 0 0 40px rgba(79, 255, 146, 0.3); border-color: var(--primary);
}
.process-step-name {
  font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; font-style: italic;
}
.process-step-stage {
  font-family: var(--font-mono); font-size: 11px; color: var(--primary);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px;
}
.process-step-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 1024px) {
  .process-flow { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .process-flow::before { display: none; }
}
@media (max-width: 640px) { .process-flow { grid-template-columns: 1fr; } }

/* ─── Contact ────────────────────────────────────────────────────────────────── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.contact-channel {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  border: 1px solid var(--border-subtle); border-radius: 14px;
  background: var(--surface); transition: all 0.3s ease;
  text-decoration: none; color: var(--text);
}
.contact-channel:hover { border-color: var(--border-bright); background: var(--surface-2); }
.contact-channel-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(79, 255, 146, 0.08); display: flex;
  align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0;
}
.contact-channel-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 4px;
}
.contact-channel-value { font-size: 15px; color: var(--text); }
.contact-form {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: 24px; padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.form-field input, .form-field textarea, .form-field select {
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input); color: var(--text);
  font-family: var(--font-body); font-size: 15px; transition: all 0.2s ease; width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--primary); background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(79, 255, 146, 0.1);
}
.form-field textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
.form-submit {
  width: 100%; padding: 16px; background: var(--primary); color: var(--bg);
  border: none; border-radius: var(--radius-input);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  cursor: pointer; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.form-submit:hover { box-shadow: 0 0 30px rgba(79, 255, 146, 0.5); transform: translateY(-1px); }
.form-note {
  margin-top: 16px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint); text-align: center; letter-spacing: 0.05em;
}
@media (max-width: 1024px) { .contact-wrapper { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 640px) { .contact-form { padding: 28px; } .form-row { grid-template-columns: 1fr; } }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-subtle); padding: 60px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-muted); font-size: 14px; line-height: 1.6;
  margin-top: 20px; max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.footer-locale { display: flex; align-items: center; gap: 8px; }
.footer-locale::before {
  content: ''; width: 6px; height: 6px; background: var(--primary);
  border-radius: 50%; box-shadow: 0 0 8px var(--primary);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ─── Legal pages ────────────────────────────────────────────────────────────── */
.legal-article { max-width: 720px; margin: 0 auto; padding: 160px 24px 80px; }
.legal-article h1 {
  font-family: var(--font-display); font-size: 56px;
  margin-bottom: 24px; line-height: 1.05;
}
.legal-article h2 {
  font-family: var(--font-display); font-size: 32px;
  margin: 40px 0 16px; color: var(--primary); font-weight: 400;
}
.legal-article p, .legal-article li {
  color: var(--text-muted); line-height: 1.7; margin-bottom: 16px;
}
.legal-article ul { padding-left: 24px; margin-bottom: 16px; }
.legal-article a { color: var(--primary); text-decoration: underline; }