* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

:root {
    --surface: #ffffff;
    --surface-soft: #f7fafc;
    --surface-line: #dbe7ef;
    --ink: #0b1220;
    --muted: #64748b;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --shadow-soft: 0 18px 46px rgba(15, 23, 42, 0.08);
    --shadow-lift: 0 22px 58px rgba(15, 23, 42, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, #f8fbff 0%, #eef7fb 48%, #f9fafb 100%);
    background-size: 32px 32px, 32px 32px, auto;
    color: var(--ink);
    transition: background 0.8s ease, color 0.8s ease;
}

.gradient-bg {
    background: linear-gradient(135deg, #052e32 0%, #0e7490 46%, #22c55e 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #042f2e 0%, #0891b2 42%, #2563eb 72%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px !important;
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.78);
    pointer-events: none;
}

.card-hover::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.78), rgba(34, 197, 94, 0.58), transparent);
    pointer-events: none;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: var(--shadow-lift);
}

.card-hover.bg-white,
.card-hover.bg-gray-50 {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.74)),
        rgba(255, 255, 255, 0.9) !important;
}

.feature-icon {
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 50%, #2563eb 100%);
}

.pricing-popular {
    border: 1px solid rgba(8, 145, 178, 0.58);
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
}

.animate-float { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

section {
    position: relative;
}

.hero-section {
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        repeating-linear-gradient(90deg, rgba(6, 182, 212, 0.08) 0 1px, transparent 1px 84px),
        repeating-linear-gradient(0deg, rgba(15, 118, 110, 0.07) 0 1px, transparent 1px 84px),
        linear-gradient(112deg, rgba(2, 132, 199, 0.2), transparent 31%),
        linear-gradient(248deg, rgba(34, 197, 94, 0.13), transparent 33%),
        linear-gradient(180deg, #f8fdff 0%, #eefaff 46%, #f8fafc 100%);
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-section::before {
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 44%, rgba(6, 182, 212, 0.16) 44.3% 44.8%, transparent 45% 100%),
        linear-gradient(245deg, transparent 0 48%, rgba(34, 197, 94, 0.14) 48.3% 48.8%, transparent 49% 100%);
    opacity: 0.9;
}

.hero-section::after {
    left: 50%;
    bottom: 12px;
    width: min(980px, 86vw);
    height: 150px;
    transform: translateX(-50%) perspective(620px) rotateX(62deg);
    transform-origin: bottom;
    border: 1px solid rgba(6, 182, 212, 0.22);
    background:
        repeating-linear-gradient(90deg, rgba(6, 182, 212, 0.18) 0 1px, transparent 1px 52px),
        repeating-linear-gradient(0deg, rgba(6, 182, 212, 0.12) 0 1px, transparent 1px 28px);
    opacity: 0.78;
}

.hero-section > .max-w-7xl {
    position: relative;
    z-index: 2;
}

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

.hud-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.52), transparent);
}

.hud-line-a {
    top: 23%;
    left: 7%;
    width: 28%;
}

.hud-line-b {
    top: 36%;
    right: 4%;
    width: 32%;
}

.hud-line-c {
    bottom: 29%;
    left: 14%;
    width: 22%;
}

.hud-corner {
    position: absolute;
    width: 132px;
    height: 132px;
    border-color: rgba(6, 182, 212, 0.38);
    opacity: 0.72;
}

.hud-corner-a {
    top: 112px;
    left: 5vw;
    border-top: 1px solid;
    border-left: 1px solid;
}

.hud-corner-b {
    right: 5vw;
    bottom: 90px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    border: 1px solid rgba(34, 211, 238, 0.36);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(5, 46, 50, 0.94), rgba(8, 47, 73, 0.88));
    padding: 8px 14px;
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.hero-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.14);
}

.hero-capabilities > div {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(5, 46, 50, 0.92), rgba(8, 47, 73, 0.84)),
        rgba(255, 255, 255, 0.74);
    box-shadow: 0 16px 36px rgba(8, 47, 73, 0.14);
}

.hero-capabilities > div::before {
    content: '';
    position: absolute;
    inset: 0;
    border-left: 3px solid rgba(34, 211, 238, 0.75);
    pointer-events: none;
}

.hero-capabilities strong {
    color: #67e8f9;
    font-size: 13px;
}

.hero-capabilities span {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
}

