/* ═══════════════════════════════════════════
   AxonStellar — Brand Stylesheet
   Neural/cosmic aesthetic with glass-morphism
   ═══════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    --bg-deep: #050510;
    --bg-primary: #0a0e1a;
    --accent-cyan: #00f0ff;
    --accent-purple: #b347d9;
    --accent-violet: #7B2FBE;
    --accent-gold: #D4A843;
    --text-primary: #e8ecf4;
    --text-secondary: rgba(255, 255, 255, 0.45);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(0, 240, 255, 0.12);
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --nav-height: 70px;
    --container-max: 1200px;
    --section-padding: 100px 0;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Noise overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox=\"0 0 256 256\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cfilter id=\"noise\"%3E%3CfeTurbulence type=\"fractalNoise\" baseFrequency=\"0.9\" numOctaves=\"4\" stitchTiles=\"stitch\"/%3E%3C/filter%3E%3Crect width=\"100%25\" height=\"100%25\" filter=\"url(%23noise)\"/%3E%3C/svg%3E");
    background-repeat: repeat;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Custom Cursor ── */
.cursor-dot,
.cursor-ring {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 240, 255, 0.4);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.cursor-ring.cursor-hover {
    width: 56px;
    height: 56px;
    border-color: rgba(0, 240, 255, 0.7);
}

/* ── Ambient Canvas ── */
#ambientCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Loading Screen ── */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
    width: auto;
    padding: 0 20px;
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 32px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: visible;
}

.loader-letter {
    display: inline-block;
}

.loader-bar-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 1px;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-scrolled {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 240, 255, 0.06);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link-accent {
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-left: 8px;
}

.nav-link-accent:hover {
    background: rgba(0, 240, 255, 0.06);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.4);
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 1px;
    width: 0;
    pointer-events: none;
}

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

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

.nav-mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-mobile-toggle.open span:nth-child(2) {
}

.nav-mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu.open {
    max-height: 300px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.mobile-menu-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--text-primary);
}

.mobile-menu-accent {
    color: var(--accent-cyan);
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

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

.hero-mask-wrapper {
    position: absolute;
    inset: 0;
}

.hero-mask-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(5,5,16,0.1) 0%, rgba(5,5,16,0.35) 60%, rgba(5,5,16,0.65) 100%);
    z-index: 1;
}

.hero-pulse-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-pulse-flash {
    position: absolute;
    width: 120px;
    height: 120px;
    margin-left: -120px;
    margin-top: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(0,240,255,0.7) 25%, rgba(59,130,246,0.4) 50%, rgba(179,71,217,0.2) 70%, transparent 85%);
    opacity: 0;
    transform: scale(0.3);
}

.hero-pulse-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    margin-left: -100px;
    margin-top: -100px;
    border-radius: 50%;
    border: 2px solid rgba(0,240,255,0.6);
    box-shadow: 0 0 20px rgba(0,240,255,0.3), inset 0 0 20px rgba(59,130,246,0.15);
    opacity: 0;
    transform: scale(0.5);
}

.hero-pulse-ring[data-ring="2"] {
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 0 30px rgba(59,130,246,0.25), inset 0 0 15px rgba(179,71,217,0.15);
}

.hero-pulse-ring[data-ring="3"] {
    border-color: rgba(236,72,153,0.4);
    box-shadow: 0 0 40px rgba(179,71,217,0.2), inset 0 0 10px rgba(236,72,153,0.1);
}

.hero-pulse-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,0.2) 0%, rgba(59,130,246,0.15) 25%, rgba(179,71,217,0.1) 50%, rgba(236,72,153,0.05) 70%, transparent 85%);
    opacity: 0;
    transform: scale(0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
    opacity: 0;
}

.hero-accent {
    margin-bottom: 28px;
}

.hero-logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00f0ff 0%, #00c8e0 30%, #8a5fd6 65%, #b347d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}



.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.7;
    margin-top: 32px;
    margin-bottom: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.lava-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 52px;
    padding: 0 32px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lava-btn:hover {
    transform: translateY(-2px);
}

.lava-btn:hover .lava-btn-bg {
    overflow: visible;
}

.lava-btn:hover .lava-blob {
    filter: blur(1px);
}

