@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-glass: rgba(15, 15, 15, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Neon Accents */
    --logo-green: #00ff88;
    --neon-green: #00ff22;
    --neon-green-glow: rgba(0, 255, 34, 0.3);
    --neon-red: #ff1a1a;
    --neon-yellow: #ffcc00;
    
    /* Typography */
    --text-main: #f0f0f0;
    --text-dim: #9ca3af;
    --text-dark: #111;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-dark);
    max-width: 100%;
    /* overflow-x intentionally NOT set on html: Edge freezes scroll when
       clip/hidden is on the root element. Body handles horizontal clipping. */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: clip;  /* clip ≠ scroll-container → sticky works; html has no overflow-x (Edge fix) */
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    position: relative;
    line-height: 1.6;
}

/* Ambient Background Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
}

body::before {
    background: rgba(0, 255, 136, 0.15);
    top: -100px;
    left: -100px;
    animation: drift 20s infinite alternate ease-in-out;
}

body::after {
    background: rgba(30, 60, 255, 0.1);
    bottom: -100px;
    right: -100px;
    animation: drift 25s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.1); }
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s ease;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo-icon {
    height: 32px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover .logo-icon {
    transform: scale(1.06);
}

.nav-logo .brand-accent {
    color: var(--neon-green);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    background: rgba(0, 255, 34, 0.05);
    color: var(--neon-green) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 34, 0.2);
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--neon-green);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 255, 34, 0.4);
}

.nav-cta-highlight {
    background: linear-gradient(135deg, rgba(0, 255, 34, 0.1), rgba(0, 180, 20, 0.1));
    color: var(--neon-green) !important;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 34, 0.5);
    font-weight: 600 !important;
    margin-left: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 0 10px rgba(0, 255, 34, 0.1) inset;
}

.nav-cta-highlight:hover {
    background: var(--neon-green);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 34, 0.6);
    transform: translateY(-2px);
}

/* ── Language Switcher Button ── */
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.lang-switch-btn:active {
    transform: scale(0.97);
}

.hamburger {
    display: none;
}

/* ─── HERO ─── */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Advanced Spline Background */
.spline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;   /* fill the .hero section completely */
    z-index: 1; /* Behind UI, but visible */
    pointer-events: none;
    overflow: hidden; /* Hide anything that goes outside */
}

/* Render at native device pixel ratio via runtime – no CSS scaling needed */
.spline-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    image-rendering: crisp-edges;
    /* Mirror horizontally so green (fresh) side faces left, red (spoiled) faces right */
    transform: scaleX(-1);
    /* Ensure the canvas always fills the full container without gaps */
    object-fit: cover;
}

/* Hide the "Built with Spline" logo injected by the runtime */
.spline-container a {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Attempt to hide the Spline Logo directly via Shadow DOM parts */
spline-viewer::part(logo) {
    display: none !important;
    opacity: 0 !important;
}

/* Solid patch to physically cover the WebGL-rendered mirrored Spline logo in the bottom left */
.spline-logo-hider {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 180px;
    height: 60px;
    background-color: var(--bg-dark);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 20px 20px var(--bg-dark); /* Blend edges into the dark background */
}

.hero-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 140px 5vw 60px 5vw; /* Offset nav */
}

.hero-ui > div {
    pointer-events: auto;
}

.hero-top-left {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/**
 * hero-title-shield
 * A gradient backdrop that fades from solid dark (left) to transparent (right).
 * This stops the particle beam from visually running through the headline text
 * on any desktop resolution, without hiding the animation itself.
 */
.hero-title-shield {
    position: relative;
    padding: 2rem 6rem 2rem 0;
    /* Gradient: solid near the text → transparent so the beam is still visible */
    background: linear-gradient(
        to right,
        rgba(5, 5, 5, 0.85) 0%,
        rgba(5, 5, 5, 0.60) 55%,
        rgba(5, 5, 5, 0.00) 100%
    );
    border-radius: 0 20px 20px 0;
    margin-left: -5vw;   /* bleed to the very left edge of the viewport */
    padding-left: 5vw;   /* restore inner left spacing */
}

.hero-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.hero-bottom-left {
    display: flex;
    flex-direction: column;
}

.hero-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    animation: fadeUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    will-change: transform, opacity;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--logo-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 15px var(--logo-green); transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both;
    will-change: transform, opacity;
}

