:root {
    --bg: #0a0a0a;
    --text: #fff;
    --muted: #666;
    --accent: #00c8ff;
    --accent-dim: rgba(0, 200, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--accent);
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    cursor: none;
    overflow-x: hidden;
}

.cursor-follow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s, width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

.floating-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 100px;
    border: 1px solid #222;
    z-index: 1000;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: scale(1.05);
}

main {
    padding: 0 8%;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 8rem;
}

.overline {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -4px;
}

.hero h1 .line {
    display: block;
}

.hero h1 .accent {
    color: var(--accent);
    -webkit-text-stroke: 2px var(--accent);
    -webkit-text-fill-color: transparent;
}

.hero-left p {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.stat .num {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat .label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Hero Graph */
#hero-graph {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.graph-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.graph-line {
    stroke: var(--accent);
    stroke-width: 1;
    stroke-opacity: 0.3;
    fill: none;
    filter: drop-shadow(0 0 5px var(--accent));
}

.graph-node {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s linear;
}

.center-node {
    width: 80px;
    height: 80px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-dim);
}

.center-node i {
    font-size: 2rem;
    color: var(--accent);
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.satellite {
    background: #111;
    border: 1px solid #333;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    /* Initial positions will be set by JS or specific classes */
}

.satellite .node-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.satellite i {
    color: var(--accent);
    font-size: 1.2rem;
}

.satellite span {
    font-family: monospace;
    color: #fff;
    font-size: 0.9rem;
}

/* Positioning satellites roughly */
.satellite[data-u="1"] {
    top: 10%;
    left: 0%;
    transform: translate(20px, 20px);
}

.satellite[data-u="2"] {
    top: 20%;
    right: 0%;
    transform: translate(-20px, 20px);
}

.satellite[data-u="3"] {
    bottom: 20%;
    left: 10%;
}

.satellite[data-u="4"] {
    bottom: 10%;
    right: 10%;
}

/* Animate satellites */
.satellite {
    animation: floatNode 6s ease-in-out infinite;
}

.satellite[data-u="2"] {
    animation-delay: 1s;
}

.satellite[data-u="3"] {
    animation-delay: 2s;
}

.satellite[data-u="4"] {
    animation-delay: 3s;
}

@keyframes floatNode {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-right {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: #151515;
    border: 1px solid #222;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.c1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.c2 {
    top: 40%;
    right: 5%;
    animation-delay: 1s;
}

.c3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.card-icon {
    font-size: 1.3rem;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
}

.card-text {
    font-family: monospace;
    font-size: 1rem;
    color: var(--muted);
}

.circle-deco {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px dashed #333;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.work,
.how {
    padding: 8rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tag {
    background: var(--accent);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.api-item {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.api-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: #151515;
}

.api-item i {
    font-size: 1.4rem;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
}

.api-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.api-name {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.api-desc {
    font-size: 0.8rem;
    color: var(--muted);
}

.steps {
    display: flex;
    gap: 2rem;
}

.step {
    flex: 1;
    position: relative;
    padding-left: 3rem;
}

.step-line {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% + 2rem);
    height: 2px;
    background: #222;
}

.step:last-child .step-line {
    display: none;
}

.step-circle {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-content h4 {
    margin-top: 3rem;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-section {
    padding: 6rem 0 10rem;
}

.cta-box {
    background: linear-gradient(135deg, #151515, #0f0f0f);
    border: 1px solid #222;
    border-radius: 30px;
    padding: 5rem;
    text-align: center;
}

.cta-box h2 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.big-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.big-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px var(--accent-dim);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 8%;
    border-top: 1px solid #1a1a1a;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-left {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
}

.footer-right a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-dim);
}

@media (max-width: 1024px) {
    .services-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .api-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .steps {
        flex-direction: column;
    }

    .step-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        padding: 0.8rem 1.5rem;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .api-grid {
        grid-template-columns: 1fr;
    }

    .services-row {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 2.5rem;
    }

    .big-btn {
        width: 100%;
        justify-content: center;
    }

    body {
        cursor: auto;
    }

    .cursor-follow {
        display: none;
    }
}