.lava-btn-bg {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    filter: url(#gooFilter);
    overflow: hidden;
    background: rgba(5, 5, 16, 0.3);
}

.lava-blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.lava-blob[data-blob="1"] {
    width: 60px;
    height: 60px;
    top: -5px;
    left: 10%;
    background: radial-gradient(circle, #00f0ff 0%, rgba(0,240,255,0.4) 70%);
    box-shadow: 0 0 12px rgba(0,240,255,0.2);
    transition: box-shadow 0.4s ease;
}

.lava-btn:hover .lava-blob[data-blob="1"] {
    box-shadow: 0 0 25px rgba(0,240,255,0.6), 0 0 50px rgba(0,240,255,0.3);
}

.lava-blob[data-blob="2"] {
    width: 50px;
    height: 50px;
    top: 5px;
    left: 35%;
    background: radial-gradient(circle, #3b82f6 0%, rgba(59,130,246,0.4) 70%);
    box-shadow: 0 0 12px rgba(59,130,246,0.2);
    transition: box-shadow 0.4s ease;
}

.lava-btn:hover .lava-blob[data-blob="2"] {
    box-shadow: 0 0 25px rgba(59,130,246,0.6), 0 0 50px rgba(59,130,246,0.3);
}

.lava-blob[data-blob="3"] {
    width: 55px;
    height: 55px;
    top: -8px;
    left: 55%;
    background: radial-gradient(circle, #b347d9 0%, rgba(179,71,217,0.4) 70%);
    box-shadow: 0 0 12px rgba(179,71,217,0.2);
    transition: box-shadow 0.4s ease;
}

.lava-btn:hover .lava-blob[data-blob="3"] {
    box-shadow: 0 0 25px rgba(179,71,217,0.6), 0 0 50px rgba(179,71,217,0.3);
}

.lava-blob[data-blob="4"] {
    width: 45px;
    height: 45px;
    top: 8px;
    left: 75%;
    background: radial-gradient(circle, #ec4899 0%, rgba(236,72,153,0.4) 70%);
    box-shadow: 0 0 12px rgba(236,72,153,0.2);
    transition: box-shadow 0.4s ease;
}

.lava-btn:hover .lava-blob[data-blob="4"] {
    box-shadow: 0 0 25px rgba(236,72,153,0.6), 0 0 50px rgba(236,72,153,0.3);
}

.lava-blob[data-blob="5"] {
    width: 65px;
    height: 65px;
    top: -3px;
    left: 20%;
    background: radial-gradient(circle, #8a5fd6 0%, rgba(138,95,214,0.3) 70%);
    box-shadow: 0 0 12px rgba(138,95,214,0.2);
    transition: box-shadow 0.4s ease;
}

.lava-btn:hover .lava-blob[data-blob="5"] {
    box-shadow: 0 0 25px rgba(138,95,214,0.6), 0 0 50px rgba(138,95,214,0.3);
}

.lava-btn-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    opacity: 0;
}

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

.scroll-indicator-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-deep);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25), 0 0 60px rgba(179, 71, 217, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-deep);
    font-weight: 700;
}

.btn-secondary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25), 0 0 60px rgba(179, 71, 217, 0.15);
}

/* ── Stats Section ── */
.stats {
    position: relative;
    z-index: 1;
    padding: 0;
    border-top: 1px solid rgba(0, 240, 255, 0.06);
    border-bottom: 1px solid rgba(0, 240, 255, 0.06);
    background: var(--bg-deep);
    overflow: hidden;
}

/* Synapse Strip — Neural animation viewport */
.synapse-strip {
    height: 150px;
    position: relative;
}

#synapse-strip-canvas {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 500px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ── General Section Styles ── */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
    overflow: hidden;
}


/* Allow synapse CTA to overflow left of the services section */
.section.services {
    overflow: visible;
}
.section-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(90deg, #00f0ff, #3b82f6, #b347d9, #ec4899, #b347d9, #3b82f6, #00f0ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Glass Cards ── */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.06);
    transform: translateY(-4px);
}

/* ── About Section ── */
.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.pillar-icon {
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.pillar-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.pillar-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Services Section ── */
.services {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 30%, var(--bg-primary) 70%, var(--bg-deep) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}



/* ── Pillar Cards V2 — Horizontal Image Showcases (Blue/Purple) ── */
.pillars-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.pillar-card-v2 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    cursor: default;
    isolation: isolate;
}

/* Image Layer */
.pillar-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.pillar-card-v2:hover .pillar-card-img {
    transform: scale(1.06);
}

/* Gradient Overlay — heavier for text legibility on horizontal cards */
.pillar-card-overlay-v2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 16, 0.1) 0%,
        rgba(5, 5, 16, 0.3) 35%,
        rgba(5, 5, 16, 0.7) 65%,
        rgba(5, 5, 16, 0.93) 90%,
        rgba(5, 5, 16, 0.98) 100%
    );
    z-index: 2;
    transition: background 0.5s ease;
}

