/* CSS Variables for Theming */
:root {
    /* Dark theme (default) – lighter, softer background */
    --bg-primary: #14141c;
    --bg-secondary: #1c1c28;
    --bg-tertiary: #252532;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --accent-primary: #00d4ff;
    --accent-secondary: #00a8cc;
    --accent-glow: rgba(0, 212, 255, 0.4);
    --border-color: #32324a;
    --card-bg: #1a1a26;
    --card-hover: #242432;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
    --logo-box-bg: #4e4e62;
    --logo-speed: 18.15s; /* Client logos carousel: lower = faster (e.g. 12s–20s) */
    --interaction-line-text: #ffffff; /* Text after ">" in interaction/terminal lines (dark theme) */
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --nav-height: 88px;
    --section-padding: 100px;
    --container-max: 1200px;
    --content-padding: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f5f5f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eaeaef;
    --text-primary: #1a1a25;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --accent-primary: #0891b2;
    --accent-secondary: #0e7490;
    --accent-glow: rgba(8, 145, 178, 0.3);
    --border-color: #d0d0d8;
    --card-bg: #ffffff;
    --card-hover: #f0f0f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --logo-box-bg: #e8e8f0;
    --interaction-line-text: #1a1a25; /* Text after ">" in interaction/terminal lines (light theme) */
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

main {
    width: 100%;
    box-sizing: border-box;
}

/* Container - fixed content width so all sections share same line width */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    box-sizing: border-box;
}

/* Section container: fill section height, center contents vertically only; text left-aligned (hero overrides) */
/* Apply vertical centering only to sections after hero */
.section:not(.hero-section) > .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
}

/* Top Navigation Panel */
.top-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: inherit;
}

.logo-text.brand-green {
    color: var(--accent-primary);
}

.logo-dot.white-dot {
    color: var(--text-primary);
}

.logo-inline {
    display: inline;
    white-space: nowrap;
}

.nav-sections {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.action-btn svg {
    width: 26px;
    height: 26px;
}

.action-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.action-btn-wa {
    border: 2px solid #25d366;
}

.action-btn-email {
    border: 2px solid #00d4ff;
}

.theme-toggle {
    position: relative;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-btn svg {
    width: 24px;
    height: 24px;
}

.theme-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 10px;
    cursor: pointer;
    gap: 6px;
    padding: 12px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px var(--content-padding);
    z-index: 999;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

/* Sections - full viewport width so content width is consistent */
.section {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--section-padding) 0;
    padding-top: calc(var(--nav-height) + var(--section-padding));
    padding-bottom: var(--section-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    scroll-margin-top: var(--nav-height);
}

/* All sections except hero: shift content up so center is vertically centered (section height unchanged) */
.section:not(.hero-section) {
    --section-vertical-shift: 80px;
    padding-top: calc(var(--nav-height) + var(--section-padding) - var(--section-vertical-shift));
    padding-bottom: calc(var(--section-padding) + var(--section-vertical-shift));
}

/* Hero section - no shift, keep default padding */
.hero-section {
    padding-top: calc(var(--nav-height) + var(--section-padding));
    padding-bottom: var(--section-padding);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -55%);
    pointer-events: none;
    opacity: 0;
    animation: heroBackgroundFadeIn 1s ease-out 0.3s forwards;
}

@keyframes heroBackgroundFadeIn {
    to { opacity: 1; }
}

.hero-glow-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 900px;
    height: 700px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: heroBackgroundFadeIn 1s ease-out 0.5s forwards;
}

/* Pulsing core with multiple layers – subtle */
.hero-glow-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: coreBreath 8s ease-in-out infinite;
}

.hero-glow-core::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.12) 0%, 
        rgba(0, 212, 255, 0.05) 30%, 
        rgba(0, 168, 204, 0.02) 50%,
        transparent 70%);
    border-radius: 50%;
    animation: corePulseInner 6s ease-in-out infinite;
}

.hero-glow-core::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.04) 0%, 
        transparent 60%);
    border-radius: 50%;
    animation: coreGlowOuter 8s ease-in-out infinite reverse;
}

@keyframes coreBreath {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.02); }
}

@keyframes corePulseInner {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}

@keyframes coreGlowOuter {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.03); }
}

/* Orbiting rings with dashed borders */
.hero-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
}

.hero-glow-ring:nth-child(2) {
    width: 180px;
    height: 180px;
    border: 1px dashed rgba(0, 212, 255, 0.18);
    animation: ringOrbit1 24s linear infinite;
}

.hero-glow-ring:nth-child(3) {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-top-color: transparent;
    border-left-color: transparent;
    animation: ringOrbit2 36s linear infinite reverse;
}

.hero-glow-ring:nth-child(4) {
    width: 420px;
    height: 420px;
    border: 1px dotted rgba(0, 212, 255, 0.1);
    animation: ringOrbit3 40s linear infinite, ringPulse 8s ease-in-out infinite;
}

