/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Colors - Light Theme */
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --accent-purple: #af52de;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 96px;

    /* Layout */
    --container-width: 1200px;
    --header-height: 60px;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    color: #000000;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent-blue);
    font-weight: 500;
    margin-top: 16px;
    transition: gap 0.2s ease;
    gap: 4px;
}

.link-arrow:hover {
    gap: 8px;
    text-decoration: underline;
}

/* Animations */
.animate-on-scroll {
    /* For HTML static version without complex JS intersection observers, we'll keep opacity 1 */
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin-bottom: 4px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: block !important;
    padding: 12px !important;
    border-radius: 8px !important;
    transition: background 0.2s ease !important;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.dropdown-desc {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 60px);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-visual {
    height: 600px;
    background: radial-gradient(circle at center, rgba(41, 151, 255, 0.2) 0%, transparent 70%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-placeholder {
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
    }
}

/* Cards & Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.card-icon {
    margin-bottom: var(--spacing-sm);
    color: var(--accent-blue);
}

.glass-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Tags */
.tag {
    display: inline-block;
}

/* Hero Orbital Visual */
.hero-orbital {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: visible;
}

.connector-line {
    stroke: rgba(0, 113, 227, 0.15);
    stroke-width: 1.5;
    fill: none;
}

/* Center Hub */
.orbital-center {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid rgba(0, 113, 227, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(0, 113, 227, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    gap: 4px;
}

.orbital-center::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 113, 227, 0.1);
    animation: hubPulse 3s ease-in-out infinite;
}

.orbital-center::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 113, 227, 0.08);
    animation: hubSpin 30s linear infinite;
}

@keyframes hubPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.6;
    }
}

@keyframes hubSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hub-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.hub-sublabel {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Platform Nodes */
.orbital-node {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: nodeFloat 4s ease-in-out infinite;
}

.node-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.orbital-node:hover .node-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.15);
}

.node-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Position each node */
.node-1 {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node-2 {
    top: 18%;
    right: 2%;
    animation-delay: 0.7s;
}

.node-3 {
    bottom: 18%;
    right: 2%;
    animation-delay: 1.4s;
}

.node-4 {
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.1s;
}

.node-5 {
    bottom: 18%;
    left: 2%;
    animation-delay: 2.8s;
}

.node-6 {
    top: 18%;
    left: 2%;
    animation-delay: 3.5s;
}

.node-7 {
    top: 50%;
    right: -2%;
    transform: translateY(-50%);
    animation-delay: 0.35s;
}

@keyframes nodeFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -6px;
    }
}

/* Animated connector dots */
.flow-dot {
    fill: var(--accent-blue);
    opacity: 0;
}

.flow-dot-1 {
    animation: flowAnim 3.5s ease-in-out infinite 0s;
}

.flow-dot-2 {
    animation: flowAnim 3.5s ease-in-out infinite 0.6s;
}

.flow-dot-3 {
    animation: flowAnim 3.5s ease-in-out infinite 1.2s;
}

.flow-dot-4 {
    animation: flowAnim 3.5s ease-in-out infinite 1.8s;
}

.flow-dot-5 {
    animation: flowAnim 3.5s ease-in-out infinite 2.4s;
}

.flow-dot-6 {
    animation: flowAnim 3.5s ease-in-out infinite 3.0s;
}

.flow-dot-7 {
    animation: flowAnim 3.5s ease-in-out infinite 0.3s;
}

@keyframes flowAnim {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    85% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}