/* Global Styles */
:root {
    --brand-top: #38B0FF;
    --brand-mid: #1E7BEA;
    --brand-bottom: #0E57CC;
    --brand-gradient-vertical: linear-gradient(180deg, var(--brand-top) 0%, var(--brand-mid) 50%, var(--brand-bottom) 100%);
    --brand-gradient-horizontal: linear-gradient(90deg, var(--brand-top) 0%, var(--brand-mid) 50%, var(--brand-bottom) 100%);
    --brand-gradient-diagonal: linear-gradient(135deg, var(--brand-top) 0%, var(--brand-mid) 50%, var(--brand-bottom) 100%);
    --primary-color: #1E7BEA;
    --primary-color-600: #0E57CC;
    --secondary-color: #38B0FF;
    --accent-color: #0E57CC;
    --brand-accent: var(--primary-color-600);
    --brand-bg-tint: rgba(30, 123, 234, 0.08);
    --primary-surface: rgba(30, 123, 234, 0.12);
    --primary-surface-2: rgba(30, 123, 234, 0.06);
    --primary-border: rgba(30, 123, 234, 0.35);
    --primary-border-strong: rgba(30, 123, 234, 0.6);
    --primary-glow: rgba(30, 123, 234, 0.35);
    --primary-glow-strong: rgba(30, 123, 234, 0.55);
    --brand-grid-line: rgba(30, 123, 234, 0.12);
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --success-surface: rgba(34, 197, 94, 0.12);
    --warning-surface: rgba(245, 158, 11, 0.12);
    --danger-surface: rgba(239, 68, 68, 0.12);
    --bg-color: #0b1220;
    --card-bg: #0f172a;
    --text-color: #e2e8f0;
    --heading-color: #f8fafc;
    --border-color: #1e293b;
    --text-muted: #94a3b8;
    --on-primary: #0b1220;
    --nav-height: 80px;
    --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "Consolas", "Monaco", "Courier New", monospace;
    --font-size-body: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-sm: 0.9rem;
    --font-size-xs: 0.8rem;
    --font-size-h1: clamp(2rem, 4vw, 3rem);
    --font-size-h2: clamp(1.5rem, 2.8vw, 2.25rem);
    --font-size-h3: clamp(1.25rem, 2vw, 1.5rem);
    --line-compact: 1.25;
    --line-default: 1.6;
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 20px;
    --shadow-1: 0 8px 24px rgba(2, 6, 23, 0.4);
    --shadow-2: 0 16px 48px rgba(2, 6, 23, 0.5);
    --duration-fast: 120ms;
    --duration: 240ms;
    --duration-slow: 460ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --focus-ring: 0 0 0 3px rgba(30, 123, 234, 0.42);
    --shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.35);
    --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.55);
    --section-bg: rgba(255, 255, 255, 0.03);
    --shadow-light: var(--shadow-1);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f7f9fc;
        --card-bg: #ffffff;
        --section-bg: #f8fafc;
        --text-color: #0f172a;
        --heading-color: #0b1220;
        --border-color: #e2e8f0;
        --text-muted: #64748b;
        --shadow-1: 0 8px 24px rgba(15, 23, 42, 0.06);
        --shadow-2: 0 20px 50px rgba(15, 23, 42, 0.08);
        --on-primary: #0b1220;
        --brand-bg-tint: #eaf4ff;
        --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
        --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.1);
        --shadow-light: var(--shadow-1);
    }
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: var(--line-default);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration) var(--ease-out);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 { font-size: var(--font-size-h1); line-height: var(--line-compact); }
h2 { font-size: var(--font-size-h2); margin-bottom: 1.2rem; }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.text-muted { color: var(--text-muted); }
.link-primary { color: var(--primary-color); }
.link-primary:hover { text-decoration: underline; }

