/* ============================================================
   NSUrbanist — Premium Dark Design System
   ============================================================ */

:root {
  /* Core Palette */
  --navy:        #050D1A;
  --navy-mid:    #0B1F3A;
  --navy-card:   #0E2040;
  --blue:        #3D7FFF;
  --blue-bright: #5A9FFF;
  --teal:        #0EBACC;
  --glow:        rgba(61, 127, 255, 0.4);

  /* Backgrounds */
  --bg:          #050D1A;
  --bg-alt:      #080F1E;
  --bg-card:     rgba(14, 32, 64, 0.6);

  /* Text */
  --text:        #E8F0FF;
  --text-muted:  #7A96C0;
  --text-faint:  #3D5A80;

  /* Borders & Lines */
  --line:        rgba(61, 127, 255, 0.12);
  --card-border: rgba(61, 127, 255, 0.18);

  /* Design tokens */
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(61, 127, 255, 0.2);
  --container:   1280px;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);

  /* Upgrade tokens */
  --accent:        var(--teal);
  --radius-sm:     8px;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --grad-card:     linear-gradient(135deg, rgba(61,127,255,0.14), rgba(14,186,204,0.06));
  --grad-border:   linear-gradient(135deg, var(--blue), var(--teal));
  --tick-dot:      var(--teal);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
}

/* Keep section headings clear of the sticky navbar when jumping to anchors */
section[id] {
  scroll-margin-top: 88px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

/* ============================================================
   Custom Cursor
   ============================================================ */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(61, 127, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.18s var(--ease);
}

.cursor-dot.hover { width: 12px; height: 12px; background: var(--teal); }
.cursor-ring.hover { width: 52px; height: 52px; border-color: var(--teal); opacity: 0.6; }

/* ============================================================
   Scroll Progress Bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--blue);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 26, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(5, 13, 26, 0.92);
  border-color: rgba(61, 127, 255, 0.22);
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: none;
}

.brand-logo { height: 38px; width: auto; filter: brightness(1.1); }

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
  cursor: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.25s var(--ease);
}

.nav-link.active {
  color: var(--blue-bright);
}
.nav-link.active::after {
  width: 100%;
}

/* ============================================================
   SaaS Components (Pill, Mockup Frame, Posts & Metrics)
   ============================================================ */
.saas-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 127, 255, 0.12);
  border: 1px solid rgba(61, 127, 255, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-bright);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(61, 127, 255, 0.15);
}
.pill-spark { font-size: 1rem; }

