/* ============================================
   TTNC Technology 2026 — Design System
   ============================================ */

/* === CSS Custom Properties === */
:root {
    --navy: #0a0e27;
    --navy-light: #141937;
    --navy-mid: #1a2040;
    --orange: #f39200;
    --orange-light: #ffb74d;
    --orange-dark: #c47600;
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.15);
    --white: #ffffff;
    --white-dim: rgba(255, 255, 255, 0.7);
    --white-muted: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-primary: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Prompt', 'Inter', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Light Theme Variables === */
[data-theme="light"] {
    --navy: #f5f7fb;
    --navy-light: #edf0f7;
    --navy-mid: #e4e8f0;
    --orange: #e68600;
    --orange-light: #f39200;
    --orange-dark: #c47600;
    --cyan: #0099cc;
    --cyan-dim: rgba(0, 153, 204, 0.1);
    --white: #1a1a2e;
    --white-dim: rgba(26, 26, 46, 0.7);
    --white-muted: rgba(26, 26, 46, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-hover: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
}

/* === Thai Language Font Override === */
[lang="th"] {
    --font-primary: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Prompt', 'Space Grotesk', 'Inter', sans-serif;
}

[lang="th"] body {
    line-height: 1.8;
}

[lang="th"] .hero-title {
    line-height: 1.3;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* === Container === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Glassmorphism Card === */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(243, 146, 0, 0.05);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: filter var(--transition-smooth);
}

[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .logo-img {
    filter: none;
}

.footer-logo-img {
    height: 64px;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.logo-sub {
    display: block;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white-dim);
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: rgba(0, 0, 0, 0.05);
}

/* === Nav Controls (Theme + Lang toggles) === */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 12px;
}

.ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--white-dim);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ctrl-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: var(--glass-bg-hover);
    transform: scale(1.08);
}

.theme-icon {
    transition: all var(--transition-fast);
}

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

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

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

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

.ctrl-label {
    pointer-events: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--orange);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--orange-light);
    box-shadow: 0 4px 20px rgba(243, 146, 0, 0.4);
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 24px 40px;
    /* Reduced vertical padding */
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--navy) 75%);
    z-index: 1;
    pointer-events: none;
}

.hero-split {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    /* Match global .container */
    margin: 0 auto;
    gap: 80px;
    padding: 0 24px;
    /* Match global .container padding */
}

@media (max-width: 1024px) {
    .hero-split {
        padding-left: 20px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-split {
        flex-direction: column-reverse;
        /* Stack on mobile */
        padding-left: 0;
        gap: 20px;
        text-align: center;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
    flex: 1;
}

.hero-3d {
    flex: 1.2;
    /* Give slightly more space to 3D */
    max-width: 800px;
    height: 600px;
    /* Reduced height to fit screen */
    /* Increased height to catch vertical orbits */
    position: relative;
    z-index: 2;
    overflow: visible;
    /* Ensure nothing gets clipped if it goes slightly out */
    margin-right: -50px;
    /* Pull slightly right to balance visual weight */
    margin-top: -20px;
    /* Pull up slightly */
}

@media (max-width: 768px) {
    .hero-3d {
        height: 500px;
        width: 100%;
        margin-right: 0;
    }
}

.hero-3d canvas {
    width: 100% !important;
    height: 100% !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange-light);
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line.alt {
    color: var(--orange);
}

.title-line em {
    font-style: normal;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Kinetic text animation */
.kinetic-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(-40deg);
    animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--white-dim);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(243, 146, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(243, 146, 0, 0.5);
    transform: translateY(-2px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--orange);
    color: var(--orange-light);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--white-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    /* Closer to bottom edge */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: float-indicator 3s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    color: var(--white-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--orange);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes float-indicator {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.highlight {
    color: var(--orange);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--white-dim);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 120px 0 80px;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--orange), transparent);
}

/* ============================================
   AI SOLUTIONS — BENTO GRID
   ============================================ */
.ai-solutions {
    padding: 80px 0 120px;
    position: relative;
}

.ai-solutions::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 146, 0, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.bento-grid {
    display: grid;
    gap: 20px;
}

.ai-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}

.bento-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-large {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-wide {
    grid-column: span 2;
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--orange);
}