.text-gradient {
    background: var(--brand-gradient-diagonal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

.brand-name {
    background: var(--brand-gradient-diagonal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content-fill {
    flex: 1;
    width: 100%;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Navigation */
header {
    background-color: rgba(10, 10, 10, 0.5); /* Semi-transparent for frosted effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header .container {
    height: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--brand-accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-primary {
    flex: 1;
    justify-content: center;
    align-items: center;
    margin-left: 0;
}

.nav-social {
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    transition: color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--brand-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
}

.nav-social a::after {
    display: none;
}

.btn, .cta-button {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: var(--on-primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out);
    display: inline-block;
}

/* theme-toggle removed per product requirement */

.menu-toggle {
    margin-right: 12px;
    background: transparent;
    color: var(--heading-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.menu-toggle:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.menu-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn.secondary, .cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.secondary:hover, .cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--on-primary);
}

.btn:hover, .cta-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 22px var(--primary-glow);
    color: var(--on-primary);
}
.btn:active, .cta-button:active {
    transform: translateY(0) scale(0.98);
    filter: saturate(1.1);
}
.btn:focus-visible, .cta-button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-gradient-orange {
    background: linear-gradient(90deg, #f59e0b, var(--accent-color));
    color: var(--on-primary);
}

.text-cyan { color: var(--primary-color); }
.text-orange { color: var(--warning-color); }

.logo i {
    color: var(--brand-accent) !important;
}

.logo .brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

.btn.ghost {
    background: transparent;
    color: var(--heading-color);
    border: 1px solid var(--border-color);
}
.btn.ghost:hover {
    background: rgba(255,255,255,0.06);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.badge-success {
    color: var(--success-color);
    background: var(--success-surface);
    border-color: rgba(34, 197, 94, 0.3);
}
.badge-warning {
    color: var(--warning-color);
    background: var(--warning-surface);
    border-color: rgba(245, 158, 11, 0.35);
}
.badge-danger {
    color: var(--danger-color);
    background: var(--danger-surface);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.about-brand-title {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.4em;
    flex-wrap: wrap;
}

.about-brand-en {
    display: inline-block;
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    font-weight: 700;
    line-height: 1;
    color: #0e57cc;
    transform: translateY(0.08em);
}

.about-brand-cn {
    display: inline-block;
    font-size: clamp(1.9rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1;
    color: #5f5a5d;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-bg-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(var(--brand-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    top: 20%;
    z-index: 1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Carousel */
.carousel-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Section General */
section {
    padding: 80px 0;
}

body.page-index section {
    background-color: var(--bg-color);
}

body.page-index section:nth-of-type(even) {
    background-color: var(--section-bg);
}

body.theme-light.page-index section:nth-of-type(even) {
    background-color: #ecf1f7;
}

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

.section-header h2 {
    display: inline-block;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

/* =========================================
   Floatair OS Intro Section
   ========================================= */
.os-intro-section {
    background: linear-gradient(180deg, #000 0%, #0d0d0d 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.os-intro-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.os-visual-center {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.os-icon-main {
    font-size: 4rem;
    color: var(--primary-color);
    z-index: 2;
    filter: drop-shadow(0 0 10px var(--primary-glow-strong));
}

.os-core-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(30, 123, 234, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
}

.os-intro-section h2 {
    font-size: 4rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: -2px;
}

.intro-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 2px;
}

.intro-desc {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 50px;
}

.intro-desc strong {
    color: #fff;
    font-weight: 600;
}

.intro-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.intro-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.intro-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: #fff;
}

.intro-tag i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.intro-tag span {
    font-size: 0.9rem;
    font-weight: 400;
    color: inherit;
}

/* Responsive adjustments for intro */
@media (max-width: 768px) {
    .os-intro-section h2 {
        font-size: 3rem;
    }
    .intro-subtitle {
        font-size: 1.2rem;
    }
    .intro-tags {
        gap: 20px;
    }
}

/* =========================================
   Features Revamped
   ========================================= */
.features-section {
    background-color: #0d0d0d;
}

.feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 120px;
    opacity: 0; /* Hidden initially for scroll reveal */
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.feature-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-badge {
    display: inline-block;
    background: var(--primary-surface);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
    border: 1px solid var(--primary-border);
}

.feature-block h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.feature-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Feature Visual: Idea to Reality (ITR) Flow */
.feature-visual {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    background: #000;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.itr-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    gap: 15px;
}

.itr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.itr-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Section 1: Wireframe Avatar (Left) */
.avatar-container {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-head {
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.idea-pop {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    filter: drop-shadow(0 0 8px var(--primary-color));
    animation: idea-pop-anim 3s infinite;
    z-index: 2;
}

.thought-ripple {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: ripple-expand 3s infinite 0.2s;
}

@keyframes idea-pop-anim {
    0%, 20% { opacity: 0; transform: scale(0) translateY(10px); }
    30% { opacity: 1; transform: scale(1.2) translateY(0); }
    40% { transform: scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes ripple-expand {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}

/* Section 2: OS Core (Center) - Refined */
.os-core-visual {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.os-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-border);
    border-radius: 50%;
    animation: spin-slow 10s linear infinite;
}

.os-ring-outer::before {
    content: '';
    position: absolute;
    top: -2px; left: 50%;
    width: 4px; height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary-color);
}

.os-ring-inner {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 1px solid var(--primary-border-strong);
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin-fast 3s linear infinite;
}

.os-logo-text {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--brand-gradient-vertical);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-align: center;
    line-height: 1.2;
    z-index: 2;
    text-shadow: 0 0 10px var(--primary-glow-strong);
}

/* Section 3: Single Lens (Right) */
.glasses-container {
    width: 140px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-lens {
    width: 90px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px 12px 24px 24px; /* Lens shape */
    position: relative;
    background: var(--primary-surface-2);
    box-shadow: 0 0 15px rgba(30, 123, 234, 0.14), inset 0 0 10px rgba(30, 123, 234, 0.08);
    overflow: hidden;
    backdrop-filter: blur(2px);
}

/* Lens Shine Animation */
.single-lens::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    animation: lens-shine 5s infinite;
}

@keyframes lens-shine {
    0%, 40% { left: -100%; }
    50% { left: 200%; }
    100% { left: 200%; }
}

.lens-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.mini-notification {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #00ff00;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    transform: scale(0);
    opacity: 0;
    animation: notif-popup 3s infinite 1.5s;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.mini-notification i {
    font-size: 0.8rem;
}

@keyframes notif-popup {
    0% { transform: scale(0); opacity: 0; }
    10% { transform: scale(1); opacity: 1; }
    80% { opacity: 1; }
    90% { transform: scale(0.5); opacity: 0; }
    100% { opacity: 0; }
}

/* Connectors */
.itr-connector {
    flex-grow: 1;
    height: 2px;
    background: #222;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #444;
}

.energy-stream {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: energy-flow 3s infinite linear;
}

.energy-stream.delay {
    animation-delay: 1.5s; /* Halfway through */
}

@keyframes energy-flow {
    0% { left: -30%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}


/* Pipeline Container (Old) - Keep for compatibility if needed or remove */
.pipeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    position: relative;
    padding: 20px 0;
}

/* Feature 1: Metrics (Adjusted for new layout) */
.feature-metrics {
    display: flex;
    gap: 40px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Feature 2: Hardware Stack */
.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list li i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.hardware-stack {
    position: relative;
    width: 300px;
    height: 300px;
}

.hardware-stack .layer {
    position: absolute;
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.5s ease;
}

.hardware-stack .layer-1 { top: 0; z-index: 3; transform: scale(0.9) translateY(0); }
.hardware-stack .layer-2 { top: 60px; z-index: 2; transform: scale(0.95) translateY(0); background: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.5); }
.hardware-stack .layer-3 { top: 120px; z-index: 1; transform: scale(1) translateY(0); }

.feature-block:hover .hardware-stack .layer-1 { transform: scale(0.9) translateY(-20px); }
.feature-block:hover .hardware-stack .layer-2 { transform: scale(0.95) translateY(0); }
.feature-block:hover .hardware-stack .layer-3 { transform: scale(1) translateY(20px); }

/* Feature 3: Eco Grid */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.eco-item {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.eco-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.eco-item.disabled {
    position: relative;
    opacity: 0.5;
    filter: grayscale(1);
    cursor: default;
    transform: none;
}

.eco-item.disabled::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
    z-index: 10;
}

.eco-item.disabled:hover {
    background: rgba(255,255,255,0.05);
    transform: none;
    box-shadow: none;
}

.eco-item.disabled:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* New Multi-Orbit Animation System */
.eco-visual-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Core */
.eco-core {
    position: absolute;
    width: 300px;
    height: 300px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    z-index: 0;
    pointer-events: none;
}

.eco-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 0;
    opacity: 0.15;
}

.core-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 136, 0.5);
    animation: core-pulse-anim 2s infinite;
}

@keyframes core-pulse-anim {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.ring-1 { width: 160px; height: 160px; animation: rotate-cw 15s linear infinite; }
.ring-2 { width: 260px; height: 260px; animation: rotate-ccw 25s linear infinite; }
.ring-3 { width: 360px; height: 360px; animation: rotate-cw 40s linear infinite; border: 1px solid rgba(255, 255, 255, 0.05); }

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

/* Orbiters */
.orbiter {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%); /* Start at top center */
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Ring 1 Orbiters (3 items) */
.ring-1 .orbiter { width: 36px; height: 36px; font-size: 0.9rem; }
.ring-1 .orb-code { transform: rotate(0deg) translate(0, -80px) rotate(0deg); animation: counter-rotate-cw 15s linear infinite; } /* wait, transform is relative to ring center if we do it differently, but here ring rotates. */
/* Actually, standard way: Ring rotates. Child at top.
   To position children around ring:
   We can just use nth-child or specific classes with transform-origin?
   Easier: Just absolute position them on the ring edge?
   Wait, if the ring div rotates, anything inside rotates.
   So we position them relative to the ring center.
*/
.ring-1 .orb-code { top: 0; left: 50%; transform: translate(-50%, -50%); }
.ring-1 .orb-sdk  { top: 69%; left: 93%; transform: translate(-50%, -50%); } /* approx 120 deg */
.ring-1 .orb-sim  { top: 69%; left: 7%;  transform: translate(-50%, -50%); } /* approx 240 deg */

.ring-2 .orbiter { width: 44px; height: 44px; font-size: 1rem; color: #00ccff; }
.ring-2 .orb-forum    { top: 0; left: 50%; transform: translate(-50%, -50%); }
.ring-2 .orb-tutorial { top: 69%; left: 93%; transform: translate(-50%, -50%); }
.ring-2 .orb-salon    { top: 69%; left: 7%; transform: translate(-50%, -50%); }

.ring-3 .orbiter { width: 60px; height: 60px; font-size: 1.2rem; color: #ff9d00; border-color: rgba(255, 157, 0, 0.3); }
.ring-3 .orb-contest { top: 15%; left: 85%; transform: translate(-50%, -50%); }
.ring-3 .orb-campus  { top: 85%; left: 15%; transform: translate(-50%, -50%); }

.orb-label {
    font-size: 0.6rem;
    margin-top: 2px;
    color: #aaa;
    display: block;
    line-height: 1;
}

/* Counter-rotation for icons so they stay upright */
/* Since the ring rotates, the items rotate with it. We need to counter-rotate the CONTENT of the item. */
.ring-1 .orbiter i { animation: counter-rotate-cw 15s linear infinite; }
.ring-2 .orbiter i { animation: counter-rotate-ccw 25s linear infinite; }
.ring-3 .orbiter i, .ring-3 .orbiter .orb-label { animation: counter-rotate-cw 40s linear infinite; }

@keyframes counter-rotate-cw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes counter-rotate-ccw { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }

/* Replaced old eco-visual styles */



/* Cards - Keeping old classes just in case, but they are replaced in HTML */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.hero-visual-center {
    margin: 40px auto;
    max-width: 900px;
    border-radius: 14px;
    overflow: hidden;
    /* box-shadow: var(--shadow-lg); */
}

.hero-visual-center img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-item-vertical {
    text-align: center;
    padding: 20px;
}

.feature-item-vertical h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.feature-item-vertical p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow: 0 14px 30px rgba(2,6,23,0.4);
}
.card:active { transform: translateY(-2px) scale(0.99); }

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

.about-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.about-timeline::before {
    content: '';
    position: absolute;
    top: 39px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(30, 123, 234, 0.15) 0%, rgba(30, 123, 234, 0.6) 20%, rgba(30, 123, 234, 0.6) 80%, rgba(30, 123, 234, 0.15) 100%);
}

.about-timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    z-index: 1;
}

.about-timeline-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(30, 123, 234, 0.06), rgba(30, 123, 234, 0.02));
    border: 1px solid var(--primary-border);
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
    width: 100%;
    margin-top: 18px;
}

.about-timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border-strong);
}

.about-timeline-city {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: var(--primary-surface);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-timeline-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.about-timeline-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-timeline-marker {
    align-self: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px solid var(--primary-border-strong);
    color: var(--primary-color);
    box-shadow: 0 0 0 8px rgba(30, 123, 234, 0.08);
    z-index: 1;
}

.about-timeline-marker i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .about-timeline::before {
        display: none;
    }

    .about-timeline {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-timeline-marker {
        width: 48px;
        height: 48px;
        box-shadow: 0 0 0 6px rgba(30, 123, 234, 0.08);
    }

    .about-timeline-card {
        margin-top: 14px;
    }
}

/* Product Specific */
.product-card {
    text-align: center;
}

.product-image {
    height: 200px;
    background: #222;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-style: italic;
}

.specs-list {
    text-align: left;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #ccc;
}

.specs-list li {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

/* Floatair OS Specific */
.os-layer {
    background: var(--primary-surface-2);
    border: 1px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px;
}

/* =========================================
   New Styles for Homepage Revamp
   ========================================= */

/* Stats Bar */
.stats-bar {
    background-color: #0f0f0f;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
    letter-spacing: 0.03em;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Product Spotlight */
.spotlight-section {
    background-color: var(--bg-color);
}

.spotlight-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.spotlight-row.reverse {
    flex-direction: row-reverse;
    margin-bottom: 0;
}

.spotlight-image {
    flex: 1;
}

.placeholder-img {
    background-color: #1a1a1a;
    aspect-ratio: 16/9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
    gap: 20px;
}

.placeholder-img:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.placeholder-img i {
    color: #333;
    transition: color 0.3s ease;
}

.placeholder-img:hover i {
    color: var(--primary-color);
}

.placeholder-img.pro:hover i {
    color: var(--secondary-color);
}

.placeholder-img span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.spotlight-content {
    flex: 1;
}

.spotlight-content h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.spotlight-row.reverse .spotlight-content h3 {
    color: var(--secondary-color);
}

.spotlight-content h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 500;
}

.spotlight-content p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.spotlight-features {
    margin-bottom: 30px;
}

.spotlight-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotlight-features li i {
    color: var(--primary-color);
}

/* Scenarios Preview */
.bg-section-light {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.bg-section-dark {
    background: linear-gradient(180deg, #0a0f1a 0%, #0b1220 100%);
    padding: 100px 0;
}

.bg-section-muted {
    background: var(--section-bg);
    padding: 100px 0;
}

.about-capability-layout {
    display: block;
}

.about-capability-intro {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--primary-surface-2) 100%);
    border: 1px solid var(--primary-border);
    box-shadow: var(--shadow-light);
}

.about-capability-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-surface);
    border: 1px solid var(--primary-border);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.about-capability-intro h3 {
    margin-bottom: 14px;
}

.about-capability-intro p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.about-capability-highlights {
    display: grid;
    gap: 14px;
}

.about-capability-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-color);
}

.about-capability-highlights i {
    color: var(--primary-color);
    margin-top: 0.2em;
}

.about-capability-steps {
    position: relative;
    display: grid;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}

.about-capability-steps::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, var(--primary-border-strong) 0%, rgba(30, 123, 234, 0.08) 100%);
}

.about-capability-step {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 26px 28px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm);
}

.about-capability-step-index {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-gradient-diagonal);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(30, 123, 234, 0.24);
}