.hero-title .accent-gradient {
    background: linear-gradient(to right, var(--neon-green), var(--neon-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glass Legend */
.glass-legend {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    will-change: transform, opacity;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: #fff;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-separator {
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
    width: 100%;
}

/* Buzzwords */
.hero-buzzwords {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    margin-bottom: 24px;
    animation: fadeUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
    will-change: transform, opacity;
}

.dot-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 1.2rem 2.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary svg {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    background: var(--neon-green);
    color: #000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,255,136,0.4);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

/* Secondary Button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 1.1rem 2.4rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
    transform: translateY(-3px) scale(1.02);
}

/* ─── GENERAL SECTIONS (SUBPAGES & ONE PAGER) ─── */
.scroll-transition {
    width: 100%;
    height: 25vh;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, #ffffff 100%);
    position: relative;
    z-index: 2;
}

.content-section {
    width: 100%;
    background: #ffffff;
    color: #111111;
    padding: 100px 5vw;
    position: relative;
    z-index: 2; /* Scroll over the hero */
}

.page-header {
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #000000;
}

.page-subtitle {
    font-size: 1.4rem;
    color: #555555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Magazin / Apple Style Split Layout */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    align-items: center;
}
.split-section.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* simple reverse hack */
}
.split-section.reverse > * {
    direction: ltr;
}
@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .split-section.reverse {
        grid-template-columns: 1fr;
    }
}

.split-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ─── CODE VISUALIZATIONS ─── */
.code-visual {
    width: 100%;
    max-width: 450px;
    height: 450px;
    background: #f8f8fb;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.02);
}

/* Problem: Donut */
.donut-chart {
    width: 280px;
    height: 280px;
    transform: rotate(-90deg);
}
.donut-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}
.donut-fill {
    fill: none;
    stroke: #111;
    stroke-width: 12;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    stroke-linecap: round;
    animation: fillDonut 2s ease-out forwards;
}
@keyframes fillDonut {
    to { stroke-dashoffset: 75; } /* ~70% fill */
}
.donut-text {
    position: absolute;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #000;
}
.donut-text span {
    font-size: 1rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tech: pH Animation */
.code-visual-tech {
    background: #ffffff;
    filter: contrast(110%);
}
.ph-circle {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.7;
    animation: phShift 8s infinite alternate ease-in-out;
}
.ph-circle-1 {
    background: var(--neon-green);
    top: 20%; left: 20%;
    animation-delay: 0s;
}
.ph-circle-2 {
    background: #ffaa00;
    top: 30%; right: 20%;
    animation-delay: -2s;
}
.ph-circle-3 {
    background: var(--neon-red);
    bottom: 20%; left: 30%;
    animation-delay: -4s;
}
@keyframes phShift {
    0% { transform: scale(1) translate(0, 0); background: var(--neon-green); }
    50% { transform: scale(1.2) translate(30px, -20px); background: #ffaa00; }
    100% { transform: scale(0.9) translate(-20px, 40px); background: var(--neon-red); }
}

/* Product: CSS Package */
.css-package {
    width: 240px;
    height: 320px;
    background: linear-gradient(135deg, #ffffff, #f0f0f4);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1), inset 0 2px 0 #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.css-label {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.css-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--logo-green);
    box-shadow: 0 0 20px var(--logo-green);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    /* same keyframes – defined once above in Enhancements section */
    0%, 100% { box-shadow: 0 0 8px rgba(0,255,136,0.5); transform: scale(1); }
    50%       { box-shadow: 0 0 25px var(--logo-green);  transform: scale(1.1); }
}
.css-lines {
    width: 50px;
    height: 6px;
    background: #eef;
    border-radius: 3px;
    position: relative;
}
.css-lines::before, .css-lines::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 6px;
    background: #eef;
    border-radius: 3px;
    left: -10px;
}
.css-lines::before { top: -14px; }
.css-lines::after { top: 14px; }

.split-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 800;
    line-height: 1.1;
}

.split-text .huge-stat {
    font-size: 4.5rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.split-text p {
    font-size: 1.25rem;
    color: #444444;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Clean panel */
.clean-panel {
    background: #ffffff;
    border: none;
    padding: 0;
    margin: 0 auto 60px auto;
    max-width: 900px;
}

.clean-panel h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #000000;
    font-weight: 800;
}

.clean-panel p {
    font-size: 1.25rem;
    color: #333333;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.clean-panel ul {
    list-style: none;
    margin-top: 2rem;
    margin-left: 0;
}

.clean-panel li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333333;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.clean-panel li::before {
    content: '•';
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* ─── GRID LAYOUTS ─── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

/* ─── TECH CIRCLE DIAGRAM ─── */
.tech-circle-diagram {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px dashed #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.center-package {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.svg-package {
    width: 80px;
    height: 80px;
}
.orbit-step {
    position: absolute;
    background: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    z-index: 3;
}
.step-num {
    background: #111;
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
}
.step-1 { top: -20px; left: 50%; transform: translateX(-50%); }
.step-2 { bottom: 15%; right: -40px; }
.step-3 { bottom: 15%; left: -40px; }
@media (max-width: 600px) {
    .orbit-step { position: relative; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none !important; margin: 10px 0; }
    .tech-circle-diagram { border: none; height: auto; flex-direction: column; }
}

.feature-card {
    background: transparent;
    border-radius: 0;
    padding: 2rem 0;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    transition: none;
    text-align: left;
}
.feature-card:hover {
    transform: none;
    box-shadow: none;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--neon-green);
    display: flex;
}
.feature-icon svg {
    width: 40px;
    height: 40px;
}
.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.feature-text {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.6;
}

/* Quote */
.quote-card {
    background: #f5f5f7;
    padding: 5rem 3rem;
    border-radius: 30px;
    margin: 6rem auto;
    position: relative;
    max-width: 1000px;
    text-align: center;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

.quote-text strong {
    color: var(--neon-green);
}

/* Footer */
footer {
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-icon {
    height: 32px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover .logo-icon {
    transform: scale(1.06);
}

.footer-logo .brand-accent { color: var(--neon-green); }

.footer-note {
    color: #555;
    font-size: 0.9rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-green);
}

@media (max-width: 768px) {
    footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}


/* Utilities */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   TABLET & SMARTPHONE  (≤ 768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Nav / Hamburger ── */
    nav { width: 100%; padding: 0 5vw; }
    .hamburger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
    .hamburger .bar { width: 28px; height: 3px; background-color: #fff; transition: all 0.3s ease; border-radius: 2px; display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(5, 5, 5, 0.98); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1); gap: 2rem; margin: 0; padding: 2rem;
        z-index: 1000;
    }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.4rem; padding: 14px 24px; display: block; min-height: 48px; line-height: 1; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* ── Sections / Padding ── */
    .content-section { padding: 60px 5vw; }
    .page-header { margin-bottom: 40px; }
    .page-header[style] { padding-top: 100px !important; }
    .page-subtitle { font-size: 1.1rem; }

    /* ── Hero ── */
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-ui { padding: 90px 5vw 40px 5vw; }
    .hero-bottom-container { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .hero-bottom-right { align-items: flex-start; width: 100%; }
    .hero-buzzwords { flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; font-size: 0.75rem; }
    .glass-legend { padding: 16px 20px; gap: 12px; }
    .legend-row { font-size: 0.95rem; }
    .btn-primary { padding: 1rem 1.8rem; font-size: 1rem; width: 100%; justify-content: center; }
    /* Shield not needed on mobile – the layout stacks so text is never over the beam */
    .hero-title-shield {
        background: none;
        padding: 0;
        margin-left: 0;
        padding-left: 0;
        border-radius: 0;
    }

    /* ── Split Section ── */
    .split-section { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 40px; }
    .split-section.reverse { grid-template-columns: 1fr; direction: ltr; }
    .split-text h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .split-text p { font-size: 1rem; }
    .split-text .huge-stat { font-size: 3rem; }

    /* ── Code Visuals ── */
    .code-visual {
        width: 100%; max-width: 100%; height: 300px;
        padding: 20px; border-radius: 20px;
    }
    .donut-chart { transform: rotate(-90deg) scale(0.75); }
    .donut-text { font-size: 2.8rem; }
    .css-package { transform: scale(0.75); }

    /* ── Tech Circle Diagram ── */
    .tech-circle-diagram {
        max-width: 280px; height: 280px;
        margin: 0 auto; border: 1px dashed #ccc;
    }

    /* ── Market Circles ── */
    .market-visual-container { min-height: 260px; padding: 1rem 0; }
    .circle-wrapper { transform: scale(0.82); transform-origin: center center; }

    /* ── Problem Grid ── */
    .problem-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .problem-card { padding: 2rem; }
    .huge-number { font-size: 3.5rem; }
    .huge-number .unit { font-size: 1.4rem; }
    .problem-card h3 { font-size: 1.5rem; }
    .problem-icon-wrapper svg { width: 60px; height: 60px; }

    /* ── Quote Card ── */
    .quote-card { padding: 1.5rem 0 1.5rem 1.5rem; margin: 3rem auto; }
    .quote-text { font-size: 1.3rem; }

    /* ── Bento Grid ── */
    .bento-grid { grid-template-columns: 1fr; gap: 1rem; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
    .bento-item { padding: 1.8rem; border-radius: 16px; }
    .bento-title { font-size: 1.4rem; }
    .bento-text { font-size: 1rem; }

    /* ── Production Cards ── */
    .production-cards { flex-direction: column; gap: 1rem; }
    .prod-card { padding: 1.8rem; }

    /* ── Team Grid ── */
    .team-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
    .team-card { padding: 2rem 1.5rem; }
    .team-card h3 { font-size: 1.5rem; }
    .team-contact a { padding: 0.9rem; min-height: 48px; display: flex; align-items: center; justify-content: center; }

    /* ── Story Block ── */
    .story-block { padding: 2rem; border-radius: 16px; }
    .story-content h2 { font-size: 1.8rem; }
    .story-content p { font-size: 1rem; }

    /* ── Contact CTA ── */
    .contact-cta { padding: 3rem 1.5rem; border-radius: 20px; margin-top: 3rem; }
    .contact-cta h2 { font-size: 1.8rem; }
    .contact-cta p { font-size: 1rem; margin-bottom: 2rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; gap: 1rem; }

    /* ── Clean Panel ── */
    .clean-panel h2 { font-size: 1.8rem; }
    .clean-panel p { font-size: 1rem; }

    /* ── Business Section ── */
    .page-header[style] { padding: 0 0 40px !important; }

    /* ── Footer ── */
    footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2.5rem 5vw; }
    .footer-links a { margin: 0 8px; }
}

/* ═══════════════════════════════════════════
   SMALL SMARTPHONES  (≤ 480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {

    /* ── Nav ── */
    .nav-logo { font-size: 1.2rem; gap: 8px; }
    .nav-logo .logo-icon { height: 26px; }
    .nav-links a { font-size: 1.2rem; }

    /* ── Hero ── */
    .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
    .hero-badge { font-size: 0.65rem; padding: 0.4rem 0.9rem; }
    .glass-legend { padding: 12px 16px; gap: 10px; border-radius: 14px; }
    .legend-row { font-size: 0.85rem; gap: 10px; }

    /* ── Page Headers ── */
    .page-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
    .page-subtitle { font-size: 1rem; }

    /* ── Typography ── */
    .split-text h2, .clean-panel h2, .tech-step h3 { font-size: 1.5rem; }
    .split-text p, .clean-panel p, .tech-step p { font-size: 0.95rem; }
    .quote-text { font-size: 1.1rem; }
    .story-content h2 { font-size: 1.5rem; }
    .contact-cta h2 { font-size: 1.6rem; }
    .bento-title { font-size: 1.2rem; }
    .bento-text { font-size: 0.95rem; }

    /* ── Problem Numbers ── */
    .huge-number { font-size: 2.8rem; }
    .huge-number .unit { font-size: 1.2rem; }
    .problem-card { padding: 1.5rem; }
    .problem-card h3 { font-size: 1.3rem; }

    /* ── Buttons ── */
    .btn-primary { font-size: 0.95rem; padding: 0.9rem 1.4rem; }

    /* ── Code Visuals ── */
    .code-visual { height: 240px; }
    .donut-chart { transform: rotate(-90deg) scale(0.60); }
    .donut-text { font-size: 2.2rem; }
    .css-package { transform: scale(0.60); }

    /* ── Tech Circle ── */
    .tech-circle-diagram { max-width: 240px; height: 240px; }

    /* ── Market Circles ── */
    .circle-wrapper { transform: scale(0.65); transform-origin: center center; }
    .market-visual-container { min-height: 220px; overflow: hidden; }

    /* ── Story / Team / CTA ── */
    .story-block { padding: 1.5rem; }
    .team-card { padding: 1.5rem 1rem; }
    .contact-cta { padding: 2rem 1rem; }
    .prod-card { padding: 1.5rem; }
    .prod-card h3 { font-size: 1.3rem; }
}

/* Reveal Animations – Scroll-triggered via IntersectionObserver */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.93);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}
.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Auto-stagger for sibling reveal-up elements */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }
.reveal-up:nth-child(5) { transition-delay: 0.4s; }

/* Reduced motion: skip all transitions/animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0.01ms !important;
    }
    .reveal-up, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ─── Sticky Scroll Layout ───────────────────────────────────────────── */
/*
 * Two-column layout:
 *   LEFT  (.sticky-content)  – scrollable text steps, one per 100vh
 *   RIGHT (.sticky-visual)   – illustration that sticks in place
 *
 * REQUIRES overflow-x:clip (not hidden) on html/body so that sticky
 * works correctly (overflow:hidden creates a new scroll container
 * which breaks sticky children).
 */
.sticky-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;          /* critical: both columns start at their own top */
    margin-top: 4rem;
    /* No overflow property here – would break sticky */
}

/* Left column – the scrollable text */
.sticky-content {
    padding-right: 4rem;
    padding-bottom: 20vh;        /* breathing room after the last step */
}

/* Each step = one viewport height so the user scrolls through them */
.tech-step {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    /* Inactive steps are dimmed */
    opacity: 0.3;
    transition: opacity 0.45s ease;
}
.tech-step.step-active {
    opacity: 1;
}

.tech-step h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
}
.tech-step p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
}