.hero-console {
    position: relative;
    width: min(760px, 92vw);
    height: 168px;
    margin-top: 42px;
    border: 1px solid rgba(6, 182, 212, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 0 8px, rgba(34, 211, 238, 0.18) 8px 9px, transparent 9px 100%),
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.08) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(0deg, rgba(34, 197, 94, 0.07) 0 1px, transparent 1px 28px),
        linear-gradient(135deg, rgba(5, 46, 50, 0.92), rgba(8, 47, 73, 0.88));
    box-shadow: 0 28px 70px rgba(8, 47, 73, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-console::before,
.hero-console::after {
    content: '';
    position: absolute;
    inset: 10px;
    pointer-events: none;
}

.hero-console::before {
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.hero-console::after {
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.28), transparent);
    height: 1px;
    top: 50%;
    inset-inline: 26px;
}

.console-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(34, 211, 238, 0.68);
    border-radius: 50%;
    color: #ecfeff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.08), 0 0 38px rgba(34, 211, 238, 0.34);
}

.console-core::before,
.console-core::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 50%;
}

.console-core::before {
    inset: -18px;
}

.console-core::after {
    inset: 14px;
}

.console-node {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 1px solid rgba(34, 211, 238, 0.9);
    border-radius: 50%;
    background: #0f766e;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.55);
}

.node-a { top: 28px; left: 15%; }
.node-b { top: 118px; left: 28%; }
.node-c { top: 34px; right: 24%; }
.node-d { top: 116px; right: 13%; }

.console-path {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.62), transparent);
    transform-origin: center;
}

.path-a { top: 54px; left: 17%; width: 26%; transform: rotate(12deg); }
.path-b { top: 111px; left: 30%; width: 20%; transform: rotate(-18deg); }
.path-c { top: 56px; right: 27%; width: 22%; transform: rotate(-13deg); }
.path-d { top: 112px; right: 16%; width: 27%; transform: rotate(15deg); }

section.bg-white,
section.bg-gray-50 {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(10px);
}

nav {
    background: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue) !important;
}

.tech-icon {
    display: inline-flex;
    position: relative;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(5, 46, 50, 0.96), rgba(8, 47, 73, 0.9)),
        rgba(255, 255, 255, 0.86);
    color: #67e8f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(8, 47, 73, 0.14);
}

