:root {
    --accent: #ff6b3d;
    --accent-soft: rgba(255, 107, 61, 0.12);
    --accent-secondary: #3d8bff;
    --bg-body: #05030a;
    --text-primary: #f5f5f5;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

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

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    z-index: 9999;
    transform-origin: left center;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar / Nav */
.sidebar {
    padding: 24px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: rgba(5, 3, 10, 0.3);
    /* Transparent background */
    backdrop-filter: blur(10px);
    /* Blur effect */
    z-index: 100;
}

@media (max-width: 900px) {
    .sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-img {
    height: 32px;
    /* Adjust height as needed */
    width: auto;
    display: block;
}

/* If background is white (e.g. in a future light mode), invert color */
/* .light-mode .logo-img { filter: invert(1); } */


.sidebar-desc {
    margin-top: 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.sidebar-nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all .2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav a.active {
    border-left: 2px solid var(--accent);
    background: linear-gradient(90deg, rgba(255, 107, 61, 0.1), transparent);
}

.sidebar-nav i {
    width: 18px;
    height: 18px;
}


.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-link {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
}

.lang-link:hover {
    color: var(--accent);
    background: rgba(255, 107, 61, 0.1);
    transform: translateY(-2px);
}

.lang-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    box-shadow: 0 4px 12px rgba(255, 107, 61, 0.3);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
}


.sidebar-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(255, 107, 61, 0.8);
}

/* Main content */
.main {
    position: relative;
    overflow: hidden;
}

/* background animated blobs */
.bg-blob {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -2;
}

.bg-blob.blob1 {
    background: radial-gradient(circle, var(--accent), transparent 60%);
    top: -120px;
    left: -80px;
    animation: float1 16s ease-in-out infinite;
}

.bg-blob.blob2 {
    background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
    bottom: -160px;
    right: -80px;
    animation: float2 18s ease-in-out infinite;
}

@keyframes float1 {

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

    50% {
        transform: translate(80px, 120px);
    }
}

@keyframes float2 {

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

    50% {
        transform: translate(-60px, -90px);
    }
}

/* Sections */
section {
    min-height: 100vh;
    padding: 64px 8vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section::after {
    content: "";
    position: absolute;
    inset: 0 8%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

section:last-of-type::after {
    border-bottom: none;
}

.section-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.4rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin-bottom: 18px;
    font-weight: 700;
}

.section-title span.accent {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.section-subtitle {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Hero specific */
#hero {
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column since orb is gone */
    gap: 40px;
    align-items: center;
    max-width: 100%;
    /* Full width as requested */
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-kicker span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.97rem;
    line-height: 1.7;
    max-width: 600px;
    /* Increased width */
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.btn {
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    background: radial-gradient(circle at 0 0, #ffb199 0, var(--accent) 40%, #ff0844 100%);
    border-color: transparent;
    box-shadow: 0 0 25px rgba(255, 107, 61, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(255, 107, 61, 0.8);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-meta-item strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
}

/* Three.js Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Features / sections */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.mini-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 36px;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.feature {
    padding: 14px 16px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(24, 24, 36, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.feature strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.inline-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.code-block {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    padding: 10px 12px;
    border-radius: 10px;
    overflow: auto;
    color: #a1a1aa;
    font-family: monospace;
}

/* Product/Audience cards with tilt */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.product-card,
.audience-card {
    position: relative;
    border-radius: 22px;
    padding: 18px 18px 18px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(16, 16, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .15s ease-out, box-shadow .15s ease-out, border-color .2s;
    cursor: pointer;
}

.product-card::before,
.audience-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.25), transparent 55%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.product-card:hover,
.audience-card:hover {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
}

.product-card:hover::before,
.audience-card:hover::before {
    opacity: 0.45;
}

.product-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.product-title,
.audience-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-desc,
.audience-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
}

.product-meta {
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.65);
}

.badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
}

/* CTA section */
.cta-box {
    padding: 32px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 45%),
        linear-gradient(140deg, rgba(255, 107, 61, 0.4), rgba(61, 139, 255, 0.4), rgba(0, 0, 0, 0.9));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
    max-width: 620px;
}

.cta-box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.85);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

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

/* Footer */
footer {
    padding: 22px 8vw 30px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
    footer {
        flex-direction: column;
    }
}