/* Right column – the sticky illustration */
.sticky-visual {
    position: sticky;
    top: calc(50vh - 225px);    /* vertically centred: (100vh – 450px) / 2 */
    height: 450px;               /* matches the tech-circle-diagram max-width */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Make sure it's always visible – no reveal animation needed here */
    opacity: 1 !important;
    transform: none !important;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 900px) {
    .sticky-container   { grid-template-columns: 1fr; }
    .sticky-content     { padding-right: 0; padding-bottom: 2rem; }
    .sticky-visual      { position: relative; top: 0; height: auto;
                          margin-bottom: 3rem; opacity: 1 !important; }
    .tech-step          { min-height: auto; padding: 2rem 0; opacity: 1; }
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.bento-item {
    background: #f8f8fb;
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bento-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    background: #fff;
    border: 1px solid #eaeaea;
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-icon {
    margin-bottom: 1.5rem;
    color: var(--neon-green);
}
.bento-icon svg { width: 48px; height: 48px; }
.bento-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}
.bento-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}
@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
}

/* Enhancements */
.keyword-highlight {
    font-weight: 700;
    color: #000;
    box-shadow: inset 0 -0.5em 0 rgba(0, 255, 34, 0.2);
}
.quote-card {
    background: none;
    border-left: 4px solid var(--neon-green);
    border-radius: 0;
    padding: 2rem 0 2rem 3rem;
}
.quote-text {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    color: #000;
    line-height: 1.2;
}