.about-capability-step-body h3 {
    margin-bottom: 8px;
}

.about-capability-step-body p {
    margin: 0;
    color: var(--text-muted);
}

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

    .about-capability-intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .about-capability-step {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }

    .about-capability-steps::before {
        display: none;
    }
}

.text-dark {
    color: #1a1a1a !important;
}

.text-muted-dark {
    color: #666 !important;
}

.scenario-card {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-color: #ffffff; /* Light background */
    background-size: cover;
    background-position: center;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Lighter border */
    will-change: transform;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Subtle shadow */
}

.scenario-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    z-index: 0;
    opacity: 0.05; /* Faint grid */
    pointer-events: none;
}

.scenario-grid-bg .grid-item {
    border: 1px solid rgba(0, 0, 0, 0.1); /* Darker grid lines */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #333; /* Darker icons */
}

.scenario-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-color);
    box-shadow: 0 16px 36px rgba(0,0,0,0.1); /* Softer hover shadow */
}

.scenario-card:hover .scenario-grid-bg {
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.scenario-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    /* Light gradient overlay */
    background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.8), rgba(255,255,255,0));
    z-index: 2;
}

.scenario-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.scenario-content h3 {
    margin-bottom: 5px;
    color: #1a1a1a; /* Dark text */
}

.scenario-content p {
    color: #555; /* Darker grey text */
    font-size: 0.9rem;
}

