/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

/* ── CSS Variables — Graphite Modern (lighter) ─────────────────── */
:root {
  --bg: #242428;
  --surface: #2e2e34;
  --card: #2e2e34;
  --border: rgba(255,255,255,0.09);
  --border2: rgba(52,211,153,0.4);
  --text: #fafafa;
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.5);
  --accent: #34d399;
  --accent-dark: #0f1f17;
  --accent2: #10b981;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; line-height: 1.15; }
h1 { font-weight: 900; font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-weight: 900; font-size: clamp(1.85rem, 4.2vw, 3rem); }
h3 { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }

p { font-weight: 500; }

.label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }

/* ── Navigation ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
  background: rgba(36,36,40,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .nav-links { margin-left: auto; }
nav .nav-cta { margin-left: 8px; }

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

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

.nav-cta {
  background: var(--accent);
  color: var(--accent-dark);
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: filter 0.2s;
}

.nav-cta:hover { filter: brightness(1.15); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

#mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 20px 24px;
  gap: 14px;
  z-index: 199;
}

#mobile-menu.open { display: flex; }

#mobile-menu a {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 0;
  letter-spacing: 0.04em;
}

#mobile-menu a:hover { color: var(--accent); }

/* ── Components: Card ──────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  border-color: var(--border2);
}

.card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 1rem; font-weight: 500; line-height: 1.6; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.card-link:hover { opacity: 0.8; }

/* ── Components: Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-dark);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: filter 0.2s, transform 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--border2);
  color: var(--text);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Components: Badge ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-blue { background: rgba(96,165,250,0.15); color: #93c5fd; }
.badge-green { background: rgba(52,211,153,0.18); color: #6ee7b7; }
.badge-gold { background: rgba(234,179,8,0.15); color: #facc15; }

/* ── Components: Toast ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface);
  border: 1px solid var(--border2);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Animations ────────────────────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 100px;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 680px;
  margin: 20px auto 40px;
  line-height: 1.55;
  font-weight: 500;
}

.hero .label { margin-bottom: 20px; display: inline-block; font-size: 0.9rem; }

.stats-strip {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted2);
  letter-spacing: 0.08em;
  margin-top: 6px;
  font-weight: 700;
}

/* ── Hero Image (photo background variant) ────────────────────── */
.hero-image { background-color: var(--bg); }
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(52,211,153,0.06) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(36,36,40,0.6) 100%);
  pointer-events: none;
}
.hero-image .hero-content {
  background: rgba(20,20,24,0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 40px 48px;
  border-radius: 16px;
  border: 1px solid rgba(52,211,153,0.18);
}

/* ── Page Header (services.html) ───────────────────────────────── */
.page-header {
  padding: 160px 24px 60px;
  text-align: center;
}
.page-header .label { display: inline-block; margin-bottom: 16px; }
.page-header h1 { margin-bottom: 20px; }
.page-header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 500;
}

/* ── Service Block (services.html alternating layout) ──────────── */
.service-block {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.service-block:nth-of-type(odd) { background: var(--surface); }
.service-block .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-block.reverse .container { grid-template-columns: 1fr 1.05fr; }

.service-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  position: relative;
}
.service-frame img { width: 100%; height: auto; display: block; }
.service-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(52,211,153,0.08) 100%);
  pointer-events: none;
}
.service-frame img { width: 100%; height: auto; display: block; }

.service-content .label { display: inline-block; margin-bottom: 14px; }
.service-content h2 {
  margin-bottom: 18px;
  line-height: 1.15;
}
.service-content > p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 24px;
}
.capabilities {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.capabilities li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}
.capabilities li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
}
.capabilities li strong {
  color: var(--text);
  font-weight: 800;
  display: inline;
}
.best-for {
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
}
.best-for strong {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 900px) {
  .service-block .container,
  .service-block.reverse .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* On mobile, image always appears first regardless of reverse */
  .service-block.reverse .service-frame { order: -1; }
}

/* ── Coverage (island-wide map section) ────────────────────────── */
.coverage { padding: 80px 0; background: var(--surface); }
.coverage .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.coverage-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.coverage-frame img { width: 100%; height: auto; display: block; }
.coverage-caption .label { display: inline-block; margin-bottom: 16px; }
.coverage-caption h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.coverage-caption p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
}
@media (max-width: 900px) {
  .coverage .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Showcase (image + caption) ────────────────────────────────── */
.showcase { padding: 60px 0 80px; }
.showcase .container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
.showcase-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.showcase-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52,211,153,0) 60%, rgba(52,211,153,0.08) 100%);
  pointer-events: none;
}
.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.showcase-caption .label { display: inline-block; margin-bottom: 16px; }
.showcase-caption h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.showcase-caption p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
}

@media (max-width: 900px) {
  .showcase .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Steps / How It Works ──────────────────────────────────────── */
.steps {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step::after {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: var(--border2);
}

.step:last-child::after { display: none; }

.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; font-weight: 500; }

/* ── Differentiators ───────────────────────────────────────────── */
.diff-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.diff-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.diff-card h3 { margin-bottom: 6px; font-size: 1.3rem; }
.diff-card p { color: var(--muted); font-size: 1rem; font-weight: 500; line-height: 1.55; }

/* ── Trust / Logos ─────────────────────────────────────────────── */
.logo-bar {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.5;
}

.logo-bar img { height: 28px; }

/* ── CTA Section ───────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--muted); margin-bottom: 36px; font-size: 1.2rem; font-weight: 500; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  color: var(--muted2);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ── Admin ─────────────────────────────────────────────────────── */
.admin-nav {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.admin-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
}

.tab-btn:hover {
  border-color: var(--border2);
  color: var(--text);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 48px 0; }

  .hamburger { display: flex; }
  nav > .nav-links, nav > .nav-cta { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .stats-strip { flex-wrap: wrap; gap: 24px; }
  .hero { min-height: 70vh; }

  .steps {
    flex-direction: column;
    gap: 32px;
  }

  .step::after { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
}
