/* ============================================================
   THERMACORE SUPPLY — Premium Industrial Design System
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Core palette (static) */
    --graphite-900: #0D0F13;
    --graphite-800: #14161C;
    --graphite-700: #1A1D24;
    --graphite-600: #22252E;
    --graphite-500: #2A2D35;
    --graphite-400: #3A3D47;
    --graphite-300: #4A4D57;
    --graphite-200: #6B6E78;
    --graphite-100: #9B9EA8;

    /* Steel blue */
    --steel-500: #4A6B82;
    --steel-400: #5A7F99;
    --steel-300: #6B8EA8;
    --steel-200: #8BAABB;
    --steel-100: #B0C8D8;

    /* Thermal accents */
    --copper: #C87941;
    --thermal: #E8713A;
    --thermal-light: #F0915E;
    --thermal-glow: rgba(232, 113, 58, 0.15);
    --thermal-glow-strong: rgba(232, 113, 58, 0.3);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    --space-6xl: 10rem;

    /* Container */
    --container-max: 1240px;
    --container-padding: 1.25rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.35s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* ===== SEMANTIC THEME TOKENS (Dark — default) ===== */
    --t-bg-body: #14161C;
    --t-bg-section: #14161C;
    --t-bg-section-alt: #0D0F13;
    --t-bg-card: #1A1D24;
    --t-bg-card-hover: #22252E;
    --t-bg-elevated: #1A1D24;
    --t-bg-hero: #0D0F13;
    --t-bg-input: #1A1D24;

    --t-text-primary: #FFFFFF;
    --t-text-secondary: #B8BBC5;
    --t-text-tertiary: #9B9EA8;
    --t-text-muted: #6B6E78;
    --t-text-inverted: #0D0F13;

    --t-border-subtle: rgba(255,255,255,0.04);
    --t-border-default: rgba(255,255,255,0.06);
    --t-border-strong: rgba(255,255,255,0.1);
    --t-border-card: rgba(255,255,255,0.05);

    --t-nav-scrolled-bg: rgba(20, 22, 28, 0.92);
    --t-nav-scrolled-border: rgba(255,255,255,0.05);
    --t-nav-scrolled-shadow: rgba(0,0,0,0.3);
    --t-nav-mobile-bg: rgba(13, 15, 19, 0.97);

    --t-grid-line: rgba(255,255,255,0.02);
    --t-grid-gap-bg: rgba(255,255,255,0.04);
    --t-divider: rgba(255,255,255,0.06);
    --t-glow-blue: rgba(74, 107, 130, 0.1);
    --t-glow-thermal-subtle: rgba(232, 113, 58, 0.04);
    --t-glow-blue-subtle: rgba(74, 107, 130, 0.04);

    --t-card-shadow: 0 12px 40px rgba(0,0,0,0.3);
    --t-badge-shadow: 0 8px 32px rgba(0,0,0,0.3);
    --t-icon-color: #6B8EA8;

    --t-btn-ghost-bg: rgba(255,255,255,0.06);
    --t-btn-ghost-border: rgba(255,255,255,0.12);
    --t-btn-ghost-hover-bg: rgba(255,255,255,0.1);
    --t-btn-ghost-hover-border: rgba(255,255,255,0.2);
    --t-btn-outline-border: rgba(255,255,255,0.2);
    --t-btn-outline-hover-bg: rgba(255,255,255,0.06);
    --t-btn-outline-hover-border: rgba(255,255,255,0.35);

    --t-stat-divider: rgba(255,255,255,0.08);
    --t-scroll-line: var(--graphite-200);

    --t-card-bg-subtle: rgba(255,255,255,0.02);
    --t-card-hover-bg-subtle: rgba(255,255,255,0.04);

    --t-scrollbar-track: #0D0F13;
    --t-scrollbar-thumb: #3A3D47;
    --t-scrollbar-thumb-hover: #4A4D57;

    --t-logo-bg-start: #2A2D35;
    --t-logo-bg-end: #1A1D24;
    --t-logo-letter: #FFFFFF;

    --t-toggle-bg: rgba(255,255,255,0.08);
    --t-toggle-hover-bg: rgba(255,255,255,0.14);
    --t-toggle-icon: #9B9EA8;

    --t-svg-placeholder-bg: #1E2128;
    --t-svg-grid-line: #2A2D35;
    --t-svg-text: #6B8EA8;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --thermal: #D05E2B;
    --thermal-light: #C4522A;
    --thermal-glow: rgba(208, 94, 43, 0.1);
    --thermal-glow-strong: rgba(208, 94, 43, 0.2);

    --t-bg-body: #F5F6F8;
    --t-bg-section: #F5F6F8;
    --t-bg-section-alt: #FFFFFF;
    --t-bg-card: #FFFFFF;
    --t-bg-card-hover: #F0F1F4;
    --t-bg-elevated: #FFFFFF;
    --t-bg-hero: #0D0F13;
    --t-bg-input: #FFFFFF;

    --t-text-primary: #1A1D24;
    --t-text-secondary: #4A4D57;
    --t-text-tertiary: #6B6E78;
    --t-text-muted: #9B9EA8;
    --t-text-inverted: #FFFFFF;

    --t-border-subtle: rgba(0,0,0,0.04);
    --t-border-default: rgba(0,0,0,0.07);
    --t-border-strong: rgba(0,0,0,0.12);
    --t-border-card: rgba(0,0,0,0.06);

    --t-nav-scrolled-bg: rgba(255, 255, 255, 0.92);
    --t-nav-scrolled-border: rgba(0,0,0,0.06);
    --t-nav-scrolled-shadow: rgba(0,0,0,0.06);
    --t-nav-mobile-bg: rgba(255, 255, 255, 0.97);

    --t-grid-line: rgba(0,0,0,0.03);
    --t-grid-gap-bg: rgba(0,0,0,0.04);
    --t-divider: rgba(0,0,0,0.07);
    --t-glow-blue: rgba(74, 107, 130, 0.06);
    --t-glow-thermal-subtle: rgba(208, 94, 43, 0.03);
    --t-glow-blue-subtle: rgba(74, 107, 130, 0.03);

    --t-card-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --t-badge-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --t-icon-color: #5A7F99;

    --t-btn-ghost-bg: rgba(0,0,0,0.04);
    --t-btn-ghost-border: rgba(0,0,0,0.1);
    --t-btn-ghost-hover-bg: rgba(0,0,0,0.07);
    --t-btn-ghost-hover-border: rgba(0,0,0,0.15);
    --t-btn-outline-border: rgba(0,0,0,0.15);
    --t-btn-outline-hover-bg: rgba(0,0,0,0.04);
    --t-btn-outline-hover-border: rgba(0,0,0,0.25);

    --t-stat-divider: rgba(0,0,0,0.1);
    --t-scroll-line: var(--graphite-300);

    --t-card-bg-subtle: rgba(0,0,0,0.02);
    --t-card-hover-bg-subtle: rgba(0,0,0,0.04);

    --t-scrollbar-track: #F0F1F4;
    --t-scrollbar-thumb: #C8CAD0;
    --t-scrollbar-thumb-hover: #A8AAB2;

    --t-logo-bg-start: #2A2D35;
    --t-logo-bg-end: #1A1D24;
    --t-logo-letter: #FFFFFF;

    --t-toggle-bg: rgba(0,0,0,0.06);
    --t-toggle-hover-bg: rgba(0,0,0,0.1);
    --t-toggle-icon: #4A4D57;

    --t-svg-placeholder-bg: #E8EAF0;
    --t-svg-grid-line: #D0D2D8;
    --t-svg-text: #5A7F99;
}