.pillar-card-v2:hover .pillar-card-overlay-v2 {
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 16, 0.0) 0%,
        rgba(5, 5, 16, 0.2) 35%,
        rgba(5, 5, 16, 0.6) 65%,
        rgba(5, 5, 16, 0.9) 90%,
        rgba(5, 5, 16, 0.97) 100%
    );
}

/* Shimmer — Purple tint */
.pillar-card-shine-purple {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(139, 92, 246, 0.06) 45%,
        rgba(139, 92, 246, 0.13) 50%,
        rgba(139, 92, 246, 0.06) 55%,
        transparent 60%
    );
    background-size: 250% 100%;
    background-position: 200% 0;
    transition: background-position 0s;
    pointer-events: none;
}

.pillar-card-v2:hover .pillar-card-shine-purple {
    background-position: -60% 0;
    transition: background-position 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Border Glow — Purple */
.pillar-card-border-glow-purple {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 5;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
    pointer-events: none;
}

.pillar-card-v2:hover .pillar-card-border-glow-purple {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.1),
        0 8px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(139, 92, 246, 0.04);
}

/* Content — always visible for horizontal cards */
.pillar-card-content-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px 24px;
    z-index: 4;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pillar-card-v2:hover .pillar-card-content-v2 {
    transform: translateY(-3px);
}

/* Title — Purple accent */
.pillar-title-v2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.pillar-card-v2:hover .pillar-title-v2 {
    color: #c4b5fd;
}

/* Text */
.pillar-text-v2 {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

.pillar-card-v2:hover .pillar-text-v2 {
    opacity: 1;
}

/* ── Pillar Cards V2 — Responsive ── */
@media (min-width: 640px) {
    .pillars-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .pillar-card-v2 {
        height: 240px;
    }
}

@media (min-width: 1024px) {
    .pillar-card-v2 {
        height: 260px;
    }
    .pillar-title-v2 {
        font-size: 1.25rem;
    }
}

@media (min-width: 1440px) {
    .pillar-card-v2 {
        height: 280px;
    }
}

/* ── Expertise Cards V2 — Image-Forward Showcase ── */
.services-grid-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.service-card-v2 {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    cursor: default;
    isolation: isolate;
}

/* Image Layer */
.service-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.service-card-v2:hover .service-card-img {
    transform: scale(1.08);
}

/* Gradient Overlay */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 16, 0.05) 0%,
        rgba(5, 5, 16, 0.2) 30%,
        rgba(5, 5, 16, 0.65) 60%,
        rgba(5, 5, 16, 0.92) 85%,
        rgba(5, 5, 16, 0.98) 100%
    );
    z-index: 2;
    transition: background 0.5s ease;
}

.service-card-v2:hover .service-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 16, 0.0) 0%,
        rgba(5, 5, 16, 0.15) 30%,
        rgba(5, 5, 16, 0.55) 60%,
        rgba(5, 5, 16, 0.88) 85%,
        rgba(5, 5, 16, 0.97) 100%
    );
}

/* Shimmer/Shine Sweep on Hover */
.service-card-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(0, 240, 255, 0.06) 45%,
        rgba(0, 240, 255, 0.12) 50%,
        rgba(0, 240, 255, 0.06) 55%,
        transparent 60%
    );
    background-size: 250% 100%;
    background-position: 200% 0;
    transition: background-position 0s;
    pointer-events: none;
}

.service-card-v2:hover .service-card-shine {
    background-position: -60% 0;
    transition: background-position 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Border Glow */
.service-card-border-glow {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 5;
    border: 1px solid rgba(0, 240, 255, 0.08);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
    pointer-events: none;
}

.service-card-v2:hover .service-card-border-glow {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.08),
        0 8px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 240, 255, 0.03);
}

/* Content Layer */
.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 32px;
    z-index: 4;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card-v2:hover .service-card-content {
    transform: translateY(-4px);
}

/* Card Number */
.service-card-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    opacity: 0.6;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-card-v2:hover .service-card-number {
    opacity: 1;
}

/* Title V2 */
.service-title-v2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.service-card-v2:hover .service-title-v2 {
    color: #fff;
}

/* Text V2 */
.service-text-v2 {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease 0.1s;
}

.service-card-v2:hover .service-text-v2 {
    max-height: 100px;
    opacity: 1;
}

/* ── Expertise Cards V2 — Responsive ── */
@media (min-width: 640px) {
    .services-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .service-card-v2 {
        height: 380px;
    }
}

@media (min-width: 1024px) {
    .services-grid-v2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .service-card-v2 {
        height: 440px;
    }
    .service-title-v2 {
        font-size: 1.2rem;
    }
}

