/* ===== Variables ===== */
:root {
    --bg: #06171E;
    --bg-surface: #0f1318;
    --bg-card: rgba(15, 19, 24, 0.8);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #e6edf3;
    --text-muted: #b4bcc1;
    --green: #14f46f;
    --green-dim: rgba(0, 211, 149, 0.1);
    --green-border: rgba(0, 211, 149, 0.3);
    --green-glow: rgba(0, 211, 149, 0.15);
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --font-sans: 'Consolas', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1140px;
}

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

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Utilities ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.accent-text {
    color: var(--green);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.btn-green {
    background: var(--green);
    color: var(--bg);
}

.btn-green:hover {
    box-shadow: 0 0 24px var(--green-glow), 0 0 48px rgba(0, 211, 149, 0.08);
    transform: translateY(-1px);
}

.btn-outline-green {
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green-border);
}

.btn-outline-green:hover {
    background: var(--green-dim);
    border-color: var(--green);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 10px 12px;
}

.btn-ghost:hover {
    color: var(--text);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(11, 14, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    height: 56px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green);
    margin-right: auto;
}

.logo-dot {
    color: var(--text);
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-right: 28px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 56px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.grid-floor {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%) perspective(400px) rotateX(65deg);
    width: 250%;
    height: 60%;
    background-image:
        linear-gradient(rgba(0, 211, 149, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 211, 149, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--green);
    top: 15%;
    left: 15%;
    animation: glowDrift 10s ease-in-out infinite;
}

.glow-2 {
    width: 350px;
    height: 350px;
    background: #1a73e8;
    top: 30%;
    right: 10%;
    animation: glowDrift 12s ease-in-out infinite reverse;
}

@keyframes glowDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

.hero-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Hero 3D Cube */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.cube-scene {
    perspective: 600px;
    width: 150px;
    height: 150px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 25s linear infinite;
}

@keyframes cubeRotate {
    0%   { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid var(--green-border);
    background: rgba(0, 211, 149, 0.03);
}

.face.front  { transform: translateZ(75px); }
.face.back   { transform: rotateY(180deg) translateZ(75px); }
.face.right  { transform: rotateY(90deg) translateZ(75px); }
.face.left   { transform: rotateY(-90deg) translateZ(75px); }
.face.top    { transform: rotateX(90deg) translateZ(75px); background: rgba(0, 211, 149, 0.06); }
.face.bottom { transform: rotateX(-90deg) translateZ(75px); }

/* Orbit rings */
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(0, 211, 149, 0.1);
    border-radius: 50%;
}

.ring-1 {
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: orbitSpin 15s linear infinite;
}

.ring-2 {
    width: 360px;
    height: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(60deg);
    animation: orbitSpin 20s linear infinite reverse;
}

@keyframes orbitSpin {
    to { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--green);
}

/* Float badges */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.badge-dot.green {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.badge-1 {
    top: 8%;
    right: 5%;
    animation: badgeFloat 6s ease-in-out infinite;
}

.badge-2 {
    bottom: 20%;
    right: 0;
    animation: badgeFloat 7s ease-in-out infinite 1.5s;
}

.badge-3 {
    top: 45%;
    left: 2%;
    animation: badgeFloat 8s ease-in-out infinite 3s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero bottom cards */
.hero-bottom {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.hero-card:hover {
    border-color: var(--green-border);
}

.hero-card-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.scroll-hint {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scroll-arrow {
    display: inline-block;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ===== Section common ===== */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 500px;
    line-height: 1.6;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.features-tabs {
    display: flex;
    gap: 4px;
    margin: 36px 0 40px;
    padding: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.tab {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 8px 20px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text);
}

.tab.active {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid var(--green-border);
}

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

.feature-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    cursor: default;
}

.feature-card:hover {
    border-color: var(--green-border);
    background: rgba(0, 211, 149, 0.02);
    box-shadow: 0 0 40px rgba(0, 211, 149, 0.04);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--green-dim);
    border: 1px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--green);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ===== Analytics ===== */
.analytics {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.analytics-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    margin-top: 36px;
    align-items: start;
}

.analytics-text p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.analytics-text .btn {
    margin-top: 8px;
}

.chart-card {
    padding: 24px;
}

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

.chart-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
}

.chart-period {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
}

.bar {
    flex: 1;
    height: var(--h);
    background: rgba(0, 211, 149, 0.15);
    border-radius: 4px 4px 0 0;
    border: 1px solid var(--green-border);
    border-bottom: none;
    position: relative;
    transition: all 0.3s;
    min-height: 20px;
}

.bar.active {
    background: rgba(0, 211, 149, 0.3);
}

.bar span {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.bar:hover {
    background: rgba(0, 211, 149, 0.25);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stat-box {
    padding: 20px 16px;
    text-align: center;
}

.stat-val {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 4px;
}

.stat-lbl {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Integrations ===== */
.integrations {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.integrations .section-desc {
    margin-bottom: 40px;
}

.integrations-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 12px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.integration-item {
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.integration-item:hover {
    color: var(--text);
    border-color: var(--green-border);
}

/* ===== Pricing ===== */
.pricing {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.pricing .section-title {
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.pricing-card {
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-card.featured {
    border-color: var(--green-border);
    box-shadow: 0 0 60px rgba(0, 211, 149, 0.06);
}

.featured-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 3px 14px;
    border-radius: 20px;
    background: var(--green);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.pricing-price {
    margin-bottom: 28px;
}

.price-val {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 800;
}

.price-per {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-list {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
    font-family: var(--font-mono);
}

.pricing-list li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--green);
    font-weight: 700;
}

/* ===== CTA ===== */
.cta {
    padding: 60px 0 100px;
}

.cta-box {
    text-align: center;
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.cta-box h2 {
    font-family: var(--font-mono);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.cta-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s;
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-input:focus {
    border-color: var(--green-border);
}

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-left a,
.footer-version {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.footer-left a:hover {
    color: var(--text);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

/* ===== Scroll animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 300px;
    }

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

    .analytics-layout {
        grid-template-columns: 1fr;
    }

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

    .pricing-card:last-child {
        grid-column: 1 / -1;
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-container > .btn {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(11, 14, 17, 0.95);
        backdrop-filter: blur(16px);
        padding: 20px 24px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        height: 250px;
    }

    .cube-scene {
        width: 110px;
        height: 110px;
    }

    .face {
        width: 110px;
        height: 110px;
    }

    .face.front  { transform: translateZ(55px); }
    .face.back   { transform: rotateY(180deg) translateZ(55px); }
    .face.right  { transform: rotateY(90deg) translateZ(55px); }
    .face.left   { transform: rotateY(-90deg) translateZ(55px); }
    .face.top    { transform: rotateX(90deg) translateZ(55px); }
    .face.bottom { transform: rotateX(-90deg) translateZ(55px); }

    .ring-1, .ring-2 {
        display: none;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card:last-child {
        max-width: none;
    }

    .features-tabs {
        overflow-x: auto;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
    }

    .footer-left {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .float-badge {
        display: none;
    }
}