/* Light theme — hero stays dark, override children that inherit light tokens */
[data-theme="light"] .hero {
    --t-text-primary: #FFFFFF;
    --t-text-secondary: #B8BBC5;
    --t-text-tertiary: #9B9EA8;
    --t-text-muted: #6B6E78;
    --t-stat-divider: rgba(255,255,255,0.08);
}

/* Light theme — nav before scroll stays transparent over dark hero */
[data-theme="light"] .nav:not(.nav--scrolled):not(.menu-open) .nav__brand-name {
    color: #FFFFFF;
}
[data-theme="light"] .nav:not(.nav--scrolled):not(.menu-open) .nav__link {
    color: rgba(255,255,255,0.7);
}
[data-theme="light"] .nav:not(.nav--scrolled):not(.menu-open) .nav__link:hover {
    color: #FFFFFF;
}
[data-theme="light"] .nav:not(.nav--scrolled):not(.menu-open) .nav__toggle span {
    background: #FFFFFF;
}
[data-theme="light"] .nav:not(.nav--scrolled):not(.menu-open) .theme-toggle {
    --t-toggle-bg: rgba(255,255,255,0.08);
    --t-toggle-hover-bg: rgba(255,255,255,0.14);
    --t-toggle-icon: #FFFFFF;
}

/* Light theme — scrolled nav overrides */
[data-theme="light"] .nav--scrolled .nav__brand-name {
    color: var(--t-text-primary);
}
[data-theme="light"] .nav--scrolled .nav__link {
    color: var(--t-text-tertiary);
}
[data-theme="light"] .nav--scrolled .nav__link:hover {
    color: var(--t-text-primary);
}
[data-theme="light"] .nav--scrolled .nav__toggle span {
    background: var(--t-text-primary);
}