@media (min-width: 1440px) {
    .service-card-v2 {
        height: 480px;
    }
    .service-title-v2 {
        font-size: 1.35rem;
    }
}


/* ── Synapse CTA — Floating Axion Agent Button ── */
.synapse-cta-anchor {
    position: absolute;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    overflow: visible;
}

/* On desktop (4-col grid), align under first column */
@media (min-width: 1024px) {
    .synapse-cta-anchor {
        left: -220px;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .synapse-cta-anchor {
        left: -160px;
    }
}

.synapse-cta-orbit {
    position: relative;
    display: inline-flex;
    animation: synapseBob 3.5s ease-in-out infinite;
    overflow: visible;
}
@media (max-width: 639px) {
    .synapse-cta-anchor {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
        margin-top: 24px;
    }
}


/* Synapse firing canvas — behind the button */
#synapse-cta-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 650px;
    pointer-events: none;
    z-index: 0;
}


.synapse-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
}

/* Expanding ring pulses — neural synapse release */
.synapse-cta-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 240, 255, 0.5);
    animation: synapseRingPulse 3s ease-out infinite;
    pointer-events: none;
}
.synapse-cta-ring--delay {
    animation-delay: 1.5s;
    border-color: rgba(179, 71, 217, 0.4);
}

/* The visible button core */
.synapse-cta-core {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    background: rgba(5, 5, 16, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--accent-cyan, #00f0ff);
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.1),
        0 0 60px rgba(0, 240, 255, 0.05),
        inset 0 0 20px rgba(0, 240, 255, 0.03);
    animation: synapseCoreGlow 4s ease-in-out infinite;
}

.synapse-cta-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.6));
}

/* Hover state — intensify the neural discharge */
.synapse-cta-btn:hover .synapse-cta-core {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.6);
    color: #fff;
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.25),
        0 0 80px rgba(0, 240, 255, 0.1),
        0 0 120px rgba(179, 71, 217, 0.06),
        inset 0 0 30px rgba(0, 240, 255, 0.06);
    transform: scale(1.04);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.synapse-cta-btn:hover .synapse-cta-ring {
    animation-duration: 1.8s;
    border-color: rgba(0, 240, 255, 0.7);
}
.synapse-cta-btn:hover .synapse-cta-ring--delay {
    border-color: rgba(179, 71, 217, 0.6);
}

/* Keyframes — Floating bob */
@keyframes synapseBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Keyframes — Expanding ring pulse (synapse release) */
@keyframes synapseRingPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    60% {
        transform: scale(1.35);
        opacity: 0.15;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Keyframes — Core glow breath */
@keyframes synapseCoreGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(0, 240, 255, 0.1),
            0 0 60px rgba(0, 240, 255, 0.05),
            inset 0 0 20px rgba(0, 240, 255, 0.03);
    }
    50% {
        box-shadow:
            0 0 28px rgba(0, 240, 255, 0.18),
            0 0 80px rgba(0, 240, 255, 0.08),
            0 0 100px rgba(179, 71, 217, 0.04),
            inset 0 0 28px rgba(0, 240, 255, 0.05);
    }
}

/* ── Contact Section ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.contact-info-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-info-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

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

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ── Contact Form ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
}

.form-status {
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.form-status-success {
    color: #4ade80;
}

.form-status-error {
    color: #f87171;
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    padding: 3rem 0 2rem;
    background: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.axon-footer-border {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent 50%, var(--accent-purple), transparent);
    opacity: 0.3;
}

.footer > .axon-footer-border {
    position: absolute;
    top: 0;
    left: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.footer-brand-link:hover {
    color: var(--accent-cyan);
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.8;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 600;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.8;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-col h4 {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-bottom .axon-footer-border {
    margin-bottom: 1.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (768px+)
   ═══════════════════════════════════════════ */
@media (min-width: 768px) {


    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        flex-wrap: wrap;
    }

    .footer-brand {
        align-items: flex-start;
        text-align: left;
        flex: 0 1 280px;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Desktop (1024px+)
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
    body {
        cursor: none;
    }

    .nav-links {
        display: flex;
    }

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

    .mobile-menu {
        display: none;
    }

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


}

/* ═══════════════════════════════════════════
   RESPONSIVE — Large Desktop (1440px+)
   ═══════════════════════════════════════════ */
@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }
}

/* ═══════════════════════════════════════════
   Touch/Mobile Cursor Override
   ═══════════════════════════════════════════ */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   Reduced Motion
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        display: none;
    }
}