.hero-glow-ring:nth-child(5) {
    width: 550px;
    height: 550px;
    border: 1px solid rgba(0, 212, 255, 0.06);
    border-right-color: transparent;
    border-bottom-color: transparent;
    animation: ringOrbit4 50s linear infinite reverse;
}

@keyframes ringOrbit1 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringOrbit2 {
    from { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.02); }
    to { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes ringOrbit3 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringOrbit4 {
    from { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    to { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.5; }
}

/* Orbiting nodes on rings – subtle */
.hero-orbit-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.5;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4), 0 0 16px rgba(0, 212, 255, 0.2);
}

.hero-orbit-node:nth-child(6) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: nodeOrbit1 24s linear infinite;
    transform-origin: 0 0;
}

.hero-orbit-node:nth-child(7) {
    top: 50%;
    left: 50%;
    animation: nodeOrbit2 36s linear infinite reverse;
    width: 5px;
    height: 5px;
}

.hero-orbit-node:nth-child(8) {
    top: 50%;
    left: 50%;
    animation: nodeOrbit3 40s linear infinite;
    width: 6px;
    height: 6px;
}

.hero-orbit-node:nth-child(9) {
    top: 50%;
    left: 50%;
    animation: nodeOrbit4 50s linear infinite reverse;
    width: 4px;
    height: 4px;
}

@keyframes nodeOrbit1 {
    from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

@keyframes nodeOrbit2 {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes nodeOrbit3 {
    from { transform: rotate(0deg) translateX(210px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(210px) rotate(-360deg); }
}

@keyframes nodeOrbit4 {
    from { transform: rotate(0deg) translateX(275px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(275px) rotate(-360deg); }
}

/* Floating particles – gentle drift */
.hero-particle {
    position: absolute;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.35;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}

.hero-particle:nth-child(10) {
    width: 2px;
    height: 2px;
    top: 15%;
    left: 20%;
    animation: particleDrift1 12s ease-in-out infinite;
}

.hero-particle:nth-child(11) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 25%;
    animation: particleDrift2 14s ease-in-out infinite;
}

.hero-particle:nth-child(12) {
    width: 2px;
    height: 2px;
    top: 25%;
    left: 75%;
    animation: particleDrift3 10s ease-in-out infinite;
}

.hero-particle:nth-child(13) {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 80%;
    animation: particleDrift4 13s ease-in-out infinite;
}

.hero-particle:nth-child(14) {
    width: 2px;
    height: 2px;
    top: 45%;
    left: 10%;
    animation: particleDrift5 15s ease-in-out infinite;
}

.hero-particle:nth-child(15) {
    width: 3px;
    height: 3px;
    top: 55%;
    left: 90%;
    animation: particleDrift6 11s ease-in-out infinite;
}

.hero-particle:nth-child(16) {
    width: 2px;
    height: 2px;
    top: 10%;
    left: 50%;
    animation: particleDrift7 16s ease-in-out infinite;
}

.hero-particle:nth-child(17) {
    width: 2px;
    height: 2px;
    top: 85%;
    left: 55%;
    animation: particleDrift8 12s ease-in-out infinite;
}

@keyframes particleDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(15px, 12px) scale(1.1); opacity: 0.4; }
}

@keyframes particleDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    50% { transform: translate(-12px, -15px) scale(1.05); opacity: 0.4; }
}

@keyframes particleDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(-8px, 10px) scale(1.08); opacity: 0.35; }
}

@keyframes particleDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(-18px, -10px) scale(1.1); opacity: 0.4; }
}

@keyframes particleDrift5 {
    0%, 100% { transform: translate(0, 0); opacity: 0.25; }
    50% { transform: translate(10px, -8px); opacity: 0.38; }
}

@keyframes particleDrift6 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(-12px, 10px) scale(1.05); opacity: 0.35; }
}

@keyframes particleDrift7 {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    50% { transform: translate(-10px, 15px); opacity: 0.35; }
}

@keyframes particleDrift8 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    50% { transform: translate(8px, -12px) scale(1.06); opacity: 0.4; }
}

/* Energy beams – very subtle */
.hero-energy-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.06), transparent);
    opacity: 0;
}

.hero-energy-beam:nth-child(18) {
    transform: rotate(0deg);
    animation: beamShoot 8s ease-out infinite;
}

.hero-energy-beam:nth-child(19) {
    transform: rotate(60deg);
    animation: beamShoot 8s ease-out 1.3s infinite;
}

.hero-energy-beam:nth-child(20) {
    transform: rotate(120deg);
    animation: beamShoot 8s ease-out 2.6s infinite;
}

.hero-energy-beam:nth-child(21) {
    transform: rotate(180deg);
    animation: beamShoot 8s ease-out 3.9s infinite;
}

.hero-energy-beam:nth-child(22) {
    transform: rotate(240deg);
    animation: beamShoot 8s ease-out 5.2s infinite;
}

.hero-energy-beam:nth-child(23) {
    transform: rotate(300deg);
    animation: beamShoot 8s ease-out 6.5s infinite;
}