/* Light theme — footer stays dark */
[data-theme="light"] .footer {
    --t-text-primary: #FFFFFF;
    --t-text-secondary: #B8BBC5;
    --t-text-tertiary: #9B9EA8;
    --t-text-muted: #6B6E78;
    --t-border-subtle: rgba(255,255,255,0.04);
    background: #0D0F13;
}

/* Light theme — CTA final stays dark */
[data-theme="light"] .cta-final {
    --t-text-primary: #FFFFFF;
    --t-text-secondary: #B8BBC5;
    --t-text-tertiary: #9B9EA8;
    --t-text-muted: #6B6E78;
    --thermal: #E8713A;
    --thermal-glow: rgba(232, 113, 58, 0.15);
}
[data-theme="light"] .cta-final__bg {
    background: #14161C;
}
[data-theme="light"] .cta-final .btn--outline {
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.2);
}
[data-theme="light"] .cta-final .btn--outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
}

/* Light theme — about SVG placeholder */
[data-theme="light"] .about__image-placeholder svg rect {
    fill: var(--t-svg-placeholder-bg);
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }
}

@media (min-width: 1200px) {
    :root {
        --container-padding: 2.5rem;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--t-text-tertiary);
    background-color: var(--t-bg-body);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Typography --- */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--thermal);
    margin-bottom: var(--space-lg);
}

.section-label--center {
    justify-content: center;
}

.section-label__line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--thermal);
    opacity: 0.6;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--t-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--t-text-tertiary);
    line-height: 1.7;
    max-width: 580px;
    text-align: center;
}

.section-header {
    margin-bottom: var(--space-4xl);
}

.section-header--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-accent {
    color: var(--thermal);
}