/* Dashboard Mockup Frame */
.saas-mockup-container {
  margin-top: 48px;
  width: 100%;
  max-width: 960px;
  background: rgba(10, 20, 38, 0.85);
  border: 1px solid rgba(61, 127, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.saas-mockup-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(5, 13, 26, 0.95);
  border-bottom: 1px solid rgba(61, 127, 255, 0.15);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.mockup-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mockup-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.saas-mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 240px;
}

.mockup-sidebar {
  background: rgba(5, 13, 26, 0.6);
  border-right: 1px solid rgba(61, 127, 255, 0.15);
  padding: 16px;
}

.mockup-layer-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mockup-layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.mockup-layer-item.active {
  background: rgba(61, 127, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(61, 127, 255, 0.3);
}

.layer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.layer-dot.green { background: #10B981; }
.layer-dot.blue { background: #6366F1; }
.layer-dot.purple { background: #A855F7; }

.mockup-canvas-view {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(61, 127, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.mockup-data-card {
  position: absolute;
  background: rgba(5, 13, 26, 0.85);
  border: 1px solid rgba(61, 127, 255, 0.25);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.card-1 { top: 20px; right: 30px; }
.card-2 { bottom: 20px; left: 30px; }

.card-label { font-size: 0.7rem; color: var(--text-muted); }
.card-val { font-size: 1.1rem; font-weight: 700; color: var(--blue-bright); }

/* Posts Cards & Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  margin-top: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(10, 20, 38, 0.6);
  border: 1px solid rgba(61, 127, 255, 0.15);
  transition: all 0.3s var(--ease);
}

.post-card:hover {
  border-color: rgba(61, 127, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(61, 127, 255, 0.15);
}

.post-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 13, 26, 0.85);
  border: 1px solid rgba(61, 127, 255, 0.3);
  color: var(--blue-bright);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

.post-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-body h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-body h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-body h3 a:hover {
  color: var(--blue-bright);
}

.post-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.post-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-bright);
  margin-top: auto;
}

.posts-more {
  text-align: center;
  margin-top: 48px;
}

/* Metrics Stats Section (removed from page; styles kept for reference) */

@media (max-width: 768px) {
  .saas-mockup-body {
    grid-template-columns: 1fr;
  }
  .mockup-sidebar {
    display: none;
  }
}

.nav-link.nav-cta {
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2655CC);
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 127, 255, 0.3);
  box-shadow: 0 0 16px rgba(61, 127, 255, 0.25);
  transition: all 0.25s var(--ease);
}

.nav-link.nav-cta::after { display: none; }

.nav-link.nav-cta:hover {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  box-shadow: 0 0 28px rgba(61, 127, 255, 0.5);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: transform 0.25s ease, opacity 0.25s ease;
  border-radius: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: none;
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #2050CC 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(61, 127, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(61, 127, 255, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--blue-bright);
  border-color: rgba(61, 127, 255, 0.35);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(61, 127, 255, 0.1);
  box-shadow: 0 4px 20px rgba(61, 127, 255, 0.2);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 127, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 127, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Radial glow orbs */
.hero-contour {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 127, 255, 0.22), transparent 70%);
  top: -10%;
  left: -5%;
  animation-duration: 14s;
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 186, 204, 0.15), transparent 70%);
  bottom: -5%;
  right: 5%;
  animation-delay: -5s;
  animation-duration: 11s;
}

.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(61, 127, 255, 0.12), transparent 70%);
  top: 40%;
  left: 55%;
  animation-delay: -9s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Hero Canvas for particles */
#heroCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px; /* Expanded for 4-column services grid spacing */
  width: 100%;
}

/* Live Status Badge Styling */
.hero-status-container {
  margin-bottom: 24px;
  display: inline-block;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 127, 255, 0.05);
  border: 1px solid rgba(61, 127, 255, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue-bright);
}

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

@keyframes statusPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-services-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-services-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(232, 240, 255, 0.72);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}



@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 112px 0;
}

.section-alt {
  background: var(--bg-alt);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.section-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============================================================
   Grid
   ============================================================ */
.grid {
  display: grid;
  gap: 24px;
}

/* Grid children must never force tracks wider than the viewport */
.grid > * { min-width: 0; }

/* ============================================================
   Cards (Glassmorphism)
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 127, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: rgba(61, 127, 255, 0.35);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.icon {
  width: 36px;
  height: 36px;
  color: var(--teal);
  margin-bottom: 22px;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(14, 186, 204, 0.4));
}

/* ============================================================
   Values
   ============================================================ */
#values {
  position: relative;
  overflow: hidden;
}

/* GIS-style coordinate dot-matrix background */
.values-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(61, 127, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow behind core values */
.values-glow-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 186, 204, 0.06), transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  top: 15%;
  right: -10%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   Section background decorations (shared)
   ============================================================ */
/* GIS dot-matrix texture */
.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(61, 127, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  pointer-events: none;
  z-index: 0;
}

/* Map graticule: faint latitude/longitude grid */
.bg-latlon {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 127, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 127, 255, 0.05) 1px, transparent 1px);
  background-size: 110px 110px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow orb variants with breathing animation */
@keyframes orbPulse {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.7; }
  50% { transform: scale(1.15) translateY(-12px); opacity: 0.95; }
}

.bg-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 9s ease-in-out infinite;
}
.bg-glow--blue { background: radial-gradient(circle, rgba(61, 127, 255, 0.09), transparent 70%); }
.bg-glow--teal { background: radial-gradient(circle, rgba(14, 186, 204, 0.08), transparent 70%); }
.bg-glow--purple { background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%); }
.bg-glow--tl { top: -12%; left: -12%; }
.bg-glow--tr { top: -12%; right: -12%; }
.bg-glow--bl { bottom: -12%; left: -12%; }
.bg-glow--br { bottom: -12%; right: -12%; }