/* Animations */
@keyframes shakeTrash {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}
.is-revealed.code-visual-problem svg {
    animation: shakeTrash 0.5s ease-in-out 0.5s 2;
}
@keyframes pulseDot {
    0%   { transform: scale(1);   box-shadow: 0 0 0 0   rgba(0, 255, 34, 0.7); }
    70%  { transform: scale(1.5); box-shadow: 0 0 0 15px rgba(0, 255, 34, 0); }
    100% { transform: scale(1);   box-shadow: 0 0 0 0   rgba(0, 255, 34, 0); }
}
.smart-dot {
    animation: pulseDot 2s infinite;
}

/* TAM SAM SOM Circles */
.market-visual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    min-height: 400px;
}
.circle-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.circle-tam, .circle-sam, .circle-som {
    position: absolute;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.circle-tam {
    width: 320px; height: 320px;
    background: #f0f0f5;
    z-index: 1;
}
.circle-sam {
    width: 220px; height: 220px;
    background: #e1e1e8;
    z-index: 2;
}
.circle-som {
    width: 120px; height: 120px;
    background: var(--neon-green);
    color: #000;
    z-index: 3;
    justify-content: center;
    padding-top: 0;
}
.circle-label {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: #111;
}
.circle-value {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    padding: 0 1rem;
}
.circle-som .circle-label, .circle-som .circle-value {
    color: #000;
}

/* Production Split Layout */
.production-cards {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.prod-card {
    flex: 1;
    background: #111;
    color: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}
.prod-card h3 {
    font-family: var(--font-heading);
    color: var(--neon-green);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
.prod-card p {
    color: #bbb;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .production-cards { flex-direction: column; }
}

/* Problem Grid Layout */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.problem-card {
    border-radius: 24px;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.problem-card:hover {
    transform: translateY(-5px);
}
.problem-card.highlight-card {
    background: #f4f4f8;
    color: #111;
}
.problem-card.highlight-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.problem-card.dark-card {
    background: #111;
    color: #fff;
}
.problem-card.dark-card:hover {
    box-shadow: 0 20px 40px rgba(0,255,34,0.1);
}
.huge-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--neon-red);
    margin-bottom: 1.5rem;
}
.huge-number .unit {
    font-size: 2rem;
    font-weight: 600;
    margin-left: 0.5rem;
    color: #111;
}
.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.problem-card p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
}
.problem-icon-wrapper {
    margin-top: auto;
    padding-top: 3rem;
    display: flex;
    justify-content: flex-end;
}
.problem-icon-wrapper svg {
    width: 80px;
    height: 80px;
}
.highlight-card .problem-icon-wrapper svg {
    stroke: #111;
    opacity: 0.3;
}
.dark-card .problem-icon-wrapper svg {
    stroke: var(--neon-green);
    opacity: 0.6;
}
.is-revealed .trash-shake {
    animation: shakeTrash 0.5s ease-in-out 0.5s 2;
}
@media (max-width: 900px) {
    .problem-grid { grid-template-columns: 1fr; }
    .huge-number { font-size: 4rem; }
}

/* Team Page Specifics */
.story-block {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}
.story-block::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0,255,34,0.05) 0%, transparent 60%);
    z-index: 0; pointer-events: none;
}
.story-content {
    position: relative;
    z-index: 1;
}
.story-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
}
.story-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.team-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 34, 0.08);
    border-color: rgba(0, 255, 34, 0.2);
}
.team-photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #222;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #555;
    border: 2px dashed rgba(255,255,255,0.2);
}
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background-color: #222;
    background-size: 160%;
    background-position: center 25%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease, border-color 0.4s ease;
    display: inline-block;
}
.team-card:hover .team-photo {
    background-size: 170%;
    border-color: rgba(0, 255, 34, 0.5);
}
.team-photo.cover-style {
    background-size: cover;
    background-position: center;
}
.team-card:hover .team-photo.cover-style {
    background-size: 110%;
}
.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.team-role {
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}
.team-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
}
.team-contact a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}
.team-contact a:hover {
    background: rgba(0,255,34,0.1);
    color: var(--neon-green);
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    margin-top: 6rem;
    border: 1px solid rgba(0, 255, 34, 0.1);
}
.contact-cta h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1.5rem;
}
.contact-cta p {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
@media (max-width: 600px) {
    .cta-buttons { flex-direction: column; }
    .story-block { padding: 2rem; }
}