@keyframes beamShoot {
    0% { opacity: 0; width: 0; }
    15% { opacity: 0.25; width: 80px; }
    40% { opacity: 0.15; width: 280px; }
    70% { opacity: 0.06; width: 350px; }
    100% { opacity: 0; width: 400px; }
}

/* Scanning arc – subtle */
.hero-scan-arc {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid transparent;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    animation: scanRotate 12s linear infinite;
}

.hero-scan-arc::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

@keyframes scanRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Data stream lines – very subtle */
.hero-data-stream {
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.15), transparent);
    opacity: 0;
}

.hero-data-stream:nth-child(25) {
    height: 60px;
    left: 15%;
    top: 20%;
    animation: dataFlow 5s ease-in-out infinite;
}

.hero-data-stream:nth-child(26) {
    height: 50px;
    left: 85%;
    top: 30%;
    animation: dataFlow 6s ease-in-out 1.2s infinite;
}

.hero-data-stream:nth-child(27) {
    height: 70px;
    left: 10%;
    top: 60%;
    animation: dataFlow 5.5s ease-in-out 2s infinite;
}

.hero-data-stream:nth-child(28) {
    height: 55px;
    left: 90%;
    top: 65%;
    animation: dataFlow 5.8s ease-in-out 3s infinite;
}

@keyframes dataFlow {
    0% { opacity: 0; transform: translateY(-20px); }
    30% { opacity: 0.3; }
    70% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Hexagon grid – very subtle */
.hero-hex-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background-image: 
        linear-gradient(30deg, rgba(0, 212, 255, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.02) 87.5%),
        linear-gradient(150deg, rgba(0, 212, 255, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.02) 87.5%),
        linear-gradient(30deg, rgba(0, 212, 255, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.02) 87.5%),
        linear-gradient(150deg, rgba(0, 212, 255, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.02) 87.5%),
        linear-gradient(60deg, rgba(0, 168, 204, 0.025) 25%, transparent 25.5%, transparent 75%, rgba(0, 168, 204, 0.025) 75%),
        linear-gradient(60deg, rgba(0, 168, 204, 0.025) 25%, transparent 25.5%, transparent 75%, rgba(0, 168, 204, 0.025) 75%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.35;
    animation: hexPulse 12s ease-in-out infinite;
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

@keyframes hexPulse {
    0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.01); }
}

/* Light theme adjustments */
[data-theme="light"] .hero-glow-core::before {
    background: radial-gradient(circle, 
        rgba(8, 145, 178, 0.2) 0%, 
        rgba(8, 145, 178, 0.08) 30%, 
        rgba(14, 116, 144, 0.04) 50%,
        transparent 70%);
}

[data-theme="light"] .hero-glow-core::after {
    background: radial-gradient(circle, 
        rgba(8, 145, 178, 0.06) 0%, 
        transparent 60%);
}

[data-theme="light"] .hero-glow-ring:nth-child(2) {
    border-color: rgba(8, 145, 178, 0.3);
}

[data-theme="light"] .hero-glow-ring:nth-child(3) {
    border-color: rgba(8, 145, 178, 0.2);
    border-top-color: transparent;
    border-left-color: transparent;
}

[data-theme="light"] .hero-glow-ring:nth-child(4) {
    border-color: rgba(8, 145, 178, 0.15);
}

[data-theme="light"] .hero-glow-ring:nth-child(5) {
    border-color: rgba(8, 145, 178, 0.1);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

[data-theme="light"] .hero-orbit-node {
    box-shadow: 0 0 12px var(--accent-primary), 0 0 24px var(--accent-glow);
}

[data-theme="light"] .hero-particle {
    box-shadow: 0 0 8px var(--accent-primary), 0 0 16px var(--accent-glow);
}

[data-theme="light"] .hero-energy-beam {
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.5), rgba(8, 145, 178, 0.15), transparent);
}

[data-theme="light"] .hero-scan-arc {
    border-top-color: rgba(8, 145, 178, 0.4);
}

[data-theme="light"] .hero-data-stream {
    background: linear-gradient(180deg, transparent, rgba(8, 145, 178, 0.4), rgba(8, 145, 178, 0.6), rgba(8, 145, 178, 0.4), transparent);
}

