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

:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --border: rgba(255,255,255,0.07);
  --accent: #00C853;
  --accent-dim: rgba(0,200,83,0.12);
  --accent-glow: rgba(0,200,83,0.25);
  --text-primary: #f0f0f0;
  --text-secondary: #888;
  --text-muted: #444;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

section, nav, footer { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, 5vw);
  height: 64px;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #00e060;
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 140px max(24px, 5vw) 72px;
  border-bottom: 1px solid var(--border);
}

.page-header .section-label {
  margin-bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 20ch;
  margin-bottom: 20px;
}

.page-header h1 em {
  font-style: normal;
  color: var(--accent);
}

.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── SECTION SHARED ── */
.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18ch;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: #00e060;
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px max(24px, 5vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-socials a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--accent); }

/* ── NAV DROPDOWN ── */
.nav-has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-caret {
  font-size: 0.6rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-has-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 769px) {
  .nav-links > li.nav-has-dropdown {
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 272px;
    background: rgba(5,5,5,0.96);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px 0;
    z-index: 200;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-has-dropdown.open .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    width: 100%;
    padding: 4px 0 4px 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: none;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }

  .nav-has-dropdown.open .nav-dropdown {
    max-height: 400px;
    opacity: 1;
    pointer-events: all;
  }
}

.nav-dropdown li {
  display: block;
}

.nav-dropdown li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  transition: color 0.15s;
  position: relative;
}

.nav-dropdown li a::after {
  content: '→';
  position: absolute;
  right: 16px;
  color: var(--accent);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}

.nav-dropdown li a:hover {
  color: var(--text-primary) !important;
}

.nav-dropdown li a:hover .nd-name {
  color: var(--text-primary);
}

.nav-dropdown li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.nd-num {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  min-width: 22px;
}

.nd-name {
  flex: 1;
  transition: color 0.15s;
}

@media (max-width: 768px) {
  .nav-dropdown li a {
    padding: 8px 4px;
    font-size: 0.8rem !important;
  }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px max(24px, 5vw);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: #00e060; }

/* ── SERVICE DETAIL CONTENT ── */
.service-detail-section {
  padding: 80px max(24px, 5vw);
  border-bottom: 1px solid var(--border);
}

.sds-label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sds-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.sds-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.sds-heading em {
  font-style: normal;
  color: var(--accent);
}

.sds-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 68ch;
  margin-bottom: 32px;
}

.sds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.sds-card {
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.3s;
}

.sds-card:hover { background: var(--accent-dim); }

.sds-card-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 700;
}

.sds-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.sds-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.sds-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.sds-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sds-list li::before {
  content: '//';
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.sds-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.sds-stat {
  background: var(--bg);
  padding: 28px 24px;
}

.sds-stat-val {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.sds-stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sds-stat-sub {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.sds-steps {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  margin-top: 32px;
}

.sds-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.sds-step:last-child { border-bottom: none; }
.sds-step:hover { background: var(--accent-dim); }

.sds-step-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.sds-step-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.sds-step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.sds-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.sds-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,200,83,0.25);
  padding: 4px 10px;
}

.sds-highlight {
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  background: var(--accent-dim);
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.sds-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── SERVICE CTA ── */
.service-cta {
  padding: 100px max(24px, 5vw);
  text-align: center;
  border-top: 1px solid var(--border);
}

.service-cta .sds-label {
  justify-content: center;
}

.service-cta .sds-label::before { display: none; }

.service-cta h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.service-cta h2 em {
  font-style: normal;
  color: var(--accent);
}

.service-cta p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 48ch;
  margin: 0 auto 36px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .sds-two-col { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-section { padding: 60px max(24px, 5vw); }
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(0,200,83,0); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: var(--accent); color: #000; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(5,5,5,0.98);
    padding: 24px max(24px,5vw);
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; }

  .nav-cta {
    font-size: 0.75rem;
    padding: 7px 14px;
  }

  footer { flex-direction: column; align-items: flex-start; gap: 24px; }
}

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

@media (max-width: 768px) {
  /* Reduce heavy top padding on mobile */
  .page-header {
    padding: 96px max(24px, 5vw) 48px;
  }

  /* Hide service-page header animations on mobile — they'd overlap text */
  .page-header > svg {
    display: none;
  }
}