/* Sections that use decorations need relative positioning + clipped overflow */
#pricing, #workflow, #portfolio, #posts, #about, #contact {
  position: relative;
  overflow: hidden;
}
/* Keep section content above the decorations */
#pricing .container,
#workflow .container,
#portfolio .container,
#posts .container,
#about .container,
#contact .container {
  position: relative;
  z-index: 1;
}

/* Glowing Neon Section Dividers */
.section {
  position: relative;
}
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 127, 255, 0.22), rgba(14, 186, 204, 0.35), rgba(61, 127, 255, 0.22), transparent);
  pointer-events: none;
}

/* Glassmorphism Cards & Neon Hover Elevation */
.pricing-card,
.portfolio-card,
.post-card,
.contact-card,
.value-chip {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(61, 127, 255, 0.18) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pricing-card:hover,
.portfolio-card:hover,
.post-card:hover,
.contact-card:hover,
.value-chip:hover {
  border-color: rgba(14, 186, 204, 0.5) !important;
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -10px rgba(14, 186, 204, 0.24),
              0 0 25px 2px rgba(61, 127, 255, 0.18) !important;
}


.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.value-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.value-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.value-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(61, 127, 255, 0.05);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(61, 127, 255, 0.1);
  transition: all 0.3s var(--ease);
}

.value-card:hover .value-num {
  color: var(--blue-bright);
  border-color: rgba(61, 127, 255, 0.3);
  background: rgba(61, 127, 255, 0.12);
  box-shadow: 0 0 10px rgba(61, 127, 255, 0.15);
}