/* Developer Section */
#developer-preview {
    padding-bottom: 240px;
}

.dev-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.dev-text {
    flex: 1;
}

.dev-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.dev-text p {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.dev-icons {
    display: flex;
    gap: 30px;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #555;
}

.dev-icons i:hover {
    color: #fff;
    transition: color 0.3s ease;
}

.dev-code {
    flex: 1;
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    align-items: center;
}

.code-header .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-header .red { background: #ff5f56; }
.code-header .yellow { background: #ffbd2e; }
.code-header .green { background: #27c93f; }
.code-header span:last-child {
    margin-left: 10px;
    color: #888;
    font-family: monospace;
    font-size: 0.9rem;
}

.cta-link-arrow:focus-visible,
.nav-links a:focus-visible,
a:focus-visible,
button:focus-visible,
.hg-btn:focus-visible,
.sidebar-nav a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-s);
}

.dev-code pre {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #d4d4d4;
    overflow-x: auto;
}

/* Syntax Highlighting Sim */
.keyword { color: #c586c0; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.number { color: #b5cea8; }


/* Footer */
footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-wechat {
    position: relative;
    width: fit-content;
    margin-top: 4px;
    overflow: visible;
    z-index: 5;
}

.footer-wechat-trigger {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #07c160;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.footer-wechat-trigger i {
    font-size: 1.3rem;
}

.footer-wechat-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(7, 193, 96, 0.45);
    box-shadow: 0 10px 24px rgba(7, 193, 96, 0.18);
}

.footer-wechat-trigger:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.footer-wechat-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(8px);
    width: 148px;
    height: 148px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), visibility var(--duration) var(--ease-out);
    z-index: 20;
}