.card-icon.ai-icon {
    width: 72px;
    height: 72px;
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    to {
        transform: rotate(360deg);
    }
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--white-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: rgba(243, 146, 0, 0.1);
    border: 1px solid rgba(243, 146, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(243, 146, 0, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    color: var(--orange);
    transition: transform var(--transition-spring);
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.service-tag.tag-new {
    background: rgba(243, 146, 0, 0.12);
    border-color: rgba(243, 146, 0, 0.3);
    color: var(--orange);
    animation: tag-pulse 2s ease-in-out infinite;
}

@keyframes tag-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 12px 2px rgba(243, 146, 0, 0.15);
    }
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--orange);
}

.service-card>p {
    color: var(--white-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    margin-bottom: 24px;
}

.service-list li {
    padding: 8px 0;
    color: var(--white-dim);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.service-list li:hover {
    color: var(--white);
    padding-left: 8px;
}

.service-list li::before {
    content: '→';
    color: var(--orange);
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.service-list li:hover::before {
    transform: translateX(4px);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.service-link:hover {
    gap: 12px;
    color: var(--orange-light);
}

/* ============================================
   ADVANTAGE — SCROLLYTELLING
   ============================================ */
.advantage {
    padding: 120px 0;
    position: relative;
}

.advantage-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 24px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--orange), var(--cyan), var(--orange));
    opacity: 0.3;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    position: relative;
}

.advantage-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(243, 146, 0, 0.3);
}

.advantage-content {
    flex: 1;
    padding: 28px 32px;
}

.advantage-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.advantage-content p {
    color: var(--white-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.partners-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 32px;
    animation: marquee 50s linear infinite;
    width: max-content;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    /* White card background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.partner-logo:hover {
    border-color: var(--orange);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.partner-placeholder {
    font-size: 0.75rem;
    text-align: center;
    color: #333;
    /* Dark text for white background */
    line-height: 1.4;
    font-weight: 500;
}

.partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    /* Show original colors */
    transition: all var(--transition-smooth);
    mix-blend-mode: normal;
}

.partner-logo:hover .partner-img {
    filter: none;
    transform: scale(1.05);
}

[data-theme="light"] .partner-img {
    filter: none;
}

[data-theme="light"] .partner-logo:hover .partner-img {
    transform: scale(1.05);
}

.partner-placeholder small {
    font-size: 0.6rem;
    color: var(--white-muted);
}

/* ============================================
   TTNC CLOUD — COMING SOON
   ============================================ */
.cloud-section {
    padding: 60px 0 120px;
    position: relative;
}

.cloud-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cloud-card {
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, var(--glass-bg) 50%, rgba(243, 146, 0, 0.04) 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
}

.cloud-card:hover {
    transform: none;
    border-color: rgba(0, 212, 255, 0.3) !important;
}

.cloud-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--cyan), rgba(0, 212, 255, 0.7));
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    animation: badge-glow 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.2);
    }
}

.cloud-content {
    position: relative;
    z-index: 2;
}

.cloud-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    color: var(--cyan);
    animation: cloud-float 6s ease-in-out infinite;
}

@keyframes cloud-float {

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

    50% {
        transform: translateY(-10px);
    }
}

.cloud-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cloud-title .highlight {
    background: linear-gradient(135deg, var(--cyan), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloud-desc {
    color: var(--white-dim);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 12px;
    line-height: 1.7;
}

.cloud-desc-en {
    color: var(--white-muted);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-style: italic;
}

.cloud-features {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.cloud-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white-dim);
    transition: all var(--transition-fast);
}

.cloud-feature:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
}

.cloud-feature svg {
    color: var(--cyan);
    flex-shrink: 0;
}

.cloud-cta {
    font-size: 1rem;
}

/* Footer Coming Soon Badge */
.footer-coming-soon {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact {
    padding: 80px 0 120px;
}

.cta-card {
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(243, 146, 0, 0.08) 0%, rgba(10, 14, 39, 0.5) 50%, rgba(0, 212, 255, 0.05) 100%);
}

