/* ===== Design Tokens ===== */
:root {
    /* Colors — dark mode by default */
    --color-brand: #00BD7D;
    --color-brand-strong: #00BD7D;
    --color-brand-soft: #0A1A3D;
    --color-brand-softer: #060B18;

    --color-success: #009966;
    --color-warning: #F97316;
    --color-danger: #C70036;

    --color-bg: #060B18;
    --color-bg-soft: #0C1222;
    --color-bg-medium: #131B2E;
    --color-bg-strong: #1E293B;

    --color-surface: rgba(255,255,255,0.06);
    --color-surface-hover: rgba(255,255,255,0.10);

    --color-text: #F1F5F9;
    --color-text-body: #94A3B8;
    --color-text-subtle: #64748B;

    --color-border: rgba(255,255,255,0.10);
    --color-border-strong: rgba(255,255,255,0.15);

    --color-dark: #1E293B;
    --color-dark-strong: #0F172A;

    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-base: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-base: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.03);
    --shadow-sm: 0 2px 6px -1px rgb(0 0 0 / 0.07), 0 1px 3px -1px rgb(0 0 0 / 0.05);
    --shadow-md: 0 6px 16px -4px rgb(0 0 0 / 0.08), 0 2px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 12px 28px -6px rgb(0 0 0 / 0.1), 0 4px 12px -4px rgb(0 0 0 / 0.06);
    --shadow-xl: 0 24px 48px -10px rgb(0 0 0 / 0.14), 0 8px 20px -8px rgb(0 0 0 / 0.08);
    --shadow-2xl: 0 32px 64px -16px rgb(0 0 0 / 0.22);

    /* Button glint */
    --glint-highlight: rgba(255,255,255,0.08);
    --glint-shadow: rgba(0,0,0,0.30);
}

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

html { scroll-behavior: smooth; }

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

/* ===== Glass System ===== */
.glass {
    background: var(--color-surface);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--color-border);
}

.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-md);
}

.glass-inner {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===== Container ===== */
.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,189,125,0.15) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
    z-index: 0;
    will-change: transform;
}
body:hover .cursor-glow { opacity: 1; }

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-base) var(--space-lg);
    transition: all 0.3s;
}
.nav.scrolled {
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}
.nav-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 18px;
}
.logo-icon {
    font-size: 22px;
    color: var(--color-brand);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--color-text-body);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-text); }
.nav-cta {
    background: var(--color-brand) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.nav-cta:hover {
    background: var(--color-brand-strong) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.blur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}
.orb-1 {
    width: 500px; height: 500px;
    background: var(--color-brand);
    top: -100px; left: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: #0EA5E9;
    bottom: -50px; right: -50px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}
.orb-3 {
    width: 300px; height: 300px;
    background: #8B5CF6;
    top: 40%; left: 50%;
    animation: orbFloat 18s ease-in-out infinite 5s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-base);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-body);
    margin-bottom: 32px;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.title-accent {
    color: var(--color-brand);
}
.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-body);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: var(--space-base);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius-base);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}
.btn-brand {
    background: var(--color-brand);
    color: white;
    box-shadow:
        var(--shadow-sm),
        inset var(--glint-highlight) 0 6px 0px -5px,
        var(--glint-shadow) 0 4px 10px -5px;
}
.btn-brand:hover {
    background: var(--color-brand-strong);
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-md),
        inset var(--glint-highlight) 0 6px 0px -5px,
        var(--glint-shadow) 0 6px 16px -5px;
}
.btn-ghost {
    background: transparent;
    color: var(--color-text-body);
    border: 1px solid var(--color-border);
}
.btn-ghost:hover {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
}

/* ===== Hero Proof ===== */
.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}
.proof-item { text-align: center; }
.proof-number {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--color-brand);
}
.proof-unit {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-brand);
}
.proof-label {
    display: block;
    font-size: 13px;
    color: var(--color-text-subtle);
    margin-top: 4px;
}
.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* ===== 3D Perspective Mockup ===== */
.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 60px;
    width: 100%;
    max-width: 900px;
}
.perspective-container {
    perspective: 1200px;
    transform-style: preserve-3d;
    position: relative;
}
.panel-3d {
    border-radius: var(--radius-base);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: rotateY(-5deg) rotateX(3deg);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.panel-3d:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.panel-bar {
    display: flex;
    align-items: center;
    gap: var(--space-base);
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--color-border);
}
.panel-dots {
    display: flex;
    gap: 6px;
}
.panel-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.panel-title {
    font-size: 13px;
    color: var(--color-text-subtle);
    font-weight: 500;
}

.panel-body {
    display: flex;
    min-height: 320px;
    transform-style: preserve-3d;
}
.panel-sidebar {
    width: 180px;
    padding: var(--space-base) var(--space-md);
    border-right: 1px solid var(--color-border);
    background: rgba(0,0,0,0.2);
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-subtle);
    cursor: default;
    transition: all 0.2s;
}
.sidebar-item.active {
    background: rgba(0,189,125,0.15);
    color: var(--color-brand);
}
.si-icon { font-size: 14px; }