/* --- Theme Toggle --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--t-toggle-bg);
    color: var(--t-toggle-icon);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    z-index: 1001;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--t-toggle-hover-bg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--ease-spring), opacity 0.3s var(--ease-out);
}

.theme-toggle__sun,
.theme-toggle__moon {
    position: absolute;
}

.theme-toggle__sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle__moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle__sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle__moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
}

.btn--primary {
    background: var(--thermal);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 2px 16px var(--thermal-glow);
}

.btn--primary:hover {
    background: var(--thermal-light);
    box-shadow: 0 4px 24px var(--thermal-glow-strong);
    transform: translateY(-2px);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--ghost {
    background: var(--t-btn-ghost-bg);
    color: var(--t-text-primary);
    border: 1px solid var(--t-btn-ghost-border);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: var(--t-btn-ghost-hover-bg);
    border-color: var(--t-btn-ghost-hover-border);
}

.btn--outline {
    background: transparent;
    color: var(--t-text-primary);
    border: 1px solid var(--t-btn-outline-border);
}

.btn--outline:hover {
    background: var(--t-btn-outline-hover-bg);
    border-color: var(--t-btn-outline-hover-border);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all var(--transition-base);
}

.nav--scrolled {
    background: var(--t-nav-scrolled-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--t-nav-scrolled-border);
    box-shadow: 0 1px 30px var(--t-nav-scrolled-shadow);
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav__logo svg {
    width: 36px;
    height: 36px;
}

.nav__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav__brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--t-text-primary);
    letter-spacing: -0.01em;
    transition: color var(--transition-base);
}

.nav__brand-tag {
    font-weight: 400;
    font-size: 0.65rem;
    color: var(--thermal);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--t-text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

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

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--t-nav-mobile-bg);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.nav__menu.active {
    opacity: 1;
    pointer-events: all;
}

.nav__link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--t-text-tertiary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link:hover {
    color: var(--t-text-primary);
}

.nav__cta-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--thermal);
    padding: 10px 22px;
    border: 1px solid rgba(232, 113, 58, 0.3);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav__cta-link:hover {
    background: var(--thermal-glow);
    border-color: var(--thermal);
}

@media (min-width: 960px) {
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        opacity: 1;
        pointer-events: all;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        gap: var(--space-xl);
    }

    .nav__link {
        font-size: 0.8125rem;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1.5px;
        background: var(--thermal);
        transition: width var(--transition-base);
    }

    .nav__link:hover::after {
        width: 100%;
    }
}

/* --- Hero (always dark) --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--t-bg-hero);
}

.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: heroGridMove 45s linear infinite;
}

@keyframes heroGridMove {
    0% { background-position: 0px 0px; }
    100% { background-position: 60px 60px; }
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: rgba(232, 113, 58, 0.15);
    top: -100px;
    right: -100px;
    animation: heroGlowPulse1 12s ease-in-out infinite alternate;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: rgba(74, 107, 130, 0.1);
    bottom: -50px;
    left: -100px;
    animation: heroGlowPulse2 15s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse1 {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.15) translate(-30px, 20px); opacity: 1; }
}

@keyframes heroGlowPulse2 {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.1) translate(20px, -30px); opacity: 1; }
}

.hero__coil-graphic {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    max-width: 650px;
    opacity: 1;
    z-index: 10;
    pointer-events: none;
}

.hero__coil-svg-new {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(232, 113, 58, 0.15));
}

.svg-core-pulse {
    animation: svgCorePulse 4s ease-in-out infinite alternate;
    transform-origin: center;
}

.svg-magnetic-pulse {
    animation: svgMagneticPulse 6s ease-in-out infinite alternate;
    transform-origin: center;
}

.svg-rotate-slow {
    animation: svgRotate 30s linear infinite;
    transform-origin: center;
}

.svg-rotate-fast-reverse {
    animation: svgRotateReverse 20s linear infinite;
    transform-origin: center;
}

.svg-coil-group {
    animation: svgFloat 6s ease-in-out infinite alternate;
}

.svg-heated-core {
    animation: svgCoreOpacity 3s ease-in-out infinite alternate;
}

.svg-particle {
    animation: svgParticleRise 3s ease-in infinite;
    opacity: 0;
}

@keyframes svgCorePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes svgMagneticPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes svgRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes svgRotateReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes svgFloat {
    0% { transform: translateY(-15px); }
    100% { transform: translateY(15px); }
}

@keyframes svgCoreOpacity {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes svgParticleRise {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    20% { opacity: 1; transform: translate(calc(var(--p-x) * 0.2), -20px) scale(1); }
    80% { opacity: 0.8; }
    100% { transform: translate(var(--p-x), -100px) scale(0.2); opacity: 0; }
}

.hero__container {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.hero__content {
    max-width: 680px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #E8713A;
    padding: 8px 16px;
    background: rgba(232, 113, 58, 0.15);
    border: 1px solid rgba(232, 113, 58, 0.15);
    border-radius: 100px;
    margin-bottom: var(--space-xl);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E8713A;
    animation: heroPulse 2s ease-in-out infinite;
}

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

.hero__title {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
}

.hero__title-accent {
    color: #E8713A;
    display: inline-block;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--t-text-secondary);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--space-4xl);
}

/* Hero buttons always use dark theme style */
.hero .btn--primary {
    background: #E8713A;
    color: #FFFFFF;
}
.hero .btn--primary:hover {
    background: #F0915E;
}
.hero .btn--ghost {
    background: rgba(255,255,255,0.06);
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.12);
}
.hero .btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.hero__stats {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.hero__stat-label {
    font-size: 0.7rem;
    color: var(--t-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: var(--t-stat-divider);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--t-text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--t-text-muted), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- About --- */
.about {
    padding: var(--space-6xl) 0;
    background: var(--t-bg-section);
    position: relative;
}

.about__grid {
    display: grid;
    gap: var(--space-4xl);
    align-items: center;
}

@media (min-width: 960px) {
    .about__grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: var(--space-5xl);
    }
}

.about__visual {
    position: relative;
}

.about__image-block {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__image-accent {
    position: absolute;
    top: -8px;
    left: -8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(232, 113, 58, 0.15);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about__image-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__image-placeholder svg {
    width: 100%;
    height: auto;
}

.about__experience-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--t-bg-elevated);
    border: 1px solid var(--t-border-default);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--t-badge-shadow);
}