.footer-wechat-popover::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-50%) rotate(45deg);
}

.footer-wechat-popover img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.footer-contact-wechat:hover .footer-wechat-popover,
.footer-contact-wechat:focus-within .footer-wechat-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .container {
        padding: 0 18px;
    }

    .feature-block,
    .spotlight-row,
    .dev-flex {
        gap: 40px;
    }

    .feature-metrics {
        gap: 24px;
        flex-wrap: wrap;
    }

    .feature-visual {
        min-height: 340px;
    }

    .about-profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-brochure-image {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 72px;
    }

    header {
        height: auto;
        min-height: var(--nav-height);
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 64px 0;
    }

    nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo .brand-logo {
        height: 24px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 0;
    }

    .nav-primary,
    .nav-social {
        display: none;
        width: 100%;
        margin-left: 0;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 18px;
        box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18);
        z-index: 1001;
    }

    .nav-primary {
        order: 20;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px;
    }

    .nav-social {
        order: 21;
        justify-content: flex-start;
        padding: 10px 16px 14px;
        margin-top: -4px;
    }

    body.nav-open .nav-primary,
    body.nav-open .nav-social {
        display: flex;
    }

    .nav-primary li {
        width: 100%;
    }

    .nav-primary li a {
        padding: 12px 4px;
        display: block;
    }

    .nav-social a {
        width: 44px;
        height: 44px;
    }

    h1 { font-size: calc(var(--font-size-h1) * 0.85); }

    .spotlight-row, .spotlight-row.reverse, .dev-flex, .feature-block, .feature-block.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .spotlight-features li {
        justify-content: center;
    }
    
    .dev-icons {
        justify-content: center;
    }

    .feature-visual {
        order: -1; /* Show visuals first on mobile for better engagement */
        margin-bottom: 20px;
        min-height: 300px;
        width: 100%;
        padding: 24px;
    }

    .hardware-stack, .eco-visual, .pipeline-container, .hardware-gallery {
        margin: 0 auto;
    }

    .itr-layout {
        flex-direction: column;
        justify-content: center;
        gap: 24px;
    }

    .itr-connector {
        width: auto;
        height: auto;
        background: none;
    }

    .itr-connector i {
        transform: rotate(90deg);
    }

    .energy-stream {
        display: none;
    }

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

    .eco-visual-container {
        width: min(100%, 320px);
        height: 320px;
        transform: scale(0.84);
        transform-origin: center;
    }

    .dev-code {
        width: 100%;
        padding: 18px;
    }

    .footer-grid {
        gap: 28px;
    }

    /* Stack pipeline vertically on mobile */
    .pipeline-container {
        flex-direction: column;
    }
    
    .pipeline-connector {
        transform: rotate(90deg);
        height: 40px;
        width: 20px;
        justify-content: center;
    }
    
    .data-packet {
        animation: flow-vertical 4s infinite;
    }

    @keyframes flow-vertical {
        0% { top: 0; opacity: 1; }
        40% { top: 100%; opacity: 0; }
        100% { top: 100%; opacity: 0; }
    }
}

/* Mobile hero & carousel adjustments */
@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    section {
        padding: 56px 0;
    }

    .hero, .carousel-container {
        height: auto;
        min-height: 70vh;
    }

    .hero-content,
    .os-intro-content {
        max-width: 100%;
    }

    .hero p,
    .intro-desc,
    .feature-block p,
    .dev-text p {
        font-size: 1rem;
    }

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

    .feature-block {
        margin-bottom: 80px;
    }

    .feature-block h3,
    .spotlight-content h3,
    .dev-text h2 {
        font-size: 1.9rem;
    }

    .feature-visual {
        min-height: 260px;
        padding: 20px;
    }

    .hardware-gallery {
        height: 240px;
    }

    .hg-card {
        width: 160px;
        height: 220px;
        padding: 16px;
    }

    .hg-card.next {
        transform: translate(10%, -50%) scale(0.76) rotateY(-26deg);
    }

    .hg-card.prev {
        transform: translate(-110%, -50%) scale(0.76) rotateY(26deg);
    }

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

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

    .about-brand-title {
        align-items: center;
    }

    .footer-grid {
        gap: 24px;
    }
}