/* Compact value strip (merged Values + Workflow) */
.values-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.value-chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value-chip:hover {
  border-color: rgba(61, 127, 255, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.value-chip .value-num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

.value-chip .icon {
  width: 22px;
  height: 22px;
  color: var(--blue-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-chip h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.value-chip p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Icon micro-animations */
.value-card .icon {
  margin-bottom: 0;
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.value-card:hover .icon {
  transform: scale(1.1) rotate(3deg);
  color: var(--teal);
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(8, 20, 40, 0.15);
  /* GIS grid texture inside cards */
  background-image: 
    radial-gradient(rgba(61, 127, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid rgba(61, 127, 255, 0.1);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(61, 127, 255, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.service-card:hover {
  border-color: rgba(61, 127, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  transform: translateY(-4px);
}

.service-card:hover::after { opacity: 1; }

.meta-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  transition: color 0.35s ease;
  z-index: 1;
}

.service-card:hover .meta-tag {
  color: var(--teal);
}

.service-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(61, 127, 255, 0.08);
  border: 1px solid rgba(61, 127, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: all 0.35s ease;
}

.service-card:hover .service-icon-wrapper {
  background: rgba(14, 186, 204, 0.12);
  border-color: var(--teal);
  box-shadow: 0 0 14px rgba(14, 186, 204, 0.25);
}

.service-card .icon {
  width: 20px;
  height: 20px;
  margin: 0;
  color: var(--blue-bright);
  transition: transform 0.4s var(--ease), color 0.35s ease;
}

.service-card:hover .icon {
  transform: scale(1.1) rotate(4deg);
  color: var(--teal);
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Animated Radar Sweep */
.radar-sweep {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(14, 186, 204, 0.04) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}

.service-card:hover .radar-sweep {
  opacity: 1;
  animation: radarScan 2.5s infinite linear;
}

@keyframes radarScan {
  0% { transform: scale(0.6); opacity: 0.2; }
  50% { opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================
   Pricing — SaaS Project-Based / Milestone Cards
   ============================================================ */
#pricing {
  position: relative;
  overflow: hidden;
}

/* Ambient background glow for pricing section */
.pricing-glow-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(61, 127, 255, 0.05), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  bottom: -10%;
  left: -10%;
  pointer-events: none;
  z-index: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
  align-items: stretch;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.3s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 127, 255, 0.3);
}

.pricing-card.recommended {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--navy-card), var(--navy)) padding-box,
    var(--grad-border) border-box;
  box-shadow: 0 16px 48px rgba(61,127,255,.18), 0 0 30px rgba(14,186,204,.12);
}
.pricing-card.recommended .recommended-badge { box-shadow: 0 0 18px var(--blue); }

.recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 0 12px var(--blue);
}

.plan-header h3 {
  font-size: 1.28rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}

.plan-header .price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.plan-header .period {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 36px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.plan-features li::before {
  content: none;
}

.plan-features .check-icon {
  margin-right: 8px;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.pricing-card .btn::after {
  content: '→';
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .25s var(--ease);
}
.pricing-card .btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   Workflow — Premium Card Timeline
   ============================================================ */
.workflow-wrapper {
  position: relative;
}

/* Vertical spine line */
.workflow-line {
  position: absolute;
  top: 36px;
  left: calc(12.5% - 1px);
  width: 2px;
  height: calc(100% - 72px);
  background: var(--card-border);
  z-index: 0;
  overflow: hidden;
  display: none; /* only shown on ≤1100px two-column */
}

/* Horizontal line for desktop 4-col */
.workflow-line-h {
  position: absolute;
  top: 36px;
  left: calc(12.5% + 36px);
  right: calc(12.5% + 36px);
  height: 2px;
  background: var(--card-border);
  z-index: 0;
  overflow: hidden;
}

.workflow-line-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px rgba(14, 186, 204, 0.55);
}

.workflow-line.animated .workflow-line-fill,
.workflow-line-h.animated .workflow-line-fill {
  width: 100%;
}

.workflow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.workflow-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  backdrop-filter: blur(12px);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
  overflow: hidden;
}

/* Top accent bar */
.workflow-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.workflow-step.active::before {
  transform: scaleX(1);
}

.workflow-step.active {
  border-color: rgba(61, 127, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 32px rgba(61,127,255,0.12);
  transform: translateY(-4px);
}

.workflow-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.workflow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(61,127,255,0.08);
  border: 1px solid rgba(61,127,255,0.2);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.4s var(--ease);
  flex-shrink: 0;
}

.workflow-step.active .workflow-num {
  background: linear-gradient(135deg, var(--blue) 0%, #1e50cc 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(61,127,255,0.45);
}

.workflow-step-icon {
  width: 28px;
  height: 28px;
  color: var(--text-faint);
  transition: color 0.35s ease, filter 0.35s ease;
  flex-shrink: 0;
}

.workflow-step.active .workflow-step-icon {
  color: var(--teal);
  filter: drop-shadow(0 0 6px rgba(14,186,204,0.5));
}

.workflow-step h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.3s ease;
}

.workflow-step.active h3 { color: #fff; }

.workflow-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.68;
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
  cursor: none;
  border-radius: var(--radius-lg);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-border);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}
.portfolio-card:hover::before { opacity: 1; }

.portfolio-thumb {
  position: relative;
  height: 220px;
  background: var(--navy-mid);
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 26, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.portfolio-body {
  padding: 24px 28px;
}

/* Stack badges — tech tags for text-only portfolio cards */
.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
}
.stack-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(14, 186, 204, 0.1);
  color: var(--teal);
  border: 1px solid rgba(14, 186, 204, 0.28);
}

.portfolio-caption {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.portfolio-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.portfolio-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Portfolio filter tabs */
.portfolio-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: none;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, rgba(61, 127, 255, 0.22), rgba(14, 186, 204, 0.14));
  border-color: var(--blue-bright);
  color: #fff;
  box-shadow: 0 0 12px rgba(61, 127, 255, 0.2);
}

/* ============================================================
   About
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-points {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-points li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--text);
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(14, 186, 204, 0.5);
}

/* About signature (removed from page) */

/* Platform availability badges */
.platform-note { margin-top: 28px; }

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.platform-badge:hover {
  border-color: rgba(61, 127, 255, 0.5);
  color: var(--blue-bright);
  transform: translateY(-2px);
}

.platform-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   Globe (About Visual) — orbiting instrument panel
   ============================================================ */
.globe-panel {
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, rgba(13, 26, 49, 0.92), rgba(6, 14, 29, 0.92));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.globe-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 127, 255, 0.7), transparent);
}