@media (min-width: 960px) {
    .about__experience-badge {
        right: -30px;
    }
}

.about__experience-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--thermal-glow);
    border-radius: var(--radius-sm);
}

.about__experience-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t-text-primary);
    line-height: 1.4;
}

.about__title {
    font-size: clamp(1.625rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--t-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

.about__lead {
    font-size: 1.05rem;
    color: var(--t-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.about__text {
    font-size: 0.95rem;
    color: var(--t-text-tertiary);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.about__highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--space-xl);
}

.about__highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t-text-secondary);
}

.about__highlight svg {
    flex-shrink: 0;
}

/* --- Services --- */
.services {
    position: relative;
    padding: var(--space-6xl) 0;
    overflow: hidden;
}

.services__bg {
    position: absolute;
    inset: 0;
    background: var(--t-bg-section-alt);
}

.services__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--t-divider), transparent);
}

.services .container {
    position: relative;
}

.services__grid {
    display: grid;
    gap: 1px;
    background: var(--t-grid-gap-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 640px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--t-bg-section);
    transition: all var(--transition-base);
}

.service-card:hover {
    background: var(--t-bg-card-hover);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-xl);
    color: var(--t-icon-color);
    transition: color var(--transition-base);
}

.service-card:hover .service-card__icon {
    color: var(--thermal);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__number {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--t-text-muted);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.service-card:hover .service-card__number {
    color: var(--thermal);
    opacity: 0.5;
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--t-text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: 0.85rem;
    color: var(--t-text-tertiary);
    line-height: 1.7;
}

.service-card__line {
    position: absolute;
    bottom: 0;
    left: var(--space-2xl);
    right: var(--space-2xl);
    height: 1px;
    background: linear-gradient(90deg, var(--thermal), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover .service-card__line {
    opacity: 0.4;
}

/* --- Applications --- */
.applications {
    padding: var(--space-6xl) 0;
    background: var(--t-bg-section);
    position: relative;
}

.applications__header-grid {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

@media (min-width: 768px) {
    .applications__header-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
        align-items: end;
    }
}

.applications__grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .applications__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .applications__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.app-card {
    position: relative;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--t-border-card);
    background: var(--t-bg-card);
    transition: all var(--transition-base);
}

.app-card:hover {
    border-color: rgba(232, 113, 58, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--t-card-shadow);
}

.app-card__icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    padding: 8px;
    background: var(--thermal-glow);
    border-radius: var(--radius-sm);
    color: var(--t-icon-color);
}

.app-card__icon-wrap svg {
    width: 100%;
    height: 100%;
}

.app-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--t-text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.app-card__desc {
    font-size: 0.84rem;
    color: var(--t-text-tertiary);
    line-height: 1.7;
}

/* --- Sectors --- */
.sectors {
    position: relative;
    padding: var(--space-6xl) 0;
    overflow: hidden;
}

.sectors__bg {
    position: absolute;
    inset: 0;
    background: var(--t-bg-section-alt);
}

.sectors__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 30% 50%, var(--t-glow-thermal-subtle) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, var(--t-glow-blue-subtle) 0%, transparent 60%);
}

.sectors .container {
    position: relative;
}

.sectors__grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .sectors__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sectors__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Last card centered on desktop when odd count */
@media (min-width: 1024px) {
    .sectors__grid .sector-card:last-child:nth-child(3n - 1) {
        grid-column: 2;
    }
}

.sector-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--t-card-bg-subtle);
    border: 1px solid var(--t-border-card);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.sector-card:hover {
    background: var(--t-card-hover-bg-subtle);
    border-color: var(--t-border-strong);
    transform: translateY(-3px);
}

.sector-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--t-icon-color);
}

.sector-card__icon svg {
    width: 100%;
    height: 100%;
}