.tech-icon::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.tech-icon::after {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 50%;
    pointer-events: none;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.tech-icon-lg {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
}

.tech-icon-lg svg {
    width: 31px;
    height: 31px;
}

.pain-card {
    background: rgba(255, 255, 255, 0.88) !important;
}

.accent-amber .tech-icon { color: var(--amber); border-color: rgba(245, 158, 11, 0.3); }
.accent-cyan .tech-icon { color: var(--cyan); border-color: rgba(6, 182, 212, 0.3); }
.accent-rose .tech-icon { color: var(--rose); border-color: rgba(244, 63, 94, 0.28); }
.accent-emerald .tech-icon { color: var(--emerald); border-color: rgba(16, 185, 129, 0.28); }
.accent-blue .tech-icon { color: var(--blue); border-color: rgba(37, 99, 235, 0.28); }
.accent-slate .tech-icon { color: #475569; border-color: rgba(71, 85, 105, 0.24); }

.web-access-card {
    background:
        linear-gradient(135deg, rgba(5, 46, 50, 0.94), rgba(8, 47, 73, 0.9)) !important;
    border-color: rgba(34, 211, 238, 0.32);
}

.web-access-card p {
    color: #cbd5e1 !important;
}

.browser-logo-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(34, 211, 238, 0.22) !important;
    box-shadow: 0 14px 30px rgba(8, 47, 73, 0.12);
}

.platform-card {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 44px rgba(8, 47, 73, 0.18);
}

.platform-card img {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.contact-qr-shell {
    border-radius: 22px !important;
    overflow: hidden;
}

.contact-qr-image {
    border-radius: 18px !important;
}

.rounded-2xl,
.rounded-3xl {
    border-radius: 8px !important;
}

.rounded-full {
    border-radius: 999px;
}

a.gradient-bg,
button.gradient-bg,
.gradient-bg.text-white {
    box-shadow: 0 14px 34px rgba(8, 145, 178, 0.22);
}

a.gradient-bg:hover,
button.gradient-bg:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
}

a.bg-white,
button.bg-white,
.border-purple-500 {
    border-color: rgba(8, 145, 178, 0.28) !important;
}

.text-purple-600 {
    color: #0f766e !important;
}

.hover\:border-purple-300:hover {
    border-color: rgba(6, 182, 212, 0.58) !important;
}

.theme-toggle {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.theme-icon-dot {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 0 0 5px rgba(8, 145, 178, 0.12);
}

.theme-icon-dot[data-mode="dark"] {
    background: #0f172a;
    box-shadow: inset -5px -3px 0 #e2e8f0, 0 0 0 5px rgba(14, 165, 233, 0.16);
}

.text-gray-800,
.text-gray-900 {
    color: var(--ink) !important;
}

.text-gray-600,
.text-gray-500,
.text-gray-700 {
    color: var(--muted) !important;
}

/* Dark Mode Styles */
.dark {
    --bg-primary: #0a0a12;
    --bg-secondary: #101923;
    --bg-tertiary: #111827;
    --text-primary: #f0f0f0;
    --text-secondary: #b6c2d3;
    --border-color: #203445;
}
.dark body {
    background:
        linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, #07111f 0%, #0d1725 100%);
    background-size: 32px 32px, 32px 32px, auto;
    color: var(--text-primary);
    transition: background 0.8s ease, color 0.8s ease;
}

body {
    transition: background 0.8s ease, color 0.8s ease;
}
.dark nav {
    background: rgba(3, 12, 22, 0.72) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.16) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38) !important;
}
.dark .hero-section {
    background:
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.08) 0 1px, transparent 1px 84px),
        repeating-linear-gradient(0deg, rgba(34, 197, 94, 0.06) 0 1px, transparent 1px 84px),
        linear-gradient(112deg, rgba(6, 182, 212, 0.14), transparent 31%),
        linear-gradient(248deg, rgba(34, 197, 94, 0.1), transparent 33%),
        linear-gradient(180deg, #06111e 0%, #0b1724 52%, #07111f 100%);
}
.dark .card-hover.bg-white,
.dark .card-hover.bg-gray-50,
.dark .pain-card {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.7)),
        var(--bg-secondary) !important;
    border-color: rgba(34, 211, 238, 0.16);
}
.dark .hero-capabilities > div,
.dark .hero-console,
.dark .web-access-card {
    background:
        repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.06) 0 1px, transparent 1px 38px),
        linear-gradient(135deg, rgba(3, 12, 22, 0.98), rgba(8, 47, 73, 0.9)) !important;
}
.dark .browser-logo-card {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(34, 211, 238, 0.2) !important;
}
.dark .browser-logo-card span {
    color: #e2e8f0 !important;
}
.dark .theme-toggle {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(34, 211, 238, 0.22);
}
.dark .text-gray-600, .dark .text-gray-500, .dark .text-gray-800 {
    color: var(--text-secondary) !important;
}
.dark .text-gray-900, .dark .text-gray-700 {
    color: var(--text-primary) !important;
}
.dark .bg-white {
    background: var(--bg-secondary) !important;
}
.dark .bg-gray-50 {
    background: var(--bg-primary) !important;
}
.dark .bg-gray-900 {
    background: var(--bg-tertiary) !important;
}
.dark .border-gray-200 {
    border-color: var(--border-color) !important;
}
.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
}
.dark .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4) !important;
}
.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.16) !important;
}
.dark nav a:not(.gradient-bg) {
    color: var(--text-secondary) !important;
}
.dark nav a:not(.gradient-bg):hover {
    color: #67e8f9 !important;
}
.dark .text-green-500 {
    color: #4ade80 !important;
}
.dark .text-purple-600 {
    color: #67e8f9 !important;
}
.dark .border-purple-500 {
    border-color: rgba(34, 211, 238, 0.42) !important;
}
.dark .hover\:bg-purple-50:hover {
    background-color: rgba(34, 211, 238, 0.1) !important;
}

