/* ==========================================
   APEXA SOLUTIONS - PREMIUM CSS DESIGN SYSTEM
   ========================================== */

/* Design Tokens & Variables */
:root {
    --color-bg: #030611;
    --color-bg-card: rgba(10, 16, 40, 0.7);
    --color-bg-card-hover: rgba(16, 26, 60, 0.85);
    --color-primary: #0f46ff;
    --color-primary-glow: rgba(15, 70, 255, 0.35);
    --color-primary-light: #00d2ff;
    --color-accent: #00f5ff;
    --color-accent-glow: rgba(0, 245, 255, 0.2);
    --color-text: #f3f6fa;
    --color-text-muted: #8ea4c1;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(0, 245, 255, 0.25);
    
    --glass-bg: rgba(5, 8, 22, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* Typography */
h1, h2, h3, h4, h5 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-muted);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 10%, var(--color-primary-light) 60%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}


/* Blockchain / Web3 Animated Canvas Background */
#blockchain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 20% 20%, #040d1f 0%, #020810 40%, #010508 100%);
}


/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 0;
    box-shadow: var(--glass-shadow);
    background: rgba(3, 5, 15, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
    transition: var(--transition-smooth);
}

.main-header.scrolled .nav-container {
    height: 68px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    /* Subtle glow to pop against dark bg — no invert so colours stay intact */
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.35)) drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

.main-header.scrolled .logo-img {
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    transition: var(--transition-smooth);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #002db3);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 70, 255, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
    display: flex;
    width: 100%;
}

.nav-btn {
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: #ffffff;
    box-shadow: 0 4px 12px var(--color-primary-glow);
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    box-shadow: 0 6px 18px rgba(0, 210, 255, 0.4);
    transform: translateY(-1px);
}

/* Mobile Nav Drawer toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    padding-top: 200px;
    padding-bottom: 120px;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.75rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-lead {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: rgba(0, 245, 255, 0.06);
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
    animation: pulseGlow 2.5s infinite;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px var(--color-accent); }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* ---- Hero Visual Trust Metrics ---- */
.hero-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: var(--glass-border);
    padding-top: 1.75rem;
    margin-top: 0.25rem;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.65rem 1.1rem;
    transition: var(--transition-fast);
}

.metric-pill:hover {
    border-color: rgba(0, 210, 255, 0.2);
    background: rgba(0, 210, 255, 0.04);
}

/* SVG Ring Gauge */
.ring-gauge {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-svg {
    width: 42px;
    height: 42px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 3;
}

.ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    animation: ringDraw 1.2s ease-out forwards;
}

.ring-fill--blue {
    stroke: var(--color-primary-light);
    filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.6));
}

@keyframes ringDraw {
    from { stroke-dasharray: 0 100; }
}

.ring-label {
    position: absolute;
    font-size: 0.6rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
    line-height: 1;
}

/* Icon Box (for non-ring metrics) */
.metric-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.18);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-box--green {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.metric-pill-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-pill-info strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.metric-pill-info span {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}


.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.visual-topology-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: auto;
}

