/* ===== CSS Variables & Base ===== */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-900: #164e63;
    --bg-dark: #030303;
    --bg-neutral-900: #171717;
    --bg-neutral-950: #0a0a0a;
    --text-slate-300: #cbd5e1;
    --text-slate-400: #94a3b8;
    --text-slate-500: #64748b;
    --text-slate-600: #475569;
    --border-white-5: rgba(255, 255, 255, 0.05);
    --border-white-10: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-slate-400);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #e0f2fe;
}

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

ul {
    list-style: none;
}

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

.text-white {
    color: #fff;
}

.text-muted {
    color: var(--text-slate-500);
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animate-pulse {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    will-change: opacity, transform;
}

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

.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

.stagger-4 {
    transition-delay: 400ms;
}

/* ===== Containers ===== */
.section-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 1.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.nav-scrolled {
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-white-10);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transition: transform 0.3s;
    object-fit: contain;
}

.logo-group:hover .logo-mark {
    transform: scale(1.05);
}

.logo-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.05em;
    transition: color 0.3s;
}

.logo-group:hover .logo-text {
    color: var(--cyan-400);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-slate-400);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

.nav-cta {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.3s;
}

.nav-cta:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ===== Primary Button ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%) skewX(-15deg);
}

.btn-primary:hover::after {
    animation: shimmer 0.8s;
}

/* ===== Glass Panels ===== */
.glass-panel {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-white-10);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

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

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

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

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 12rem 0 8rem;
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

.hero-glow-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: rgba(6, 182, 212, 0.05);
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-glow-2 {
    top: -10rem;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(34, 211, 238, 0.1);
    filter: blur(100px);
    animation: blob 7s infinite;
}

.hero-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    max-width: 36rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    background: rgba(22, 78, 99, 0.1);
    backdrop-filter: blur(12px);
    width: fit-content;
}

.badge-dot {
    position: relative;
    display: flex;
    width: 0.5rem;
    height: 0.5rem;
}

.badge-dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--cyan-400);
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.badge-dot-core {
    position: relative;
    border-radius: 50%;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--cyan-500);
}

.badge-text {
    color: var(--cyan-400);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #fff;
    line-height: 1.05;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-fade {
    background: linear-gradient(to right, var(--text-slate-400), var(--text-slate-500), var(--text-slate-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-slate-400);
    font-weight: 400;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-slate-300);
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--cyan-400);
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.5rem;
}

@media (min-width: 640px) {
    .hero-cta-group {
        flex-direction: row;
    }
}

.hero-subtext {
    font-size: 0.75rem;
    color: var(--text-slate-500);
    padding-left: 0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

@media (min-width: 1024px) {
    .hero-visual {
        height: 650px;
    }
}

.hero-card {
    position: relative;
    width: 100%;
    max-width: 24rem;
    aspect-ratio: 4/5;
    background: rgba(23, 23, 23, 0.6);
    border-radius: 2.5rem;
    border: 1px solid var(--border-white-10);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.hero-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(22, 78, 99, 0.2), transparent, rgba(255, 255, 255, 0.05));
    opacity: 0.5;
    transition: opacity 0.7s;
}

.hero-card:hover .hero-card-gradient {
    opacity: 0.7;
}

.hero-card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hero-card-icon-wrap {
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.hero-card-icon-wrap svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--cyan-400);
}

.hero-card-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 9999px;
    border: 1px solid var(--border-white-10);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-slate-300);
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.hero-card-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
    position: relative;
}

.hero-card-glow {
    position: absolute;
    width: 14rem;
    height: 14rem;
    background: rgba(34, 211, 238, 0.2);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-card-waves {
    position: relative;
    z-index: 10;
    transition: transform 1s;
}

.hero-card:hover .hero-card-waves {
    transform: scale(1.1);
}

.waves-main {
    width: 8rem;
    height: 8rem;
    color: rgba(236, 254, 255, 0.9);
    filter: drop-shadow(0 0 25px rgba(34, 211, 238, 0.6));
}

.waves-ping {
    width: 8rem;
    height: 8rem;
    color: var(--cyan-400);
    position: absolute;
    top: 0;
    left: 0;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.2;
}

.hero-card-info {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-white-10);
    transition: border-color 0.5s;
}

.hero-card:hover .hero-card-info {
    border-color: rgba(6, 182, 212, 0.2);
}

.hero-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.hero-card-desc {
    font-size: 0.75rem;
    color: var(--text-slate-400);
    line-height: 1.6;
    font-weight: 500;
}

.floating-badge {
    position: absolute;
    right: -2rem;
    top: 33%;
    background: rgba(23, 23, 23, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-white-10);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    animation-delay: 1.5s;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.floating-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.floating-badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.025em;
}