/* Responsive tables */
@media (max-width: 768px) {
    .specs-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .specs-table table { width: 100%; }
}

/* New Hardware Gallery */
.hardware-gallery {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hg-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.hg-card {
    position: absolute;
    width: 200px;
    height: 260px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    cursor: pointer;
}

.hg-card:hover {
    border-color: var(--secondary-color);
    transform: translate(-50%, -52%) scale(1.02);
    box-shadow: 0 14px 34px rgba(2,6,23,0.45);
}
.hg-card:active {
    transform: translate(-50%, -48%) scale(0.99);
}

.hg-card.active {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--primary-color);
    background: var(--primary-surface);
    box-shadow: 0 0 30px rgba(30, 123, 234, 0.22);
}

.hg-card.next {
    z-index: 5;
    transform: translate(20%, -50%) scale(0.85) rotateY(-30deg);
    opacity: 0.6;
    background: #000;
}

.hg-card.prev {
    z-index: 5;
    transform: translate(-120%, -50%) scale(0.85) rotateY(30deg);
    opacity: 0.6;
    background: #000;
}

.hg-content {
    z-index: 2;
    text-align: center;
}

.hg-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hg-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.hg-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    color: #ccc;
}

.hg-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    z-index: 1;
}



/* Link Arrow Style */
.cta-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: gap 0.3s;
}

.cta-link-arrow:hover {
    gap: 15px;
    text-shadow: 0 0 10px var(--primary-color);
}

.os-intro-section h2,
.feature-block h3,
.text-gradient,
body.theme-light .os-intro-section h2 {
    background-clip: text;
}

/* Helper Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* About Page */
.about-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 30px;
    align-items: stretch;
}

.about-story-card,
.about-brochure-card,
.contact-card,
.location-card {
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.about-story-card,
.contact-card,
.location-card {
    padding: 36px;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--primary-surface);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-story-card h3,
.contact-card h3,
.location-card h3 {
    margin-bottom: 18px;
}

.about-story-card p + p {
    margin-top: 14px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.about-tags .badge {
    background: var(--primary-surface);
    color: var(--primary-color);
    border-color: transparent;
}

.about-brochure-card {
    padding: 14px;
    overflow: hidden;
}

.about-brochure-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.about-location-center {
    display: flex;
    justify-content: center;
}

.location-card-centered {
    width: min(100%, 980px);
}

.location-card-centered h3 {
    text-align: center;
}

.about-contact-list,
.about-location-list {
    display: grid;
    gap: 16px;
}

.about-contact-list li,
.about-vision {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.about-contact-list i,
.about-vision i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 4px;
    text-align: center;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.location-card-intro {
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
}

.about-map-panel {
    padding: 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(30, 123, 234, 0.12), rgba(30, 123, 234, 0.02) 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.92));
    border: 1px solid rgba(30, 123, 234, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.about-map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.about-map-dot,
.about-city-pin {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 10px;
}

.about-map-dot-rd {
    background: #1e7bea;
    box-shadow: 0 0 0 4px rgba(30, 123, 234, 0.18);
}

.about-map-dot-mfg {
    background: #26b37e;
    box-shadow: 0 0 0 4px rgba(38, 179, 126, 0.16);
}

.about-map-canvas {
    position: relative;
    min-height: 520px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.24)),
        linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(237, 244, 255, 0.98));
}

.about-map-canvas::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(30, 123, 234, 0.12);
}

.about-map-svg {
    position: absolute;
    inset: 28px 32px 28px 32px;
    width: 100%;
    height: 100%;
}

.about-map-outline {
    fill: url(#chinaMapFill);
    stroke: rgba(30, 123, 234, 0.4);
    stroke-width: 4;
    filter: drop-shadow(0 20px 32px rgba(30, 123, 234, 0.1));
}

.about-map-sub-outline {
    fill: rgba(220, 233, 255, 0.95);
    stroke: rgba(30, 123, 234, 0.3);
    stroke-width: 3;
}

.about-map-detail {
    fill: none;
    stroke: rgba(110, 154, 220, 0.28);
    stroke-width: 2;
    stroke-linecap: round;
}

.about-map-route {
    fill: none;
    stroke: rgba(16, 24, 40, 0.35);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 9 9;
}

.about-city-marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.about-city-pin {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.72);
}

.about-city-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    color: #101828;
    line-height: 1.2;
    backdrop-filter: blur(10px);
}

.about-city-label strong {
    font-size: 1rem;
}

.about-city-label span {
    font-size: 0.82rem;
    color: #475467;
}

.city-beijing {
    top: 20%;
    left: 59%;
}

.city-shanghai {
    top: 45%;
    left: 66%;
}

.city-liuzhou {
    top: 58%;
    left: 42%;
}

.city-shenzhen {
    top: 74%;
    left: 54%;
}

.about-location-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.about-location-summary span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-surface-2);
    border: 1px solid var(--primary-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-vision {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--primary-surface-2);
    border: 1px solid var(--primary-border);
}

.location-card-centered .about-vision {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .about-map-canvas {
        min-height: 420px;
    }

    .about-map-svg {
        inset: 24px 20px;
    }

    .about-city-marker {
        gap: 8px;
    }

    .about-city-label {
        padding: 7px 10px;
    }

    .city-beijing {
        top: 23%;
        left: 53%;
    }

    .city-shanghai {
        top: 45%;
        left: 60%;
    }

    .city-liuzhou {
        top: 59%;
        left: 30%;
    }

    .city-shenzhen {
        top: 74%;
        left: 42%;
    }
}