.globe-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 14px;
  line-height: 1;
}

.globe-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(14, 186, 204, 0.8);
  animation: globePulse 2.2s ease-in-out infinite;
}

.globe-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.globe-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--teal);
  background: rgba(14, 186, 204, 0.08);
  border: 1px solid rgba(14, 186, 204, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.node-map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

#nodeMapCanvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  background: radial-gradient(circle at 50% 42%, rgba(18, 44, 84, 0.9), rgba(5, 13, 26, 0.95) 72%);
  box-shadow: 0 0 40px rgba(61, 127, 255, 0.16), inset 0 0 30px rgba(5, 13, 26, 0.5);
}

.globe-orbit {
  position: absolute;
  inset: -6.5%;
  border-radius: 50%;
  border: 1px dashed rgba(61, 127, 255, 0.28);
  animation: globeSpin 20s linear infinite;
  pointer-events: none;
}

.globe-orbit::after {
  content: '';
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.globe-panel-foot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px 2px;
  font-family: monospace;
}

.gfoot-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.gfoot-cell-end {
  margin-left: auto;
  text-align: right;
}

.gfoot-label {
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.gfoot-value {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}

@keyframes globeSpin {
  to { transform: rotate(360deg); }
}

@keyframes globePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-inner .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 560px;
}

.contact-inner .section-head .section-tag {
  justify-content: center;
}

.contact-inner .section-head .section-tag::before { display: none; }

.contact-grid {
  grid-template-columns: 1fr 1.6fr;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.contact-info-item:hover { color: var(--blue-bright); }

.contact-info-item a { overflow-wrap: anywhere; }

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(61, 127, 255, 0.08);
  border: 1px solid rgba(61, 127, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  transition: all 0.25s ease;
}

.contact-info-item:hover .contact-info-icon {
  background: rgba(61, 127, 255, 0.15);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(61, 127, 255, 0.25);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 13px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(14, 32, 64, 0.4);
  color: var(--text);
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(4px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 127, 255, 0.12), 0 0 16px rgba(61, 127, 255, 0.08);
}

.contact-form .btn { align-self: flex-start; margin-top: 4px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo { height: 34px; width: auto; opacity: 0.85; }

.footer-tagline {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-faint);
  transition: color 0.2s ease;
  cursor: none;
}

.footer-links a:hover { color: var(--blue-bright); }

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .workflow {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Hide horizontal line, show nothing on tablet (2x2 grid) */
  .workflow-line-h { display: none; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .node-map-container {
    max-width: none;
  }

  .globe-panel {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(5, 13, 26, 0.97);
    backdrop-filter: blur(20px);
    padding: 16px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    color: var(--text-muted);
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-link.nav-cta {
    background: none;
    border: none;
    padding: 14px 0;
    box-shadow: none;
    width: auto;
  }

  .nav-toggle { display: flex; }

  .values-grid,
  .services-grid,
  .workflow,
  .portfolio-grid,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    gap: 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .hero {
    padding: 100px 0 70px;
    min-height: auto;
  }

  .hero-services {
    margin-top: 48px !important;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .meta-tag {
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
  }

  .about-inner { gap: 36px; }

  .globe-panel {
    max-width: 360px;
    padding: 14px 14px 12px;
  }

  .globe-panel-foot {
    gap: 16px;
  }

  .gfoot-value {
    font-size: 0.7rem;
  }

  /* Mobile polish */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: clamp(1.7rem, 6vw, 2.1rem); }
  .section-lead { font-size: 0.98rem; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); letter-spacing: -0.02em; margin-bottom: 22px; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 32px; }
  .about-stats-grid { gap: 12px; margin: 24px 0; }
  .about-stats-grid .stat-card { padding: 14px 10px; }
  .contact-form .btn { align-self: stretch; width: 100%; }
  .posts-more { text-align: center; }
  .posts-more .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: auto;
  }

  .section-head .section-title br { display: none; }
}

/* ============================================================
   Interactive WebGIS Section
   ============================================================ */
.webgis-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
  position: relative;
}

@media (max-width: 992px) {
  .webgis-container {
    grid-template-columns: 1fr;
  }
}