/* Theme Toggle Button - Icon Only */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.theme-toggle:hover {
    transform: scale(1.1);
}
.theme-toggle-icon {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Transition Effect */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

/* Arc Transition */
.arc-transition {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.arc-door {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary, #fff);
    transform-origin: top right;
    clip-path: ellipse(0% 0% at 100% 0%);
}

.arc-door.dark {
    --bg-primary: #0a0a12;
}

.page-transition.active .arc-door {
    animation: arcOpen 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes arcOpen {
    0% {
        width: 0;
        height: 0;
        clip-path: ellipse(0% 0% at 100% 0%);
    }
    100% {
        width: 200%;
        height: 200%;
        clip-path: ellipse(150% 150% at 100% 0%);
    }
}

@keyframes arcClose {
    0% {
        width: 200%;
        height: 200%;
        clip-path: ellipse(150% 150% at 100% 0%);
    }
    100% {
        width: 0;
        height: 0;
        clip-path: ellipse(0% 0% at 100% 0%);
    }
}

/* Transition Shooting Stars */
.transition-shooting-star {
    position: absolute;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), #fff);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
}

.page-transition.active .transition-shooting-star {
    animation: transitionShoot 0.5s ease-out forwards;
}

@keyframes transitionShoot {
    0% {
        transform: translate(0, 0) rotate(-35deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(-100vw - 300px), calc(100vh + 200px)) rotate(-35deg);
        opacity: 0;
    }
}

/* Stars animation for dark mode */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: -1;
}
.dark .stars {
    opacity: 1;
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Nebula Effect */
.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: -1;
    background:
        linear-gradient(115deg, transparent 0%, rgba(34, 211, 238, 0.08) 42%, transparent 68%),
        linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent);
}
.dark .nebula {
    opacity: 1;
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    animation: shoot 3s ease-in-out infinite;
}
.shooting-star:nth-child(1) { top: 20%; left: 0; animation-delay: 0s; }
.shooting-star:nth-child(2) { top: 40%; left: 0; animation-delay: 2s; }
.shooting-star:nth-child(3) { top: 60%; left: 0; animation-delay: 4s; }
@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 200px)) translateY(200px) rotate(-45deg);
        opacity: 0;
    }
}

/* Rotating moon phase animation */
@keyframes moonPhase {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.moon-phase {
    animation: moonPhase 20s linear infinite;
}

/* Glitch Effect for text transition */
.glitch-text {
    animation: glitch 0.3s ease;
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Energy Pulse Effect */
.energy-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Scan Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.56), rgba(34, 197, 94, 0.4), transparent);
    animation: scan 4s linear infinite;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
}
.dark .scan-line {
    opacity: 1;
}
@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Tech Effect Titles */
.tech-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #2563eb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: techShine 3s linear infinite;
}

.tech-title::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22d3ee, #2563eb, transparent);
    border-radius: 1px;
}

.tech-title::after {
    display: none;
}

@keyframes techShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.tech-glow {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.32),
                 0 0 34px rgba(37, 99, 235, 0.16);
}

.dark .tech-title::before {
    background: linear-gradient(90deg, transparent, #67e8f9, #60a5fa, transparent);
}

/* Glassmorphism Navigation */
nav {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.dark nav {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Navigation Link Active State */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #0f766e !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.dark .nav-link.active {
    color: #67e8f9 !important;
}

.dark .nav-link::after {
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 4.5rem;
    }

    .hero-section::after {
        bottom: 6px;
        width: 118vw;
        height: 112px;
        opacity: 0.58;
    }

    .hero-hud {
        opacity: 0.52;
    }

    .hud-line-a,
    .hud-line-c {
        left: 4%;
        width: 42%;
    }

    .hud-line-b {
        right: 4%;
        width: 48%;
    }

    .hud-corner {
        width: 82px;
        height: 82px;
    }

    .hero-capabilities > div {
        justify-content: flex-start;
        min-height: 64px;
        padding: 0 18px;
    }

    .hero-console {
        height: 132px;
        margin-top: 30px;
    }

    .console-core {
        width: 66px;
        height: 66px;
        font-size: 18px;
    }

    .console-core::before {
        inset: -12px;
    }

    .console-node {
        width: 10px;
        height: 10px;
    }

    .node-a { left: 10%; }
    .node-b { left: 22%; top: 100px; }
    .node-c { right: 20%; }
    .node-d { right: 8%; top: 98px; }

    .path-a { left: 12%; width: 30%; }
    .path-b { left: 24%; width: 24%; top: 96px; }
    .path-c { right: 22%; width: 24%; }
    .path-d { right: 10%; width: 31%; top: 96px; }

    .tech-icon {
        width: 46px;
        height: 46px;
    }

    .tech-icon-lg {
        width: 58px;
        height: 58px;
    }
}