.sector-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--t-text-primary);
    margin-bottom: var(--space-sm);
}

.sector-card__desc {
    font-size: 0.84rem;
    color: var(--t-text-tertiary);
    line-height: 1.7;
}

/* --- Philosophy --- */
.philosophy {
    padding: var(--space-6xl) 0;
    background: var(--t-bg-section);
    position: relative;
}

.philosophy__pillars {
    display: grid;
    gap: 0;
    margin-bottom: var(--space-5xl);
}

.philosophy__pillar {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--t-border-subtle);
}

.philosophy__pillar:last-child {
    border-bottom: none;
}

.philosophy__pillar-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding-top: 4px;
}

.philosophy__pillar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--thermal);
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--thermal-glow-strong);
}

.philosophy__pillar-line {
    width: 1px;
    flex-grow: 1;
    background: linear-gradient(to bottom, var(--thermal), transparent);
    opacity: 0.3;
}

.philosophy__pillar-content {
    flex: 1;
}

.philosophy__pillar-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--thermal);
    margin-bottom: var(--space-sm);
    padding: 4px 12px;
    background: var(--thermal-glow);
    border-radius: 100px;
}

.philosophy__pillar-content p {
    font-size: 0.95rem;
    color: var(--t-text-tertiary);
    line-height: 1.75;
    max-width: 640px;
}

.values__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t-text-primary);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.values__grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-md);
    }
}

.value-card {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--t-border-subtle);
    background: var(--t-card-bg-subtle);
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: rgba(232, 113, 58, 0.15);
    background: var(--t-card-hover-bg-subtle);
}

.value-card__icon {
    width: 32px;
    height: 32px;
    margin: 0 auto var(--space-md);
}

.value-card__icon svg {
    width: 100%;
    height: 100%;
}

.value-card__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--t-text-primary);
    margin-bottom: var(--space-sm);
}

.value-card__desc {
    font-size: 0.78rem;
    color: var(--t-text-tertiary);
    line-height: 1.65;
}

/* --- Differentiators --- */
.differentiators {
    position: relative;
    padding: var(--space-6xl) 0;
    overflow: hidden;
}

.differentiators__bg {
    position: absolute;
    inset: 0;
    background: var(--t-bg-section-alt);
}

.differentiators .container {
    position: relative;
}

.differentiators__layout {
    display: grid;
    gap: var(--space-4xl);
}

@media (min-width: 960px) {
    .differentiators__layout {
        grid-template-columns: 5fr 7fr;
        gap: var(--space-5xl);
        align-items: start;
    }

    .differentiators__content {
        position: sticky;
        top: 120px;
    }
}

.differentiators__grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .differentiators__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.diff-card {
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--t-border-card);
    background: var(--t-card-bg-subtle);
    transition: all var(--transition-base);
}

.diff-card:hover {
    border-color: rgba(232, 113, 58, 0.2);
    background: var(--t-card-hover-bg-subtle);
}

.diff-card__number {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--thermal);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.diff-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--t-text-primary);
    margin-bottom: var(--space-sm);
}

.diff-card__desc {
    font-size: 0.84rem;
    color: var(--t-text-tertiary);
    line-height: 1.7;
}

/* --- CTA Final --- */
.cta-final {
    position: relative;
    padding: var(--space-6xl) 0;
    overflow: hidden;
}

.cta-final__bg {
    position: absolute;
    inset: 0;
    background: var(--t-bg-section);
}

.cta-final__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--thermal-glow) 0%, transparent 70%);
    filter: blur(80px);
}

.cta-final .container {
    position: relative;
}

.cta-final__content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-final__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--thermal);
    padding: 8px 16px;
    background: var(--thermal-glow);
    border: 1px solid rgba(232, 113, 58, 0.15);
    border-radius: 100px;
    margin-bottom: var(--space-xl);
}

.cta-final__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--thermal);
    animation: heroPulse 2s ease-in-out infinite;
}

.cta-final__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--t-text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.cta-final__subtitle {
    font-size: 1rem;
    color: var(--t-text-tertiary);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.cta-final__channels {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-final__channel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--t-text-muted);
}

.cta-final__channel svg {
    flex-shrink: 0;
    color: var(--t-text-muted);
}