[data-theme="light"] .hero-hex-grid {
    background-image: 
        linear-gradient(30deg, rgba(8, 145, 178, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.04) 87.5%),
        linear-gradient(150deg, rgba(8, 145, 178, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.04) 87.5%),
        linear-gradient(30deg, rgba(8, 145, 178, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.04) 87.5%),
        linear-gradient(150deg, rgba(8, 145, 178, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(8, 145, 178, 0.04) 87.5%),
        linear-gradient(60deg, rgba(14, 116, 144, 0.05) 25%, transparent 25.5%, transparent 75%, rgba(14, 116, 144, 0.05) 75%),
        linear-gradient(60deg, rgba(14, 116, 144, 0.05) 25%, transparent 25.5%, transparent 75%, rgba(14, 116, 144, 0.05) 75%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Hero lines: enter in order; each line starts when the previous entrance finishes (fast load) */
.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(-36px);
    animation: heroGlideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.05s; }
.hero-line:nth-child(2) { animation-delay: 0.53s; }   /* 0.05 + 0.48 (line 1 end, +20% gap) */
.hero-line:nth-child(3) { animation-delay: 1.01s; }   /* 0.53 + 0.48 (line 2 end, +20% gap) */

/* Rotating option: pill with theme background, glide-down overwrite */
.hero-rotating-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    height: 1.6em;
    line-height: 1.35;
    padding-bottom: 0.15em;
}
.hero-rotating-word {
    display: inline-block;
    min-width: 6.2em;
    text-align: center;
    padding: 0.12em 0.4em;
    border-radius: 999px;
    /* Dark theme: white pill, black text */
    background: #fff;
    color: #14141c;
}
[data-theme="light"] .hero-rotating-word {
    /* Light theme: black pill, white text */
    background: #1a1a25;
    color: #fff;
}
.hero-rotating-word {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-rotating-word.word-fade-out {
    opacity: 0;
    transform: translateY(6px);
}
.hero-rotating-word.word-fade-in {
    opacity: 0;
    transform: translateY(-6px);
}

.hero-cta {
    font-weight: 700;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(32px) scale(0.78);
    animation: heroCtaEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 1.01s;   /* after line 2 entrance (0.53 + 0.48) */
}

@keyframes heroGlideDown {
    from {
        opacity: 0;
        transform: translateY(-36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCtaEnter {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.78);
        filter: blur(8px);
        text-shadow: none;
    }
    40% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
        filter: blur(0);
        text-shadow: 0 0 24px var(--accent-glow), 0 0 48px var(--accent-glow), 0 0 60px rgba(0, 212, 255, 0.5);
    }
    65% {
        transform: translateY(3px) scale(0.97);
        text-shadow: 0 0 16px var(--accent-glow);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        text-shadow: none;
    }
}

.slogan-accent {
    color: var(--accent-primary);
}

/* Dark mode: options text on white box (hero rotating word) must be black */
.hero-rotating-word.slogan-accent {
    color: #14141c;
}
[data-theme="light"] .hero-rotating-word.slogan-accent {
    color: #fff;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clients Section */
.clients-section {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
}

.clients-title {
    display: none;
}

.rotating-industry {
    position: relative;
    display: inline-block;
}

.rotating-industry::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

/* Client logos runner (from OzWiz) – gentle edge fade so logos aren’t cut */
.logo-runner {
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 158px; /* top padding + logo height + bottom padding + shadow room */
    background: linear-gradient(to right,
        rgba(128, 128, 128, 0.12) 0%,
        rgba(160, 160, 160, 0.18) 50%,
        rgba(128, 128, 128, 0.12) 100%);
    padding: 18px 24px 28px;
    border-radius: 12px;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    opacity: 1;
}

.logo-track {
    display: flex;
    gap: 24px;
    width: max-content;
    min-width: max-content;
    animation: scroll var(--logo-speed, 32s) linear infinite;
    will-change: transform;
}

.logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--logo-box-bg, var(--card-bg));
    border-radius: 8px;
    padding: clamp(10px, 0.9vw, 14px);
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-item:hover {
    background: var(--card-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: var(--transition-fast);
    filter: brightness(1.08) contrast(1.18);
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.15);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll Indicator - terminal-style >>> */
.scroll-indicator {
    position: relative;
    z-index: 1;
    text-align: center;
    cursor: pointer;
    opacity: 1;
}

.scroll-indicator .terminal-arrow {
    animation: none;
    filter: none;
    opacity: 1;
}

.scroll-indicator .terminal-cursor {
    font-size: 1.5rem;
}

.hero-continue-cursor {
    visibility: hidden; /* shown by JS when typing starts */
}

.terminal-arrow {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    filter: drop-shadow(0 0 6px var(--accent-glow));
    animation: terminalGlow 1.4s ease-in-out infinite;
    letter-spacing: 0.05em;
}

.terminal-prompt-symbol {
    color: var(--accent-primary);
}

.terminal-line-text {
    color: var(--interaction-line-text);
}

.terminal-cursor {
    display: inline-block;
    animation: terminalBlink 1s step-end infinite;
    margin-left: 2px;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-weight: 600;
}

@keyframes terminalGlow {
    0%, 100% {
        opacity: 0.85;
        filter: drop-shadow(0 0 2px var(--accent-glow));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--accent-glow)) drop-shadow(0 0 4px var(--accent-primary));
    }
}

@keyframes terminalBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section bottom arrow - same terminal >>> at end of each section */
.section-arrow {
    text-align: center;
    padding: 2.5rem 0 1rem;
    cursor: pointer;
}

.section-arrow .terminal-arrow {
    font-size: 1.25rem;
}

/* No hover – "> continue" uses terminal-style waiting animation only */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Section Titles */
.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.5;
}

.section-title-line {
    display: block;
}

.section-title u {
    text-decoration-color: var(--accent-primary);
    text-underline-offset: 4px;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Interaction Prompt – text after cyan ">" follows theme (white/black) */
.interaction-prompt {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--interaction-line-text);
    margin-bottom: 12px;
}

