:root {
  --bg-deep: #020e0a;
  --bg-dark: #041510;
  --bg-card: #071e15;
  --bg-card2: #0a2a1c;
  --accent: #00e87a;
  --accent-dim: #00b85f;
  --accent-glow: rgba(0, 232, 122, 0.18);
  --accent-glow2: rgba(0, 232, 122, 0.07);
  --gold: #f0a500;
  --text: #d4f0e0;
  --text-muted: #6a9e82;
  --text-dim: #2d6647;
  --border: rgba(0, 232, 122, 0.15);
  --border-bright: rgba(0, 232, 122, 0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

#circuit-canvas {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.35; pointer-events: none;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px);
  pointer-events: none; z-index: 1;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(2,14,10,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.2rem;
  color: var(--gold); letter-spacing: 0.12em; text-decoration: none;
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-logo .rune { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 0; }
nav ul li a {
  color: var(--text-muted); text-decoration: none; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Share Tech Mono', monospace;
  padding: 0.5rem 0.9rem; display: block;
  transition: color 0.2s, background 0.2s;
  border-right: 1px solid var(--border);
}
nav ul li:first-child a { border-left: 1px solid var(--border); }
nav ul li a:hover, nav ul li a.active { color: var(--accent); background: var(--accent-glow2); }

.nav-cta {
  background: transparent; border: 1px solid var(--accent-dim);
  color: var(--accent) !important; padding: 0.45rem 1.1rem !important;
  border-radius: 3px; margin-left: 1rem;
  border-right: none !important; border-left: none !important;
  transition: box-shadow 0.2s, background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-glow) !important; box-shadow: 0 0 16px var(--accent-glow); }

/* ── LAYOUT ── */
section { position: relative; z-index: 2; padding: 5.5rem 3rem; }
.container { max-width: 1160px; margin: 0 auto; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; z-index: 2;
  min-height: 52vh; display: flex; align-items: flex-end;
  padding: 8rem 3rem 4rem; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,232,122,0.03) 0%, transparent 100%);
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; width: 100%; }

.breadcrumb {
  font-family: 'Share Tech Mono', monospace; font-size: 0.68rem;
  color: var(--text-dim); letter-spacing: 0.15em; margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; }

.page-hero h1 {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.6rem); color: #fff;
  letter-spacing: 0.04em; line-height: 1.08; margin-bottom: 1rem;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero h1 .gold { color: var(--gold); }

.page-hero-sub {
  color: var(--text-muted); font-size: 1rem; max-width: 600px;
  line-height: 1.8; margin-bottom: 1.5rem;
}

.hero-icon {
  font-size: 3.5rem; display: block; margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-tag-item {
  font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
  color: var(--accent-dim); border: 1px solid rgba(0,184,95,0.3);
  padding: 0.25rem 0.65rem; border-radius: 2px; letter-spacing: 0.06em;
}

/* ── TYPOGRAPHY ── */
.section-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
h2 {
  font-family: 'Cinzel', serif; font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700; color: #fff; letter-spacing: 0.04em; margin-bottom: 0.9rem;
}
h3 {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600;
  color: #e0f5ea; letter-spacing: 0.06em; margin-bottom: 0.6rem;
}
h4 {
  font-family: 'Cinzel', serif; font-size: 0.9rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.3rem;
}
.section-intro {
  color: var(--text-muted); max-width: 560px; font-size: 0.95rem;
  margin-bottom: 3rem; line-height: 1.8;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: #020e0a; font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 2rem; border: none; border-radius: 3px; cursor: pointer;
  text-decoration: none; display: inline-block; font-weight: 700;
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(0,232,122,0.45); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--accent); font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 2rem; border: 1px solid var(--accent-dim); border-radius: 3px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover { background: var(--accent-glow2); box-shadow: 0 0 14px var(--accent-glow); }

/* ── SERVICE DETAIL CARDS ── */
.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-bottom: 4rem;
}
.detail-card {
  background: var(--bg-card); padding: 2rem 1.8rem;
  position: relative; overflow: hidden; transition: background 0.25s;
}
.detail-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--accent);
  transition: height 0.35s ease;
}
.detail-card:hover::before { height: 100%; }
.detail-card:hover { background: var(--bg-card2); }
.detail-card .icon { font-size: 1.8rem; margin-bottom: 1rem; display: block; }
.detail-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.75; }
.detail-num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-family: 'Cinzel', serif; font-size: 0.65rem; color: var(--text-dim);
}
.mini-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.mini-tag {
  font-family: 'Share Tech Mono', monospace; font-size: 0.62rem;
  color: var(--accent-dim); border: 1px solid rgba(0,184,95,0.25);
  padding: 0.15rem 0.5rem; border-radius: 2px;
}

/* ── TWO-COL LAYOUT ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
.two-col-center { align-items: center; }

/* ── PROCESS STEPS ── */
.process-steps { display: flex; flex-direction: column; }
.pstep {
  display: flex; gap: 1.5rem; padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}
.pstep:first-child { border-top: 1px solid var(--border); }
.pstep-num {
  font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--text-dim); min-width: 2.5rem; transition: color 0.2s;
}
.pstep:hover .pstep-num { color: var(--accent); }
.pstep p { color: var(--text-muted); font-size: 0.84rem; line-height: 1.7; }

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.8rem;
}
.tool-pill {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 3px; padding: 0.6rem 0.9rem; text-align: center;
  font-family: 'Share Tech Mono', monospace; font-size: 0.68rem;
  color: var(--text-muted); letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tool-pill:hover { border-color: var(--accent-dim); color: var(--accent); background: var(--bg-card2); }

/* ── USE CASES ── */
.usecase-list { display: flex; flex-direction: column; gap: 0.8rem; }
.usecase-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.3rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 3px;
  transition: border-color 0.2s;
}
.usecase-item:hover { border-color: var(--accent-dim); }
.usecase-icon { font-size: 1.2rem; min-width: 1.5rem; margin-top: 0.1rem; }
.usecase-item h4 { font-size: 0.88rem; margin-bottom: 0.2rem; }
.usecase-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

/* ── DELIVERABLES ── */
.deliverable-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.deliverable-list li {
  font-size: 0.88rem; color: var(--text-muted); padding: 0.5rem 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.8rem;
}
.deliverable-list li::before { content: '→'; color: var(--accent); font-family: 'Share Tech Mono', monospace; }

/* ── CTA BAND ── */
.cta-band {
  position: relative; z-index: 2;
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3.5rem 3rem; text-align: center;
}
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── DIVIDER ── */
.rune-divider {
  text-align: center; color: var(--text-dim);
  font-family: 'Cinzel', serif; font-size: 1.1rem; letter-spacing: 0.45em;
  padding: 1.2rem 0; position: relative; z-index: 2;
}
.rune-divider::before, .rune-divider::after {
  content: ''; display: inline-block; width: 60px; height: 1px;
  background: var(--border); vertical-align: middle; margin: 0 1.2rem;
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 2.2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-deep);
}
.footer-logo { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem; color: var(--gold); letter-spacing: 0.12em; }
.footer-text { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.2rem; }
  nav ul { display: none; }
  section { padding: 3.5rem 1.3rem; }
  .page-hero { padding: 7rem 1.3rem 3rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── LOGO IMAGE ── */
.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,232,122,0.4));
  transition: filter 0.3s;
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 14px rgba(240,165,0,0.6));
}