/* --- Footer --- */
.footer {
    background: var(--t-bg-section-alt);
    padding: var(--space-4xl) 0 var(--space-xl);
    border-top: 1px solid var(--t-border-subtle);
}

.footer__grid {
    display: grid;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--t-border-subtle);
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__desc {
    font-size: 0.84rem;
    color: var(--t-text-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--t-text-primary);
    margin-bottom: var(--space-sm);
}

.footer__link {
    font-size: 0.84rem;
    color: var(--t-text-muted);
    transition: color var(--transition-fast);
    padding: 2px 0;
}

.footer__link:hover {
    color: var(--thermal);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    padding-top: var(--space-xl);
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__bottom p {
    font-size: 0.75rem;
    color: var(--t-text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-xl);
}

.footer__bottom-links a {
    font-size: 0.75rem;
    color: var(--t-text-muted);
    transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
    color: var(--t-text-tertiary);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Stagger for grids */
.services__grid .service-card.visible { transition-delay: calc(var(--i, 0) * 0.08s); }
.applications__grid .app-card.visible { transition-delay: calc(var(--i, 0) * 0.08s); }
.sectors__grid .sector-card.visible { transition-delay: calc(var(--i, 0) * 0.08s); }
.values__grid .value-card.visible { transition-delay: calc(var(--i, 0) * 0.08s); }
.differentiators__grid .diff-card.visible { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */

/* Mobile section spacing and optimization */
@media (max-width: 767px) {
    .about,
    .services,
    .applications,
    .sectors,
    .philosophy,
    .differentiators,
    .cta-final {
        padding: var(--space-4xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .hero__badge {
        font-size: 0.6rem;
    }

    .philosophy__pillars {
        margin-bottom: var(--space-3xl);
    }

    /* Cards padding optimization */
    .service-card,
    .app-card,
    .sector-card,
    .value-card,
    .diff-card {
        padding: var(--space-xl);
    }

    /* Buttons full width */
    .hero__actions,
    .cta-final__actions {
        flex-direction: column;
        width: 100%;
    }
    .hero__actions .btn,
    .cta-final__actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats layout optimization */
    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .hero__stat-divider {
        width: 40px;
        height: 1px;
    }

    /* Acomodo del SVG en Hero para móvil */
    .hero__coil-graphic {
        width: 150%;
        max-width: none;
        top: 5%;
        right: -50%;
        transform: none;
        opacity: 0.2; /* Reduce interferencia visual con el texto */
    }

    /* Footer adjustments */
    .footer__grid {
        gap: var(--space-xl);
    }
}

/* Mobile Menu Optimization (<= 959px) */
@media (max-width: 959px) {
    .nav__menu {
        padding: var(--space-2xl);
    }
    
    .nav__menu .nav__link {
        font-size: 1.5rem;
    }

    .nav__menu .nav__link,
    .nav__menu .nav__cta-link {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s;
    }
    
    .nav__menu.active .nav__link,
    .nav__menu.active .nav__cta-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entrance */
    .nav__menu.active .nav__link:nth-child(1) { transition-delay: 0.1s; }
    .nav__menu.active .nav__link:nth-child(2) { transition-delay: 0.15s; }
    .nav__menu.active .nav__link:nth-child(3) { transition-delay: 0.2s; }
    .nav__menu.active .nav__link:nth-child(4) { transition-delay: 0.25s; }
    .nav__menu.active .nav__link:nth-child(5) { transition-delay: 0.3s; }
    .nav__menu.active .nav__cta-link { transition-delay: 0.35s; }

    /* CTA button inside mobile menu */
    .nav__menu .nav__cta-link {
        margin-top: var(--space-xl);
        width: 100%;
        max-width: 320px;
        text-align: center;
        background: var(--thermal);
        color: #fff;
        border: none;
        padding: 16px;
        font-size: 1.1rem;
        box-shadow: 0 4px 20px var(--thermal-glow-strong);
    }
}

/* Small mobile */
@media (max-width: 374px) {
    .hero__title {
        font-size: 1.85rem;
    }

    .hero__stats {
        gap: var(--space-md);
    }

    .hero__stat-value {
        font-size: 1.25rem;
    }
}

/* Mobile landscape / tablet */
@media (min-width: 480px) and (max-width: 767px) {
    .services__grid,
    .applications__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 959px) {
    .about__visual {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

    .hero__title {
        font-size: 4.25rem;
    }
}

/* Sectors grid: center last two items on desktop */
@media (min-width: 1024px) {
    .sectors__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* For 5 items: last row gets 2 items centered */
    .sectors__grid {
        justify-items: center;
    }

    .sectors__grid .sector-card:nth-child(4) {
        grid-column: 1 / 2;
        justify-self: stretch;
    }

    .sectors__grid .sector-card:nth-child(5) {
        grid-column: 2 / 3;
        justify-self: stretch;
    }
}

/* Fix last sector cards layout */
@media (min-width: 1024px) {
    .sectors__grid .sector-card:last-child:nth-child(3n - 1) {
        grid-column: auto;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--t-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--t-scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--t-scrollbar-thumb-hover);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: rgba(232, 113, 58, 0.3);
    color: var(--t-text-primary);
}

/* ============================================================
   ABOUT SVG ANIMATIONS
   ============================================================ */
.about-svg-container {
    overflow: visible;
}

.about-coil-group {
    animation: aboutCoilFloat 6s ease-in-out infinite alternate;
    transform-origin: center;
}

.about-coil-ring {
    animation: aboutRingPulse 4s ease-in-out infinite alternate;
    transform-origin: 200px 240px;
}

.about-coil-ring.r1 { animation-delay: 0s; }
.about-coil-ring.r2 { animation-delay: 0.2s; }
.about-coil-ring.r3 { animation-delay: 0.4s; }
.about-coil-ring.r4 { animation-delay: 0.6s; }
.about-coil-ring.r5 { animation-delay: 0.8s; }

.about-glow-outer {
    animation: aboutGlowPulse 4s ease-in-out infinite alternate;
    transform-origin: 200px 260px;
}

.about-glow-inner {
    animation: aboutInnerPulse 2s ease-in-out infinite alternate;
    transform-origin: 200px 260px;
}

.about-glow-dot {
    animation: aboutDotBlink 3s infinite;
}

@keyframes aboutCoilFloat {
    0% { transform: translateY(-5px); }
    100% { transform: translateY(5px); }
}

@keyframes aboutRingPulse {
    0% { transform: scale(0.98); opacity: 0.5; }
    100% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes aboutGlowPulse {
    0% { transform: scale(0.8); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0.5; }
}

@keyframes aboutInnerPulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes aboutDotBlink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; filter: drop-shadow(0 0 5px #fff); }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--t-bg-body);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.preloader__coil {
    width: 60px;
    height: 60px;
    animation: preloaderSpin 2s linear infinite;
}

.preloader__progress {
    stroke-linecap: round;
    animation: preloaderDraw 1.5s ease-in-out infinite alternate;
}

.preloader__core {
    animation: preloaderPulse 1s ease-in-out infinite alternate;
}

.preloader__core-dot {
    animation: preloaderBlink 0.5s ease-in-out infinite alternate;
}

.preloader__text {
    font-size: 0.70rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--thermal);
    opacity: 0.8;
    animation: preloaderTextPulse 1.5s ease-in-out infinite alternate;
}

@keyframes preloaderSpin { 100% { transform: rotate(360deg); } }
@keyframes preloaderDraw { 0% { stroke-dashoffset: 251.2; } 100% { stroke-dashoffset: 0; } }
@keyframes preloaderPulse { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(1.2); opacity: 1; } }
@keyframes preloaderBlink { 0% { opacity: 0.4; } 100% { opacity: 1; filter: drop-shadow(0 0 8px #E8713A); } }
@keyframes preloaderTextPulse { 0% { opacity: 0.4; } 100% { opacity: 1; } }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
body {
    cursor: none;
}

a, button, input, select, textarea, .theme-toggle, .nav__toggle {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--thermal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(232, 113, 58, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
}

.cursor-hover .cursor-dot {
    width: 0px;
    height: 0px;
}

.cursor-hover .cursor-ring {
    width: 48px;
    height: 48px;
    background-color: rgba(232, 113, 58, 0.1);
    border-color: rgba(232, 113, 58, 0.8);
    backdrop-filter: blur(2px);
}

@media (hover: none) and (pointer: coarse) {
    body, a, button, input, select, textarea, .theme-toggle, .nav__toggle {
        cursor: auto !important;
    }
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}