.cta-card:hover {
    transform: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-desc {
    color: var(--white-dim);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* CTA Orbit Decoration */
.cta-decoration {
    position: absolute;
    top: 50%;
    right: -60px;
    width: 300px;
    height: 300px;
    transform: translateY(-50%);
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(243, 146, 0, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.ring-1 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation: orbit-rotate 15s linear infinite;
}

.ring-2 {
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
    animation: orbit-rotate 20s linear infinite reverse;
}

.ring-3 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation: orbit-rotate 25s linear infinite;
}

@keyframes orbit-rotate {
    to {
        transform: rotate(360deg);
    }
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.dot-1 {
    background: var(--orange);
    transform: translate(100px, 0);
    animation: orbit-dot1 15s linear infinite;
}

.dot-2 {
    background: var(--cyan);
    transform: translate(-130px, 0);
    animation: orbit-dot2 20s linear infinite reverse;
}

.dot-3 {
    background: var(--orange-light);
    transform: translate(0, 150px);
    animation: orbit-dot3 25s linear infinite;
}

@keyframes orbit-dot1 {
    to {
        transform: rotate(360deg) translate(100px, 0);
    }
}

@keyframes orbit-dot2 {
    to {
        transform: rotate(360deg) translate(-130px, 0);
    }
}

@keyframes orbit-dot3 {
    to {
        transform: rotate(360deg) translate(0, 150px);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--navy) 0%, #060919 100%);
    padding: 80px 0 32px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-about {
    color: var(--white-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 4px;
}

.footer-links-group a {
    color: var(--white-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--orange);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--white-muted);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--white-muted);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--orange);
}

/* ============================================
   SCROLL REVEAL (Scrollytelling)
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1200px) {
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-row: span 1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid .service-card:last-child {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        order: 1;
    }

    .hero-3d {
        display: none;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-divider {
        height: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .about,
    .ai-solutions,
    .services,
    .advantage,
    .partners,
    .cloud-section {
        padding: 80px 0;
    }

    .ai-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .service-card:last-child {
        grid-column: span 1;
    }

    .cloud-card {
        padding: 40px 20px;
    }

    .cloud-features {
        gap: 12px;
    }

    .cloud-feature {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .advantage-item {
        gap: 20px;
    }

    .advantage-content {
        padding: 20px 24px;
    }

    .timeline-line {
        left: 24px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-decoration {
        display: none;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .scroll-indicator {
        display: none;
    }

    .counter-inline {
        display: inline;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .bento-card,
    .service-card {
        padding: 24px;
    }

    .advantage-number {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .partner-logo {
        width: 130px;
        height: 80px;
    }
}

/* ============================================
   LIGHT THEME — Section Overrides
   ============================================ */
[data-theme="light"] body {
    background: var(--navy);
    color: var(--white);
}

[data-theme="light"] .navbar {
    background: rgba(245, 247, 251, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(245, 247, 251, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-cta {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
}

[data-theme="light"] .hero {
    background: linear-gradient(180deg, #e8ecf4 0%, #f5f7fb 100%);
}

[data-theme="light"] .hero-overlay {
    background: radial-gradient(ellipse at center, rgba(230, 134, 0, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .badge-dot {
    background: var(--orange);
}

[data-theme="light"] .hero-stats {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stat-divider {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-indicator {
    color: var(--white-muted);
}

[data-theme="light"] .scroll-mouse {
    border-color: var(--white-muted);
}

[data-theme="light"] .scroll-wheel {
    background: var(--white-muted);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .section-tag {
    background: rgba(0, 153, 204, 0.08);
    border-color: rgba(0, 153, 204, 0.2);
    color: var(--cyan);
}

[data-theme="light"] .bento-card .card-tag {
    background: rgba(0, 153, 204, 0.08);
    border-color: rgba(0, 153, 204, 0.15);
    color: var(--cyan);
}

[data-theme="light"] .service-card {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .service-card:hover {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .service-icon-wrap {
    background: transparent;
    border-color: rgba(0, 153, 204, 0.15);
}

[data-theme="light"] .service-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .service-list li::before {
    color: var(--orange);
}

[data-theme="light"] .service-link {
    color: var(--orange);
}

[data-theme="light"] .cloud-section {
    background: linear-gradient(180deg, var(--navy) 0%, #e0e5ef 100%);
}

[data-theme="light"] .cloud-card {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cloud-badge {
    background: rgba(0, 153, 204, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

[data-theme="light"] .cloud-feature {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .advantage-content.glass-card {
    background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .advantage-number {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
}

[data-theme="light"] .timeline-line {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .partners {
    background: var(--navy-light);
}

[data-theme="light"] .partner-placeholder {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--white-dim);
}

[data-theme="light"] .cta-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.04), rgba(0, 153, 204, 0.06));
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
}

[data-theme="light"] .btn-glass {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--white);
}

[data-theme="light"] .btn-glass:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .footer .logo-img {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .footer h4 {
    color: #fff;
}

[data-theme="light"] .footer a {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .footer a:hover {
    color: var(--orange-light);
}

[data-theme="light"] .footer-about {
    color: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .orbit-ring {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .orbit-dot {
    background: var(--orange);
}

[data-theme="light"] .nav-hamburger span {
    background: var(--white);
}

/* === Responsive — Nav Controls === */
@media (max-width: 1024px) {
    .nav-controls {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001;
        margin: 0;
        flex-direction: column;
        gap: 8px;
    }

    .ctrl-btn {
        width: 42px;
        height: 42px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        background: var(--navy-light);
        border-color: var(--glass-border);
    }

    [data-theme="light"] .ctrl-btn {
        background: #fff;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        color: var(--white);
        border-color: rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   SUB-PAGE STYLES
   ============================================ */

/* Page Hero */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 146, 0, 0.08) 0%, transparent 70%);
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--white-muted);
}

.page-hero .breadcrumb a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-hero .breadcrumb a:hover {
    color: var(--orange-light);
}

.page-hero .breadcrumb .sep {
    opacity: 0.4;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white), var(--white-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--white-dim);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Solutions Grid */
.solutions-section {
    padding: 80px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.solution-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--cyan));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.solution-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(243, 146, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--orange);
}

.solution-icon svg {
    width: 28px;
    height: 28px;
}

.solution-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.solution-card p {
    color: var(--white-dim);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Vendor Logos */
.vendors-section {
    padding: 60px 0 80px;
}

.vendors-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.vendors-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.vendor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-smooth);
    padding: 16px;
}

.vendor-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--orange);
    transform: translateY(-2px);
}

.vendor-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--white-dim);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.vendor-name small {
    display: block;
    font-weight: 400;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 2px;
}

/* Page CTA */
.page-cta {
    padding: 80px 0;
    text-align: center;
}

.page-cta-box {
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.page-cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.page-cta-box p {
    color: var(--white-dim);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Other Services Navigation */
.other-services {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.other-services h3 {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--white);
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.other-service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.other-service-link:hover {
    background: var(--glass-bg-hover);
    border-color: var(--orange);
    color: var(--orange);
}

.other-service-link svg {
    flex-shrink: 0;
    color: var(--orange);
}

/* === Sub-page Light Theme === */
[data-theme="light"] .page-hero {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef1f8 100%);
}

[data-theme="light"] .page-hero-title {
    background: linear-gradient(135deg, #0a0e27, #1a2040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .page-hero-subtitle {
    color: #555;
}

[data-theme="light"] .solution-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .solution-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .solution-card h3 {
    color: #0a0e27;
}

[data-theme="light"] .solution-card p {
    color: #444;
}

[data-theme="light"] .vendor-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .vendor-name {
    color: #333;
}

[data-theme="light"] .page-cta-box {
    background: linear-gradient(135deg, #f5f7fb, #eef1f8);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .page-cta-box h2 {
    color: #0a0e27;
}

[data-theme="light"] .page-cta-box p {
    color: #444;
}

[data-theme="light"] .other-services {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .other-services h3 {
    color: #0a0e27;
}

[data-theme="light"] .other-service-link {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    color: #0a0e27;
}

/* Sub-page responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .solution-card {
        padding: 28px 24px;
    }

    .vendors-grid {
        gap: 16px;
    }

    .vendor-item {
        width: 130px;
        height: 65px;
    }

    .page-cta-box {
        padding: 40px 24px;
    }

    .other-services-grid {
        grid-template-columns: 1fr;
    }
}

/* Dynamic Vendor Logos */
.vendor-dynamic {
    padding: 12px;
    background: transparent;
    border: none;
}

.vendor-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all var(--transition-smooth);
}

.vendor-item:hover .vendor-img {
    opacity: 1;
    transform: scale(1.05);
}

[data-theme="light"] .vendor-img {
    filter: none;
    opacity: 1;
}