.prompt-symbol {
    color: var(--accent-primary);
    margin-right: 8px;
}

.interaction-cursor {
    display: inline-block;
    color: var(--accent-primary);
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.interaction-block {
    margin-bottom: 12px;
}

.option-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
}

.option-titles-wrap {
    flex-wrap: wrap;
}

.option-title-btn {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-primary);
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Card-style offering buttons (Solutions section) */
.option-title-btn--card {
    flex: 1;
    min-width: 220px;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    gap: 16px;
    align-items: center;
}

.option-title-btn--card .option-title-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    flex-shrink: 0;
}

.option-title-btn--card .option-title-icon svg {
    width: 24px;
    height: 24px;
}

.option-title-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.option-title-main {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.option-title-sub {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.option-title-btn--card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.option-title-btn--card:hover .option-title-main {
    color: var(--accent-primary);
}

.option-title-btn--card.active {
    border-color: var(--accent-primary);
    background: var(--card-bg);
}

.option-title-btn--card.active .option-title-main {
    color: var(--accent-primary);
}

.option-title-btn--card.active .option-title-icon {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.option-title-btn:not(.option-title-btn--card):hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.option-title-btn:not(.option-title-btn--card).active {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--card-bg);
}

/* Light theme: ensure option buttons use theme cyan */
[data-theme="light"] .option-title-btn,
[data-theme="light"] .option-title-btn:hover,
[data-theme="light"] .option-title-btn.active {
    color: var(--accent-primary);
}
[data-theme="light"] .option-title-btn.active {
    border-color: var(--accent-primary);
}
[data-theme="light"] .option-title-btn--card .option-title-main {
    color: var(--text-primary);
}
[data-theme="light"] .option-title-btn--card:hover .option-title-main,
[data-theme="light"] .option-title-btn--card.active .option-title-main {
    color: var(--accent-primary);
}

.option-title-icon {
    display: inline-flex;
    color: var(--accent-primary);
}

.response-box {
    margin-top: 8px;
    min-height: 120px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
}

.response-box-inner {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--interaction-line-text);
    line-height: 1.7;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 8px;
}

.response-box-inner > .prompt-symbol {
    flex-shrink: 0;
}

.response-box-content {
    white-space: pre-line;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

/* Typed lines: each line has accent ">" then text */
.response-box-content .typed-line {
    display: flex;
    align-items: baseline;
    gap: 0 4px;
}

.response-box-content .typed-line .prompt-symbol {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* Single cursor inside typed line: same line height, no shrink */
.response-box-content .typed-line .response-cursor {
    flex-shrink: 0;
    line-height: inherit;
}

.response-cursor {
    color: var(--accent-primary);
    font-weight: 600;
    animation: globalCursorBlink 0.7s step-end infinite;
    text-shadow: 0 0 8px var(--accent-glow);
    visibility: hidden;
}

/* Hide cursor when showing placeholder (no selection yet) */
.response-box:not(.has-selection) .response-cursor {
    visibility: hidden !important;
}

/* Solutions: hide ">" when answer box shows placeholder */
.response-box--offering:not(.has-selection) .prompt-symbol--hidden-when-placeholder {
    display: none;
}

.response-placeholder {
    color: var(--text-tertiary, rgba(128, 128, 128, 0.8));
}

/* Before selection: hide ">" in empty boxes */
.response-box--empty .response-box-inner > .prompt-symbol {
    display: none;
}

.response-box--empty .response-cursor {
    display: none;
}

/* Customization: ">" is in each typed line, so hide the single prompt symbol when not empty */
.response-box--customization .response-box-inner > .prompt-symbol {
    display: none;
}

/* Offering Section - same line width as other sections regardless of selection */
.offering-section {
    background: var(--bg-secondary);
    min-height: 100vh;
    min-height: 100dvh;
}

.offering-section .container {
    min-width: 0; /* allow flex child to shrink to container width */
}

.offering-cards-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 0;
    min-height: 0;
    min-width: 0;
}

/* Each sub-box 1/3 of line; 2 or 3 cards stay on same line, horizontally centered */
.offering-cards-grid .offering-card {
    flex: 0 0 calc((100% - 60px) / 3); /* (100% - 2*gap) / 3 */
    min-width: 0;
}

/* Solutions sub-boxes: styled like Portfolio solution cards – preview + "..." by default, full text on hover/pinned */
.offering-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.offering-card.pinned {
    border-color: var(--accent-primary);
}

@media (hover: hover) {
    .offering-card:hover {
        border-color: var(--accent-primary);
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }
}

.offering-card.pinned {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.offering-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.offering-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.offering-card-icon svg {
    width: 22px;
    height: 22px;
}

.offering-card-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* Chevron indicator */
.offering-card-chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
    display: flex;
    align-items: center;
}

.offering-card.pinned .offering-card-chevron {
    color: var(--accent-primary);
    transform: rotate(180deg);
}

@media (hover: hover) {
    .offering-card:hover .offering-card-chevron {
        color: var(--accent-primary);
        transform: rotate(180deg);
    }
}

/* Body always visible; desc truncated to a few words + "..." so visitor knows to hover */
.offering-card-body {
    margin-top: 12px;
    transition: margin-top 0.25s ease;
}

.offering-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: -webkit-line-clamp 0.25s ease;
}

/* Full description on hover or when pinned (click on touch) */
.offering-card.pinned .offering-card-desc {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
}

@media (hover: hover) {
    .offering-card:hover .offering-card-desc {
        -webkit-line-clamp: unset;
        overflow: visible;
        display: block;
    }
}

.offering-card--placeholder .offering-card-title {
    color: var(--text-muted);
}

/* Active state: accent left border */
.response-box.has-selection {
    border-left: 3px solid var(--accent-primary);
}

/* Smooth fade transition between selections */
.response-box.response-transitioning .response-box-inner,
.response-box.response-transitioning .offering-cards-grid,
.response-box.response-transitioning .response-box-content {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.response-box .response-box-inner,
.response-box .offering-cards-grid,
.response-box .response-box-content {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Sub-boxes glide in only after "> Here's how..." finished typing */
.offering-cards-grid {
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.offering-cards-grid.cards-glide-pending {
    opacity: 0;
    transform: translateY(-14px);
}

/* Single merged box: ">" answer line + cards grid */
.response-box--offering {
    min-height: 240px;
}
.response-box--offering .offering-cards-grid {
    margin-top: 20px;
}

/* Customization Section */
.customization-section {
    background: var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh;
}

/* Customization response box: placeholder area 9 lines tall (3x previous; line-height 1.7, font 0.95rem) */
.response-box--customization {
    min-height: calc(1.7 * 0.95rem * 9);
}

.section-intro {
    margin-bottom: 40px;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--bg-secondary);
    min-height: 100vh;
    min-height: 100dvh;
}

.portfolio-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.portfolio-subtitle--spaced {
    margin-top: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 0;
}

.portfolio-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.portfolio-header {
    padding: 24px;
}

.portfolio-header h4 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.portfolio-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.portfolio-preview {
    position: relative;
    height: 300px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.portfolio-preview iframe {
    width: 133.33%;
    height: 133.33%;
    border: none;
    pointer-events: none;
    transform: scale(0.75);
    transform-origin: top left;
}

.portfolio-preview.video iframe {
    pointer-events: auto;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-preview:hover .preview-overlay {
    opacity: 1;
}

/* Custom Solutions Cards */
.custom-solutions {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.solution-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

@media (hover: hover) {
    .solution-card:hover {
        border-color: var(--accent-primary);
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }
}

.solution-card.pinned {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.solution-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.solution-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--accent-primary);
}

.solution-card h4 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

/* Chevron to hint expansion */
.solution-card-chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
    display: flex;
    align-items: center;
}

.solution-card.pinned .solution-card-chevron {
    color: var(--accent-primary);
    transform: rotate(180deg);
}

@media (hover: hover) {
    .solution-card:hover .solution-card-chevron {
        color: var(--accent-primary);
        transform: rotate(180deg);
    }
}

.solution-card-body {
    margin-top: 12px;
}

/* Single-line preview with ellipsis (like offering-card-desc) */
.solution-preview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: -webkit-line-clamp 0.25s ease;
}

.solution-details {
    display: none;
    margin-top: 0;
    animation: fadeInUp 0.3s ease;
}

.solution-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Expand: show full description on hover or when pinned */
@media (hover: hover) {
    .solution-card:hover .solution-preview {
        display: none;
    }
    .solution-card:hover .solution-details {
        display: block;
    }
}

.solution-card.pinned .solution-preview {
    display: none;
}

.solution-card.pinned .solution-details {
    display: block;
}

/* About Section (includes contact CTA + WA/Email) */
.about-section {
    background: var(--bg-primary);
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 40px;
}

.about-section > .container {
    gap: 0;
}

.about-section .section-title {
    margin-bottom: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.team-member {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    text-align: left;
    padding: 24px 28px;
    min-height: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.team-member:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.member-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-ps {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* Contact CTA inside About */
.about-contact-title {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.about-section .contact-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

.about-section .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 12px;
}

.about-section .contact-btn svg {
    width: 22px;
    height: 22px;
}

.member-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.member-info h3 {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.member-role {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.member-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.linkedin-link:hover {
    color: var(--accent-primary);
    background: var(--card-hover);
}

/* Contact options (used inside About section) */
.contact-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.contact-btn.whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
}

.contact-btn.email:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer p .logo-text {
    font-size: inherit;
}

/* Global Typing Cursor - Inline */
.global-typing-cursor {
    display: inline;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    animation: globalCursorBlink 0.7s step-end infinite;
    pointer-events: none;
    text-shadow: 0 0 8px var(--accent-glow);
    margin-left: 1px;
    vertical-align: baseline;
}

@keyframes globalCursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Typing Animation States */
.typing-ready {
    min-height: 1em;
}

.typing-active {
    opacity: 1 !important;
    transform: none !important;
}

.typing-complete {
    opacity: 1 !important;
    transform: none !important;
}

/* Glide-down animation for elements revealed after typing */
.glide-down-element {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-section .glide-down-element.hero-glide {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.glide-down-element:not(.revealed) {
    opacity: 0;
    transform: translateY(-20px);
}

.glide-down-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Animation Class */
.typing-text {
    opacity: 1;
    transform: none;
}

.typing-text.visible {
    opacity: 1;
    transform: none;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-sections {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 24px;
        --nav-height: 72px;
    }
    
    .hero-glow-container {
        width: 600px;
        height: 450px;
    }
    
    .hero-glow-core { width: 280px; height: 280px; }
    .hero-glow-ring:nth-child(2) { width: 130px; height: 130px; }
    .hero-glow-ring:nth-child(3) { width: 220px; height: 220px; }
    .hero-glow-ring:nth-child(4) { width: 300px; height: 300px; }
    .hero-glow-ring:nth-child(5) { width: 380px; height: 380px; }
    
    .hero-scan-arc { width: 350px; height: 350px; }
    .hero-hex-grid { width: 420px; height: 420px; }
    
    .hero-energy-beam { width: 200px; }
    @keyframes beamShoot {
        0% { opacity: 0; width: 0; }
        15% { opacity: 0.25; width: 60px; }
        40% { opacity: 0.15; width: 180px; }
        70% { opacity: 0.06; width: 220px; }
        100% { opacity: 0; width: 260px; }
    }
    
    @keyframes nodeOrbit1 { from { transform: rotate(0deg) translateX(65px) rotate(0deg); } to { transform: rotate(360deg) translateX(65px) rotate(-360deg); } }
    @keyframes nodeOrbit2 { from { transform: rotate(0deg) translateX(110px) rotate(0deg); } to { transform: rotate(360deg) translateX(110px) rotate(-360deg); } }
    @keyframes nodeOrbit3 { from { transform: rotate(0deg) translateX(150px) rotate(0deg); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }
    @keyframes nodeOrbit4 { from { transform: rotate(0deg) translateX(190px) rotate(0deg); } to { transform: rotate(360deg) translateX(190px) rotate(-360deg); } }

    .section:not(.hero-section) {
        --section-vertical-shift: 0;
    }

    .nav-actions {
        gap: 10px;
    }
    
    .action-btn,
    .theme-btn {
        width: 42px;
        height: 42px;
    }

    .action-btn {
        width: 42px;
        height: 42px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .clients-section {
        margin-bottom: 40px;
    }
    
    .typing-line.indent {
        padding-left: 0;
    }
    
    .rotating-word {
        min-width: 120px;
    }
    
    .option-titles {
        gap: 6px 8px;
    }

    .option-title-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    /* Solutions card buttons: icon inline with title on first row, subtitle on second row */
    .option-title-btn--card {
        min-width: 0;
        padding: 10px 12px;
        gap: 6px;
        flex-wrap: wrap;
        align-items: center;
    }

    .option-title-btn--card .option-title-icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        flex-shrink: 0;
        order: 1;
    }

    .option-title-btn--card .option-title-icon svg {
        width: 14px;
        height: 14px;
    }

    .option-title-btn--card .option-title-label {
        display: contents;
    }

    .option-title-btn--card .option-title-main {
        font-size: 0.82rem;
        order: 2;
        flex: 1;
        min-width: 0;
    }

    .option-title-btn--card .option-title-sub {
        font-size: 0.72rem;
        order: 3;
        flex-basis: 100%;
        color: var(--text-muted);
        margin-top: 2px;
    }

    /* Response intro text: fit one line */
    .response-box-inner {
        font-size: 0.82rem;
    }

    /* Offering cards grid: stack on mobile, tighter spacing */
    .offering-cards-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .offering-cards-grid .offering-card {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Answer sub-boxes: tighter on mobile */
    .offering-card {
        padding: 12px 14px;
    }

    .offering-card-header {
        gap: 10px;
    }

    .offering-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .offering-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .offering-card-title {
        font-size: 0.88rem;
    }

    .offering-card-body {
        margin-top: 8px;
    }

    .offering-card-desc {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* Compact section layout on mobile */
    .section-title {
        margin-bottom: 12px;
    }

    .interaction-prompt {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .interaction-block {
        margin-bottom: 8px;
    }

    .response-box {
        padding: 14px 16px;
        min-height: 80px;
    }

    .response-box--offering {
        min-height: 160px;
    }

    .section-intro {
        margin-bottom: 16px;
    }

    /* Customization section: response box compact */
    .response-box--customization .typed-line {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* All sections on mobile: at least full viewport height (same as hero) */
    .section:not(.hero-section) {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 12px;
    }
    
    .team-member {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        min-height: 0;
        padding: 18px 20px;
        gap: 18px;
    }
    
    .member-info {
        align-items: flex-start;
        text-align: left;
    }
    
    .member-photo {
        width: 88px;
        height: 88px;
        border-width: 2px;
    }
    
    .member-info h3 { font-size: 1.15rem; }
    .member-role { font-size: 0.88rem; margin-bottom: 6px; }
    .member-bio { font-size: 0.92rem; margin-bottom: 10px; }
    
    .about-ps {
        margin-top: 12px;
        font-size: 0.85rem;
    }
    
    .about-contact-title {
        margin-top: 16px;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
    
    .about-section .contact-options {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    .about-section .contact-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .about-section .contact-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Logo runner: larger on mobile */
    .logo-runner {
        padding: 12px 16px 18px;
        min-height: 0;
        width: 100%;
    }
    .logo-track {
        width: max-content;
        min-width: max-content;
        animation: scroll var(--logo-speed, 32s) linear infinite;
    }
    .logo-item {
        width: 140px;
        height: 70px;
        padding: 8px;
    }
    
    /* Scroll indicator: smaller on mobile */
    .scroll-indicator .terminal-arrow {
        font-size: 1rem;
    }
    .scroll-indicator .terminal-cursor {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --content-padding: 16px;
        --section-padding: 20px;
    }
    
    .hero-glow-container {
        width: 380px;
        height: 320px;
    }
    
    .hero-glow-core { width: 180px; height: 180px; }
    .hero-glow-ring:nth-child(2) { width: 90px; height: 90px; }
    .hero-glow-ring:nth-child(3) { width: 140px; height: 140px; }
    .hero-glow-ring:nth-child(4) { width: 200px; height: 200px; }
    .hero-glow-ring:nth-child(5) { width: 260px; height: 260px; }
    
    .hero-scan-arc { width: 240px; height: 240px; }
    .hero-hex-grid { width: 280px; height: 280px; }
    
    .hero-particle { width: 3px; height: 3px; }
    .hero-orbit-node { width: 5px; height: 5px; }
    
    .hero-energy-beam { display: none; }
    .hero-data-stream { display: none; }
    
    @keyframes nodeOrbit1 { from { transform: rotate(0deg) translateX(45px) rotate(0deg); } to { transform: rotate(360deg) translateX(45px) rotate(-360deg); } }
    @keyframes nodeOrbit2 { from { transform: rotate(0deg) translateX(70px) rotate(0deg); } to { transform: rotate(360deg) translateX(70px) rotate(-360deg); } }
    @keyframes nodeOrbit3 { from { transform: rotate(0deg) translateX(100px) rotate(0deg); } to { transform: rotate(360deg) translateX(100px) rotate(-360deg); } }
    @keyframes nodeOrbit4 { from { transform: rotate(0deg) translateX(130px) rotate(0deg); } to { transform: rotate(360deg) translateX(130px) rotate(-360deg); } }

    .section:not(.hero-section) {
        --section-vertical-shift: 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-content {
        margin-bottom: 32px;
    }
    
    .clients-section {
        margin-bottom: 32px;
    }
    
    /* Logo runner: still decent size on small mobile */
    .logo-runner {
        padding: 10px 12px 14px;
    }
    .logo-item {
        width: 120px;
        height: 55px;
        padding: 6px;
    }
    
    /* Scroll indicator: even smaller on small mobile */
    .scroll-indicator .terminal-arrow {
        font-size: 0.9rem;
    }
    .scroll-indicator .terminal-cursor {
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-preview {
        height: 200px;
    }
    
    .member-photo {
        width: 72px;
        height: 72px;
    }
    
    .team-member {
        min-height: 0;
        padding: 14px 16px;
        gap: 14px;
    }
    
    .member-info h3 { font-size: 1.05rem; }
    .member-role { font-size: 0.82rem; }
    .member-bio { font-size: 0.88rem; margin-bottom: 8px; }
    
    .about-section .contact-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .about-section .contact-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Solutions card buttons: even more compact on very small screens */
    .option-title-btn--card {
        padding: 8px 10px;
        gap: 5px;
    }

    .option-title-btn--card .option-title-icon {
        width: 24px;
        height: 24px;
        border-radius: 5px;
    }

    .option-title-btn--card .option-title-icon svg {
        width: 12px;
        height: 12px;
    }

    .option-title-btn--card .option-title-main {
        font-size: 0.78rem;
    }

    .option-title-btn--card .option-title-sub {
        font-size: 0.68rem;
    }

    /* Offering cards even more compact on small phones */
    .offering-card {
        padding: 10px 12px;
    }

    .offering-card-header {
        gap: 8px;
    }

    .offering-card-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .offering-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .offering-card-title {
        font-size: 0.82rem;
    }

    .offering-card-desc {
        font-size: 0.75rem;
    }

    .section-intro {
        margin-bottom: 24px;
    }
    
    .team-grid {
        margin-top: 12px;
        gap: 12px;
    }
    
    .about-ps {
        margin-top: 12px;
        font-size: 0.85rem;
    }
    
    .about-contact-title {
        margin-top: 12px;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-track {
        animation: none;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .top-panel,
    .scroll-indicator,
    .mobile-menu {
        display: none !important;
    }
    
    .section {
        padding-top: 40px;
        min-height: auto;
    }
}