.panel-main {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    gap: 32px;
    align-items: center;
    transform-style: preserve-3d;
}
.disk-visual { flex-shrink: 0; }
.disk-ring { position: relative; width: 120px; height: 120px; }
.disk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.disk-progress {
    stroke-dasharray: 220 314;
    animation: diskFill 2s ease-out 1s both;
}
@keyframes diskFill {
    from { stroke-dasharray: 0 314; }
}
.disk-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.disk-percent {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
}
.disk-label {
    font-size: 11px;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.data-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-body);
}
.db-label { width: 70px; flex-shrink: 0; }
.db-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.db-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-brand), #0EA5E9);
    border-radius: var(--radius-full);
    animation: barGrow 1.5s ease-out 1.2s both;
}
@keyframes barGrow {
    from { width: 0 !important; }
}
.db-value {
    width: 55px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Floating pills */
.floating-pill {
    position: absolute;
    padding: 10px 20px;
    border-radius: var(--radius-base);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
}
.pill-1 {
    top: 20%;
    right: -30px;
    transform: translateZ(40px) rotateY(-10deg);
    animation: pillFloat 6s ease-in-out infinite;
}
.pill-2 {
    bottom: 20%;
    left: -20px;
    transform: translateZ(50px) rotateY(8deg);
    animation: pillFloat 7s ease-in-out infinite 1s;
}
@keyframes pillFloat {
    0%, 100% { transform: translateZ(40px) rotateY(-10deg) translateY(0); }
    50% { transform: translateZ(40px) rotateY(-10deg) translateY(-8px); }
}

/* ===== Marquee ===== */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee-track {
    display: flex;
    gap: 24px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.marquee-track span {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.marquee-track .dot { color: var(--color-brand); }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Features ===== */
.features {
    padding: var(--space-4xl) 0;
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-base);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.8px;
    text-transform: uppercase;
}

.perspective-grid {
    perspective: 1000px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.interactive-card:hover {
    background: var(--color-surface-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-card {
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,189,125,0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-base);
}
.feature-icon { font-size: 32px; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}
.feature-card p {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.feature-visual {
    position: relative;
    z-index: 1;
    margin-top: var(--space-base);
    display: flex;
    justify-content: center;
}
.mini-ring { width: 80px; height: 80px; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

/* ===== How ===== */
.how {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, transparent, rgba(0,189,125,0.03), transparent);
}
.steps {
    display: flex;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}
.step {
    flex: 1;
    padding: var(--space-xl);
}
.step-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: rgba(0,189,125,0.15);
    line-height: 1;
    margin-bottom: var(--space-base);
}
.step h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}
.step p {
    font-size: 15px;
    color: var(--color-text-body);
    line-height: 1.7;
}

/* ===== Comparison ===== */
.comparison {
    padding: var(--space-4xl) 0;
}
.comparison-table {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}
.comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--color-border);
}
.comp-row:last-child { border-bottom: none; }
.comp-row > div {
    padding: 16px 24px;
    font-size: 14px;
}
.comp-header {
    background: rgba(255,255,255,0.03);
    font-weight: 600;
}
.comp-feature { color: var(--color-text-body); }
.comp-us { color: var(--color-brand); font-weight: 500; }
.comp-them { color: var(--color-text-subtle); }

/* ===== Download ===== */
.download {
    padding: var(--space-4xl) 0;
}
.download-card {
    position: relative;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}
.download-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.d-orb-1 {
    width: 400px; height: 400px;
    background: var(--color-brand);
    top: -100px; right: -100px;
    animation: orbFloat 15s ease-in-out infinite;
}
.d-orb-2 {
    width: 300px; height: 300px;
    background: #0EA5E9;
    bottom: -100px; left: -50px;
    animation: orbFloat 18s ease-in-out infinite reverse;
}
.download-content {
    position: relative;
    z-index: 1;
}
.download-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}
.download-content p {
    font-size: 17px;
    color: var(--color-text-body);
    margin-bottom: 36px;
}
.download-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}
.download-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-subtle);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 16px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--color-text-subtle);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-text); }
.footer-copy {
    font-size: 13px;
    color: var(--color-text-subtle);
}

/* ===== Install Steps ===== */
.install-steps {
    margin-top: 48px;
}
.install-steps h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-base);
    margin-bottom: 20px;
}
.install-step {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.install-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.install-info h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.install-info p {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.6;
}
.install-info strong {
    color: var(--color-text);
}
.install-note {
    padding: 16px 20px;
    border-radius: var(--radius-base);
    font-size: 14px;
    color: var(--color-text-body);
    text-align: center;
}
.install-note strong {
    color: var(--color-brand);
}

/* ===== Animations ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero-proof { flex-direction: column; gap: 20px; }
    .proof-divider { width: 40px; height: 1px; }
    .features-grid { grid-template-columns: 1fr; }
    .panel-sidebar { display: none; }
    .panel-main { flex-direction: column; padding: 20px; }
    .steps { flex-direction: column; gap: 24px; }
    .step { padding: var(--space-lg); }
    .comp-row > div { padding: 12px 16px; font-size: 13px; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .floating-pill { display: none; }
    .install-grid { grid-template-columns: 1fr; }
}