/* --- New Additions for Account & Checkout --- */

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Auth Page */
.auth-container {
    max-width: 480px;
    width: 90%;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    color: #888;
    transition: all 0.3s;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
}

/* Account Page Layout */
.account-layout {
    display: flex;
    gap: 40px;
    margin-top: 120px;
    margin-bottom: 60px;
    min-height: 60vh;
}

.account-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.user-mini-profile {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    color: #ccc;
    transition: all 0.2s;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
}

.account-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Order List */
.order-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
}

.status-paid { background: var(--success-surface); color: var(--success-color); border: 1px solid rgba(34, 197, 94, 0.3); }
.status-pending { background: rgba(255, 165, 0, 0.15); color: orange; }

/* Checkout Page */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.checkout-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-summary {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.address-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: rgba(0,0,0,0.2);
}

.address-card:hover {
    border-color: var(--primary-color);
}

.address-card.selected {
    border-color: var(--primary-color);
    background: rgba(0, 242, 255, 0.05);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .account-layout { flex-direction: column; }
    .account-sidebar { width: 100%; }
    .checkout-grid { grid-template-columns: 1fr; }
    .about-profile-grid,
    .about-contact-grid,
    .location-columns {
        grid-template-columns: 1fr;
    }
    .about-story-card,
    .contact-card,
    .location-card {
        padding: 28px;
    }
    .about-brochure-image {
        min-height: 360px;
    }
    .about-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .about-actions .btn,
    .about-actions .cta-button {
        text-align: center;
    }
}

/* =========================================
   Exploded View Styles (Product Page)
   ========================================= */
.exploded-view-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exploded-view-container {
    width: 300px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-20deg);
    transition: transform 0.5s ease;
}

.exploded-view-wrapper:hover .exploded-view-container {
    transform: rotateX(0deg) rotateY(0deg);
}

.ev-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: transform 0.5s ease, opacity 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ev-layer-battery { transform: translateZ(-60px); opacity: 0.8; }
.ev-layer-circuit { transform: translateZ(-20px); opacity: 0.9; }
.ev-layer-frame   { transform: translateZ(20px); opacity: 1; border-color: var(--primary-color); }
.ev-layer-lens    { transform: translateZ(60px); opacity: 0.9; background: rgba(0, 242, 255, 0.1); }

.exploded-view-wrapper:hover .ev-layer-battery { transform: translateZ(-120px); }
.exploded-view-wrapper:hover .ev-layer-circuit { transform: translateZ(-40px); }
.exploded-view-wrapper:hover .ev-layer-frame   { transform: translateZ(40px); }
.exploded-view-wrapper:hover .ev-layer-lens    { transform: translateZ(120px); }

.ev-label {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exploded-view-wrapper:hover .ev-label {
    opacity: 1;
}

.ev-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: #aaa;
    pointer-events: none;
    opacity: 0.7;
}

.ev-instruction i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .exploded-view-wrapper {
        height: 300px;
    }
    .exploded-view-container {
        width: 240px;
        height: 160px;
    }
}

