/* ============================================
   Energy Brain — Design System & Styles
   Deep-tech dark theme with cyan accents
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Colors */
    --bg-primary: #060a13;
    --bg-secondary: #0a0f1a;
    --bg-card: rgba(13, 19, 33, 0.7);
    --bg-card-hover: rgba(18, 26, 45, 0.85);
    --bg-glass: rgba(13, 223, 242, 0.05);

    --accent: #0ddff2;
    --accent-dim: rgba(13, 223, 242, 0.15);
    --accent-glow: rgba(13, 223, 242, 0.3);
    --accent2: #6366f1;
    --accent3: #22d3ee;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;

    --text-primary: #f0f4f8;
    --text-secondary: #8899aa;
    --text-muted: #556677;

    --border: rgba(13, 223, 242, 0.12);
    --border-hover: rgba(13, 223, 242, 0.3);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1280px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

a:hover {
    color: var(--accent3);
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- Section Tag (small label above titles) ---- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid var(--accent-dim);
    border-radius: 100px;
    background: var(--bg-glass);
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

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

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

.section-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.8;
}

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

.section-header .section-desc {
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6, 10, 19, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-logo span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 3px;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

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

/* Gradient overlays */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 10%, rgba(13, 223, 242, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

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

.hero-content {
    max-width: 720px;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--bg-primary);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(13, 223, 242, 0.4);
    color: var(--bg-primary);
}

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

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero-stat {
    position: relative;
    padding-left: 16px;
}

.hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 2px;
}

.hero-stat-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.hero-stat-number .unit {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 2px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--section-padding);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease-out);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    transition: all 0.4s var(--ease-spring);
    color: var(--accent);
}

.feature-icon i {
    width: 26px;
    height: 26px;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 8px 24px var(--accent-glow);
    transform: scale(1.1) rotate(-5deg);
    color: var(--bg-primary);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   NILM TECHNOLOGY SECTION
   ============================================ */
.technology {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.technology::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.tech-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 72px;
    position: relative;
}

/* Connecting line between steps */
.tech-steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
    opacity: 0.3;
    z-index: 0;
}

.tech-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 20px;
}

.tech-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 0 20px var(--accent-dim);
    transition: all 0.4s var(--ease-out);
}

.tech-step:hover .tech-step-num {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 32px var(--accent-glow);
    transform: scale(1.1);
}

.tech-step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tech-step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Tech Highlights */
.tech-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-highlight {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
}

.tech-highlight:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-dim);
}

.tech-highlight-val {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    text-shadow: 0 0 40px var(--accent-glow);
}

.tech-highlight-val .suffix {
    font-size: 32px;
}

.tech-highlight-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============================================
   AI SECTION
   ============================================ */
.ai-section {
    padding: var(--section-padding);
    position: relative;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ai-chat-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.ai-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ai-chat-name {
    font-weight: 600;
    font-size: 15px;
}

.ai-chat-status {
    font-size: 12px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s ease infinite;
}

.ai-chat-badges {
    display: flex;
    gap: 8px;
}

.ai-chat-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.ai-chat-badge .label {
    color: var(--text-muted);
}

.ai-chat-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-msg {
    display: flex;
    gap: 12px;
    max-width: 90%;
}

.ai-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ai-msg.bot .ai-msg-avatar {
    background: linear-gradient(135deg, var(--accent-dim), var(--accent-glow));
    border: 1px solid var(--accent-dim);
}

.ai-msg.user .ai-msg-avatar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
}

.ai-msg-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.7;
}

.ai-msg.user .ai-msg-bubble {
    background: var(--accent-dim);
    border: 1px solid var(--accent-dim);
    color: var(--text-primary);
}

.ai-msg.bot .ai-msg-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* AI Features List */
.ai-info {
    padding-top: 16px;
}

.ai-info .section-tag {
    margin-bottom: 20px;
}

.ai-info .section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

.ai-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.ai-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.ai-feature-item:hover {
    border-color: var(--accent-dim);
    background: var(--bg-card-hover);
    transform: translateX(8px);
}

.ai-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

.ai-feature-icon i {
    width: 20px;
    height: 20px;
}

.ai-feature-text {
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: var(--section-padding);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(13, 223, 242, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.stat-card {
    text-align: center;
    padding: 48px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-dim), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-dim);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 52px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    position: relative;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    color: var(--text-primary);
    position: relative;
}

.stat-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: var(--font-mono);
    position: relative;
}

/* ============================================
   ARCHITECTURE SECTION
   ============================================ */
.architecture {
    padding: var(--section-padding);
}

.arch-layers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.arch-layer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2));
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.4s;
}

.arch-layer:hover {
    border-color: var(--accent-dim);
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.arch-layer:hover::before {
    opacity: 1;
}

.arch-layer-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    color: var(--accent);
}

.arch-layer-icon i {
    width: 30px;
    height: 30px;
}

.arch-layer-content {
    flex: 1;
}

.arch-layer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.arch-layer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* Connecting arrows between layers */
.arch-arrow {
    text-align: center;
    color: var(--accent);
    font-size: 24px;
    opacity: 0.5;
    animation: float-arrow 2s ease infinite;
}

@keyframes float-arrow {

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

    50% {
        transform: translateY(6px);
    }
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.use-cases {
    padding: var(--section-padding);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.case-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease-out);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transition: transform 0.5s var(--ease-out);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.case-card:hover::after {
    transform: scaleX(1);
}

.case-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.case-icon i {
    width: 48px;
    height: 48px;
}

.case-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   SCREENSHOTS GALLERY SECTION
   ============================================ */
.screenshots-section {
    padding: var(--section-padding);
    position: relative;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.screenshot-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease-out);
}

.screenshot-item:hover {
    border-color: var(--accent-dim);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-dim);
}

.screenshot-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.screenshot-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.screenshot-item:hover .screenshot-img-wrap img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 19, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.screenshot-overlay i {
    width: 32px;
    height: 32px;
    color: var(--accent);
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-info {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.screenshot-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.screenshot-title::before {
    content: '';
    width: 3px;
    height: 16px;
    border-radius: 3px;
    background: var(--accent);
    flex-shrink: 0;
}

.screenshot-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(6, 10, 19, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s var(--ease-spring);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-close i {
    width: 32px;
    height: 32px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--section-padding);
    position: relative;
}

.cta-box {
    text-align: center;
    padding: 80px 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(13, 223, 242, 0.08), rgba(99, 102, 241, 0.08));
    border: 1px solid var(--border-hover);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

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

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-slogan {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow-border {

    0%,
    100% {
        border-color: var(--border);
    }

    50% {
        border-color: var(--accent-dim);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

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

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

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

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

    .tech-steps::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 10, 19, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 50px);
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

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

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

    .tech-steps {
        grid-template-columns: 1fr;
    }

    .tech-highlights {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .arch-layer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .hero {
        padding-top: 100px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .stat-number {
        font-size: 40px;
    }

    .tech-highlight-val {
        font-size: 40px;
    }

    .lang-switcher {
        gap: 0;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}