.webgis-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.webgis-sidebar h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}

.sidebar-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.layer-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(11, 31, 58, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
}

.layer-btn:hover {
  background: rgba(61, 127, 255, 0.1);
  border-color: var(--blue-bright);
  color: #fff;
}

.layer-btn.active {
  background: rgba(61, 127, 255, 0.18);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 15px rgba(61, 127, 255, 0.15);
}

.layer-num {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
}

.layer-btn div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.layer-btn div strong {
  font-size: 0.95rem;
}

.layer-btn div span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gis-dashboard {
  background: rgba(5, 13, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  flex-grow: 1;
  min-height: 180px;
}

.gis-dashboard h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin: 0 0 12px 0;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.faint-text {
  font-size: 0.85rem;
  color: var(--text-faint);
  line-height: 1.5;
  margin: 0;
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  min-height: 480px;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  z-index: 1;
  background: #050d1a !important;
}

/* Custom Leaflet Dark Mode popups styling */
.leaflet-popup-content-wrapper {
  background: var(--navy-card) !important;
  color: var(--text) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
}
.leaflet-popup-tip {
  background: var(--navy-card) !important;
  border: 1px solid var(--card-border) !important;
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--text-muted) !important;
}

.map-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 13, 26, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.map-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(61, 127, 255, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pricing Tag Pills & SVG Check Icons */
.pricing-tag-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(61, 127, 255, 0.12);
  color: var(--blue-bright);
  border: 1px solid rgba(61, 127, 255, 0.25);
  margin-bottom: 14px;
}

.pricing-tag-pill.highlight {
  background: rgba(14, 186, 204, 0.15);
  color: var(--teal);
  border-color: rgba(14, 186, 204, 0.35);
}

.check-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* About Stats Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.stat-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(61, 127, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 20px -6px rgba(14, 186, 204, 0.25);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fff, var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================================
   Shared Polish (upgrade)
   ============================================================ */
.card-accent-top { position: relative; }
.card-accent-top::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-border); opacity: .55;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
}
.hairline { border-color: var(--card-border) !important; }

:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
a:focus-visible, button:focus-visible, .filter-btn:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Mobile Refinements (phase 2)
   ============================================================ */
body.nav-open { overflow: hidden; }

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: transparent; }

  /* Bound the hero map so the whole world is visible (not cut off / over-zoomed)
     and it doesn't stretch across the entire hero section */
  #heroCanvas {
    top: 40px;
    height: clamp(230px, 55vw, 360px);
    width: 100%;
    opacity: 0.6;
  }

  /* Tighter buttons on phones — visible but not oversized */
  .btn {
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  /* Compact top bar on phones */
  .navbar-inner { height: 64px; }
  .nav-links { top: 64px; }
  .brand-logo { height: 32px; }
  section[id] { scroll-margin-top: 80px; }

  /* Prevent iOS auto-zoom when focusing form fields */
  .contact-form input,
  .contact-form textarea,
  .contact-form button { font-size: 16px; }

  /* Bigger touch targets */
  .filter-btn { padding: 10px 18px; }
  .platform-badge { padding: 10px 16px; }
  .footer-links a { padding: 4px 0; }

  /* Slightly larger small body text for readability */
  .service-card p { font-size: 0.86rem; }
  .plan-features li { font-size: 0.94rem; }
  .portfolio-body p { font-size: 0.92rem; }
  .post-body p { font-size: 0.9rem; }
  .section-lead { font-size: 1rem; }

  /* Keep hero live-status ticker on one line */
  .hero-status-container { max-width: 100%; }
  .hero-status { max-width: 100%; }
  .hero-status .status-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Lighter background effects on small screens (performance/battery) */
  .card,
  .pricing-card,
  .portfolio-card,
  .post-card,
  .contact-card,
  .value-chip,
  .globe-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glow-orb,
  .bg-glow { filter: blur(60px); }
}

@media (max-width: 480px) {
  .btn { padding: 11px 18px; font-size: 0.9rem; }
  .hero-subtitle { line-height: 1.65; }
  .globe-panel { max-width: 100%; }
  .gfoot-label { letter-spacing: 0.16em; }
}



