/* ============================================================
   Cornseed Limited — Corporate Website Stylesheet
   ============================================================ */

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

:root {
    --bg: #0a0b0f;
    --bg-alt: #0f1117;
    --surface: #141621;
    --surface-light: #1a1d2e;
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --text: #e2e4ea;
    --text-muted: #8b8fa3;
    --text-dim: #585c70;
    --accent: #6c8cff;
    --accent-bright: #8aa4ff;
    --accent-dim: rgba(108,140,255,0.12);
    --gradient-1: #6c8cff;
    --gradient-2: #a78bfa;
    --gradient-3: #5eead4;
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 20px;
    --nav-height: 72px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

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

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(108,140,255,0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s var(--ease);
    opacity: 0;
}
.cursor-glow.visible { opacity: 1; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(10,11,15,0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #fff;
}

.logo-mark { color: var(--accent); display: flex; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    display: block;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.nav-cta {
    padding: 8px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(108,140,255,0.3);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-container { padding: 0 20px; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10,11,15,0.97);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 80%);
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.orb-1 {
    width: 600px; height: 600px;
    background: var(--gradient-1);
    top: -200px; right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px; height: 500px;
    background: var(--gradient-2);
    bottom: -100px; left: -100px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px; height: 400px;
    background: var(--gradient-3);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 18s ease-in-out infinite 5s;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px 6px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 40%, var(--gradient-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: inherit;
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 4px 24px rgba(108,140,255,0.2);
}

.btn-primary:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(108,140,255,0.35);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.btn-block { width: 100%; justify-content: center; }

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.stat { text-align: center; }

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 768px) {
    .hero { padding: 100px 20px 60px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
    .stat-divider { display: none; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Section Common
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}

.section-description {
    max-width: 580px;
    margin: 16px auto 0;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================================
   About
   ============================================================ */
.about {
    padding: 120px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.vision-mission { display: flex; flex-direction: column; gap: 24px; }

.vm-block {
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.vm-block:hover {
    border-color: var(--border-light);
    background: rgba(255,255,255,0.04);
}

.vm-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.vm-block p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
}

.feature-card:hover {
    border-color: rgba(108,140,255,0.2);
    background: rgba(108,140,255,0.04);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-features { grid-template-columns: 1fr; }
}

/* ============================================================
   Services
   ============================================================ */
.services {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.service-card {
    position: relative;
    padding: 36px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.service-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

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

.service-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

.service-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--accent-dim);
    color: var(--accent);
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 28px;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.service-price {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.price-from {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.price-amount span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.service-featured {
    border-color: rgba(108,140,255,0.2);
    background: linear-gradient(180deg, rgba(108,140,255,0.05) 0%, var(--surface) 100%);
}

/* Regional */
.regional {
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.regional-header {
    margin-bottom: 32px;
}

.regional-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-top: 12px;
}

.regional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.regional-card {
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.regional-card:hover {
    border-color: var(--border-light);
    background: rgba(255,255,255,0.04);
}

.regional-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(94,234,212,0.1);
    color: var(--gradient-3);
    margin-bottom: 12px;
}

.regional-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.regional-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

@media (max-width: 768px) {
    .services { padding: 80px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .regional { padding: 28px; }
    .regional-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Network Map
   ============================================================ */
.network {
    padding: 120px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.map-container {
    display: block;
}

.map-wrapper {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#leafletMap {
    width: 100%;
    height: 500px;
    background: #0d0f1a;
    z-index: 1;
}

/* Leaflet control overrides — dark theme */
.leaflet-control-zoom a {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}
.leaflet-control-attribution {
    background: rgba(10,11,15,0.8) !important;
    color: var(--text-dim) !important;
    font-size: 0.6rem !important;
}
.leaflet-control-attribution a {
    color: var(--text-muted) !important;
}

/* Leaflet Popup — Glassmorphic Dark Theme */
.leaflet-popup-content-wrapper {
    background: rgba(20,22,33,0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(108,140,255,0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(108,140,255,0.1) !important;
    color: var(--text) !important;
    padding: 0 !important;
}
.leaflet-popup-content {
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
}
.leaflet-popup-tip {
    background: rgba(20,22,33,0.95) !important;
    box-shadow: none !important;
}
.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    font-size: 18px !important;
    padding: 6px 8px !important;
}
.leaflet-popup-close-button:hover {
    color: #fff !important;
}

/* Popup inner content */
.pop-popup {
    padding: 18px 20px;
    min-width: 240px;
}
.pop-popup-city {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.pop-popup-facility {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.pop-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.pop-popup-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 5px;
}
.pop-popup-tag.tag-transit {
    background: rgba(108,140,255,0.15);
    border: 1px solid rgba(108,140,255,0.35);
    color: var(--accent-bright);
}
.pop-popup-tag.tag-colo {
    background: rgba(94,234,212,0.1);
    border: 1px solid rgba(94,234,212,0.3);
    color: var(--gradient-3);
}
.pop-popup-tag.tag-ix {
    background: rgba(167,139,250,0.12);
    border: 1px solid rgba(167,139,250,0.3);
    color: var(--gradient-2);
}
.pop-popup-services {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.pop-popup-services li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.pop-popup-services li:last-child { border-bottom: none; }
.pop-popup-svc-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.pop-popup-svc-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.pop-popup-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.pop-popup-metric {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-sm);
}
.pop-popup-metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.pop-popup-metric-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Tokyo primary marker — pulsing radar */
.leaflet-tokyo-marker {
    position: relative;
    width: 40px;
    height: 40px;
}
.tokyo-marker-pulse {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: tokyoPulse 3s ease-out infinite;
    pointer-events: none;
    width: 20px;
    height: 20px;
}
.tokyo-marker-pulse:nth-child(2) { animation-delay: 1s; }
.tokyo-marker-pulse:nth-child(3) { animation-delay: 2s; }

@keyframes tokyoPulse {
    0%   { width: 20px; height: 20px; opacity: 0.7; }
    100% { width: 70px; height: 70px; opacity: 0; }
}

.tokyo-marker-core {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(108,140,255,0.3);
    border: 2px solid var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.tokyo-marker-center {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(108,140,255,0.9);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Peering edge marker */
.leaflet-peer-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(108,140,255,0.6);
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 6px rgba(108,140,255,0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.leaflet-peer-marker:hover {
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(108,140,255,0.6);
}

/* Map Legend */
.map-legend {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-primary {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(108,140,255,0.4);
}

.legend-secondary { background: rgba(108,140,255,0.5); }

.legend-line {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

@media (max-width: 768px) {
    .network { padding: 80px 0; }
    #leafletMap { height: 350px; }
    .map-legend {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
    padding: 120px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 20px 0 40px;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.contact-method:hover {
    border-color: var(--border-light);
    background: rgba(255,255,255,0.04);
}

.method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: var(--accent-dim);
    border-radius: 8px;
    flex-shrink: 0;
}

.method-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.method-value {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

/* Form */
.contact-form {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    position: relative;
    margin-bottom: 24px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 16px 0 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    transition: border-color 0.3s var(--ease);
    resize: none;
}

.form-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-field label {
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s var(--ease);
}

.form-field input:focus ~ label,
.form-field input:valid ~ label,
.form-field select:focus ~ label,
.form-field select:valid ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:valid ~ label {
    top: -2px;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.field-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.4s var(--ease);
    transform: translateX(-50%);
}

.form-field input:focus ~ .field-line,
.form-field select:focus ~ .field-line,
.form-field textarea:focus ~ .field-line {
    width: 100%;
}

@media (max-width: 768px) {
    .contact { padding: 80px 0; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col a {
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 500px) {
    .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   Scroll Animations
   ============================================================ */
[data-animate] {
    opacity: 0;
    transition: all 0.8s var(--ease);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-down"] {
    transform: translateY(-30px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger children */
[data-animate].visible[data-delay="100"] { transition-delay: 100ms; }
[data-animate].visible[data-delay="200"] { transition-delay: 200ms; }
[data-animate].visible[data-delay="300"] { transition-delay: 300ms; }
[data-animate].visible[data-delay="400"] { transition-delay: 400ms; }
[data-animate].visible[data-delay="600"] { transition-delay: 600ms; }