body.theme-light {
    --bg-color: #f7f9fc;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --heading-color: #0b1220;
    --border-color: #e2e8f0;
    --section-bg: #f8fafc;
    --text-muted: #64748b;
    --shadow-light: 0 8px 24px rgba(15, 23, 42, 0.06);
    background-color: var(--bg-color);
    color: var(--text-color);
}
body.theme-light header {
    background-color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
body.theme-light .hero {
    background: radial-gradient(circle at center, var(--card-bg) 0%, var(--brand-bg-tint) 55%, var(--bg-color) 100%);
}
body.theme-light .hero p { color: var(--text-muted); }
body.theme-light .hero-bg-grid {
    background-image: linear-gradient(var(--brand-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-grid-line) 1px, transparent 1px);
}
body.theme-light .dot { background-color: rgba(15, 23, 42, 0.16); }
body.theme-light .os-intro-section { background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%); }
body.theme-light .os-intro-section h2 {
    background: linear-gradient(to right, #0b1220, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.theme-light .intro-subtitle { color: #0f172a; opacity: 0.85; }
body.theme-light .intro-desc { color: #334155; }
body.theme-light .intro-desc strong { color: #0b1220; }
body.theme-light .intro-tag {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
body.theme-light .intro-tag span { color: #0f172a; }
body.theme-light .itr-connector { background: rgba(15, 23, 42, 0.12); color: rgba(15, 23, 42, 0.35); }
body.theme-light .eco-item { background: rgba(15, 23, 42, 0.04); }
body.theme-light .eco-item:hover { background: rgba(15, 23, 42, 0.07); }
body.theme-light .eco-item.disabled:hover { background: rgba(15, 23, 42, 0.04); }
body.theme-light .scenario-card { border: 1px solid rgba(15, 23, 42, 0.1); }
body.theme-light .scenario-content {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}
body.theme-light .scenario-content p { color: #334155; }
body.theme-light .dev-text p { color: #334155; }
body.theme-light .dev-icons { color: rgba(15, 23, 42, 0.5); }
body.theme-light .dev-icons i:hover { color: #0f172a; }
body.theme-light .dev-code {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
body.theme-light .code-header { border-bottom: 1px solid rgba(15, 23, 42, 0.12); }
body.theme-light .code-header span:last-child { color: #64748b; }
body.theme-light .dev-code pre { color: #0f172a; }
body.theme-light .code-header .red { background-color: #ff5f56; }
body.theme-light .code-header .yellow { background-color: #ffbd2e; }
body.theme-light .code-header .green { background-color: #27c93f; }
body.theme-light footer {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
body.theme-light footer p,
body.theme-light footer a,
body.theme-light .copyright { color: #475569; }
body.theme-light .footer-col h4 { color: #0b1220; }
body.theme-light .footer-wechat-trigger {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
}
body.theme-light .footer-wechat-popover::after {
    border-right-color: rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
body.theme-light .footer-wechat-popover {
    border-color: rgba(15, 23, 42, 0.08);
}
body.theme-light .feature-visual {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
body.theme-light .bg-section-dark { background: var(--bg-color); }
body.theme-light .bg-section-light { background-color: #ecf1f7; }
body.theme-light .features-section { background: #ffffff; }
body.theme-light .feature-block h3 { background: none; -webkit-text-fill-color: initial; color: #0b1220; }
body.theme-light .feature-block p { color: #334155; }
body.theme-light .feature-list li { color: #334155; }
body.theme-light .metric-label { color: #64748b; }
body.theme-light .form-label { color: #0f172a; }
body.theme-light .form-control {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
body.theme-light .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #ffffff;
    outline: none;
}
body.theme-light .form-control::placeholder {
    color: #94a3b8;
}
body.theme-light input, 
body.theme-light textarea, 
body.theme-light select {
    background-color: #ffffff;
    color: #0f172a;
    border-color: var(--border-color);
}
body.theme-light input::placeholder, 
body.theme-light textarea::placeholder {
    color: #94a3b8;
}
body.theme-light .hg-card {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}
body.theme-light .hg-card.active {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.18);
}
body.theme-light .hg-card.next,
body.theme-light .hg-card.prev { background: #ffffff; }
body.theme-light .hg-card h4 { color: #0f172a; }
body.theme-light .hg-tag { background: rgba(15, 23, 42, 0.06); color: #334155; }
body.theme-light .hg-btn {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
}
body.theme-light .hg-btn:hover { background: var(--primary-color); color: var(--on-primary); }
body.theme-light .eco-core {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
}
body.theme-light .orbit-ring { border-color: rgba(15, 23, 42, 0.15); }
body.theme-light .ring-3 { border-color: rgba(15, 23, 42, 0.08); }
body.theme-light .orbiter {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}
body.theme-light .orb-label { color: #64748b; }

/* --- Idea to Reality: Updated Components (New) --- */

/* 1. Left: Inspiration Reached */
.inspiration-container {
    width: 90px;
    height: 90px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Subtle glow background */
    background: radial-gradient(circle, rgba(255, 223, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.inspiration-container i {
    font-size: 3rem;
    color: #ffd700; /* Gold */
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    z-index: 2;
    animation: bulb-pulse 2.5s ease-in-out infinite;
}

.bulb-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 60%);
    opacity: 0.6;
    animation: glow-expand 2.5s ease-in-out infinite alternate;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px #fff, 0 0 8px rgba(255, 215, 0, 0.8);
    opacity: 0;
}

.sparkle.s1 { top: 20%; left: 80%; animation: sparkle-flash 2s infinite 0.2s; }
.sparkle.s2 { top: 10%; left: 30%; animation: sparkle-flash 2.5s infinite 0.5s; }
.sparkle.s3 { top: 50%; left: 10%; animation: sparkle-flash 2.2s infinite 0.8s; }

@keyframes bulb-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8)); }
}

@keyframes glow-expand {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes sparkle-flash {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* 2. Center: Floatair Logo */
.logo-container {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.itr-logo {
    width: 110px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(30, 123, 234, 0.5));
    animation: logo-float 4s ease-in-out infinite;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid rgba(30, 123, 234, 0.4);
    opacity: 0;
    animation: logo-ring-pulse 3s infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes logo-ring-pulse {
    0% { width: 110px; height: 110px; opacity: 0.8; border-color: rgba(30, 123, 234, 0.6); }
    100% { width: 170px; height: 170px; opacity: 0; border-color: rgba(30, 123, 234, 0); }
}

/* 3. Right: Scenario Card Preview */
.scenario-card-preview {
    width: 150px;
    height: 95px;
    background: rgba(0, 20, 0, 0.85);
    border: 1px solid #00ff00;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.scenario-card-preview:hover {
    transform: translateY(-5px);
    border-color: #33ff33;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    background: rgba(0, 30, 0, 0.9);
}

.scenario-card-preview h4 {
    font-size: 0.8rem;
    margin: 0;
    color: #00ff00;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.scenario-card-preview h4 i {
    color: #00ff00;
    font-size: 0.85rem;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
}

.trans-source {
    font-size: 0.7rem;
    color: rgba(0, 255, 0, 0.7);
    font-family: 'Courier New', Courier, monospace;
}

.trans-target {
    font-size: 0.85rem;
    color: #00ff00;
    font-weight: 500;
    font-family: 'Courier New', Courier, monospace;
}

.card-reflection {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transform: rotate(30deg);
    animation: reflection-sweep 6s infinite;
    pointer-events: none;
}

@keyframes reflection-sweep {
    0% { transform: translateX(-100%) rotate(30deg); }
    20% { transform: translateX(100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}