.topology-panel {
    background: rgba(8, 12, 33, 0.65);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(15, 70, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: floatTopology 8s infinite ease-in-out;
}

/* Shared panel chrome (header bar, dots, title) */
.panel-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.25rem;
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.panel-dot.red    { background: #ef4444; }
.panel-dot.yellow { background: #f59e0b; }
.panel-dot.green  { background: #10b981; }

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    margin-left: auto;
}

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.topology-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.topology-map {
    position: relative;
    width: 100%;
    aspect-ratio: 1.05;
    background: rgba(3, 5, 15, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
}

.topology-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.line-path {
    stroke: rgba(0, 210, 255, 0.15);
    stroke-width: 2;
    transition: all 0.4s ease;
    opacity: 0.35;
}

.line-path.active {
    stroke: var(--color-primary-light);
    stroke-width: 2.5;
    stroke-dasharray: 6 4;
    animation: lineDashFlow 1.2s infinite linear;
    opacity: 1;
}

.topology-node {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(6, 10, 27, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.topology-node.node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-color: rgba(0, 210, 255, 0.25);
    background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, rgba(6, 10, 27, 0.95) 100%);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.topology-node.node-top {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.topology-node.node-left {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.topology-node.node-right {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.topology-node.node-bottom {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.topology-node:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.topology-node.node-center:hover { transform: translate(-50%, -50%) scale(1.06); }
.topology-node.node-top:hover { transform: translateX(-50%) scale(1.06); }
.topology-node.node-left:hover { transform: translateY(-50%) scale(1.06); }
.topology-node.node-right:hover { transform: translateY(-50%) scale(1.06); }
.topology-node.node-bottom:hover { transform: translateX(-50%) scale(1.06); }

.topology-node.active {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.45);
    background: rgba(0, 210, 255, 0.08);
}

.node-icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.node-label {
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.topology-node.active .node-label {
    color: #ffffff;
}

/* Telemetry Console */
.telemetry-console {
    background: #03050f;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.85rem;
    font-family: var(--font-mono);
    min-height: 94px;
}

.console-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
}

.console-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseStatus 2s infinite ease-in-out;
}

#telemetry-node-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-primary-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.console-logs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-line {
    font-size: 0.72rem;
    line-height: 1.4;
}

.log-line.info { color: var(--color-text-muted); }
.log-line.success { color: #10b981; }
.log-line.warn { color: #f59e0b; }

@keyframes floatTopology {
    0% { transform: translateY(0px) rotate(0.3deg); }
    50% { transform: translateY(-8px) rotate(-0.3deg); }
    100% { transform: translateY(0px) rotate(0.3deg); }
}

@keyframes lineDashFlow {
    to { stroke-dashoffset: -20; }
}

@keyframes pulseStatus {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Sections Global Styling */
section {
    padding: 110px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4.5rem;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 1.25rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--color-bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2.2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.06);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(15, 70, 255, 0.12);
    border: 1px solid rgba(15, 70, 255, 0.25);
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-bullets {
    margin-top: auto;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-bullets li {
    font-size: 0.85rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-bullets li::before {
    content: '→';
    color: var(--color-accent);
    font-weight: 700;
}

/* 4. TRANSACTION LIFECYCLE QA INSPECTOR */
.inspector-box {
    background: #070b1a;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.inspector-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.inspector-tab {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    transition: var(--transition-smooth);
}

.inspector-tab .step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #030611;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.inspector-tab .step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.inspector-tab:hover .step-num {
    border-color: rgba(0, 245, 255, 0.4);
    color: #ffffff;
}

.inspector-tab.active .step-num {
    border-color: var(--color-primary-light);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.inspector-tab.active .step-title {
    color: #ffffff;
}

.timeline-bar {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 10px;
    margin-bottom: 22px;
}

/* Content card */
.inspector-card {
    background: rgba(3, 6, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    opacity: 1;
    transform: translateY(0);
}

.inspector-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inspector-indicator {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.inspector-header h3 {
    font-size: 1.8rem;
    color: #ffffff;
}

.inspector-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.inspector-column h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-light);
    margin-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.5rem;
}

.inspector-column p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.inspector-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inspector-list li {
    font-size: 0.9rem;
    color: var(--color-text);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.4;
}

.inspector-list li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Why Choose Apexa */
.why-us-section {
    border-top: var(--glass-border);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.why-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    transform: translateY(-4px);
}

.why-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 210, 255, 0.12);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact / Consultation Section */
.contact-section {
    background: radial-gradient(circle at top left, rgba(15, 70, 255, 0.06) 0%, transparent 60%);
    border-top: var(--glass-border);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.detail-icon {
    font-size: 1.4rem;
    color: var(--color-primary-light);
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.12);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item h5 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.detail-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.email-link {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.email-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-form-wrapper {
    background: #080c1e;
    border: var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-sub {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.contact-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Forms styling */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.input-group input, .input-group select, .input-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 0.8rem;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: var(--color-primary-light);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

.input-group select option {
    background-color: #070b1a;
    color: #ffffff;
}

.input-group.invalid input, .input-group.invalid select, .input-group.invalid textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
    margin-top: 2px;
}

.input-group.invalid .error-msg {
    display: block;
}

.form-success-alert {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080c1e;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 2rem;
    gap: 1rem;
    animation: fadeIn 0.4s ease-out;
}

.form-success-alert.active {
    display: flex;
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Footer */
.main-footer {
    background: #02030a;
    border-top: var(--glass-border);
    padding: 80px 0 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 6rem;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    height: 64px;
    width: auto;
    align-self: flex-start;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.3)) drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 440px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-links-grid h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-grid a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.compliance-note {
    font-size: 0.75rem;
    opacity: 0.6;
    line-height: 1.5;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Large Tablet (992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-lead {
        margin: 0 auto 2rem;
        max-width: 600px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-metrics {
        width: 100%;
        max-width: 500px;
    }

    .hero-visual {
        margin-top: 1rem;
        justify-content: center;
    }

    .visual-topology-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }

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

    .inspector-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info p { margin-bottom: 2rem; }

    .contact-details {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 3rem;
        flex-wrap: wrap;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-logo { align-self: center; }

    .footer-links-grid {
        justify-items: center;
        text-align: center;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {

    /* --- Navigation --- */
    .nav-links {
        display: none;
    }

    .nav-right .nav-btn {
        display: none;
    }

    .nav-container {
        height: 68px;
        padding: 0 1rem;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .logo-img {
        height: 42px;
    }

    /* --- Hero --- */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-metrics {
        max-width: 100%;
    }

    .metric-pill {
        padding: 0.55rem 0.85rem;
    }

    .metric-pill-info strong {
        font-size: 0.82rem;
    }

    /* --- Topology Map --- */
    .visual-topology-wrapper {
        max-width: 100%;
    }

    .topology-panel {
        padding: 1rem;
        animation: none; /* disable float on mobile for perf */
    }

    .topology-map {
        aspect-ratio: 1.1;
    }

    .topology-node {
        width: 52px;
        height: 52px;
    }

    .topology-node.node-center {
        width: 60px;
        height: 60px;
    }

    .node-icon { font-size: 1rem; }
    .node-label { font-size: 0.45rem; }

    .telemetry-console {
        min-height: 80px;
        padding: 0.7rem;
    }

    .log-line { font-size: 0.65rem; }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* --- Sections global --- */
    section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }

    /* --- QA Inspector --- */
    .inspector-box {
        padding: 1.25rem;
    }

    .inspector-timeline {
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
        gap: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .inspector-tab { flex-shrink: 0; }
    .timeline-bar  { display: none; }

    .inspector-card {
        padding: 1.25rem;
    }

    .inspector-body {
        gap: 1.5rem;
    }

    /* --- Why Grid --- */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .why-card {
        padding: 1.75rem;
    }

    .why-num {
        font-size: 2rem;
    }

    /* --- Contact --- */
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 1.75rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-info h2 {
        font-size: 1.9rem;
    }

    /* --- Footer --- */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand p {
        font-size: 0.88rem;
    }

    .main-footer {
        padding: 50px 0 30px;
    }

    /* --- Mobile Drawer --- */
    .mobile-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #030611;
        border-left: var(--glass-border);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        z-index: 99;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .mobile-drawer.active { right: 0; }

    /* --- Mobile Drawer Overlay --- */
    .mobile-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(2, 5, 15, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 98;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .mobile-drawer-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        width: 100%;
        padding: 2rem;
    }

    .mobile-nav-item {
        font-size: 1.25rem;
        font-weight: 600;
        text-decoration: none;
        color: var(--color-text-muted);
        transition: var(--transition-fast);
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active { color: #ffffff; }

    .mobile-nav-btn {
        padding: 0.8rem 2rem;
        background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
        border-radius: 8px;
        color: #ffffff;
        text-align: center;
        width: 100%;
    }

    /* Hamburger → X animation */
    .mobile-nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Extra small phones (430px) */
@media (max-width: 430px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .topology-node {
        width: 44px;
        height: 44px;
    }

    .topology-node.node-center {
        width: 52px;
        height: 52px;
    }

    .node-icon { font-size: 0.85rem; }
    .node-label { display: none; }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}
