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

:root {
    --bg: #0a0e1a;
    --bg-alt: #0f1420;
    --bg-card: #151b2b;
    --bg-card-hover: #1a2138;
    --text: #e8ecf4;
    --text-dim: #9aa5b8;
    --text-muted: #6b7689;
    --border: #1e2640;
    --border-light: #2a3552;
    --primary: #4f7cff;
    --primary-glow: rgba(79, 124, 255, 0.4);
    --accent: #00d4a0;
    --red: #ff4757;
    --yellow: #ffa502;
    --green: #2ed573;
    --orange: #ff7f50;
    --blue: #5352ed;
    --radius: 14px;
    --radius-sm: 8px;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}
#navbar.scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 26, 0.95); }

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

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.logo-mark { display: inline-flex; gap: 4px; }
.logo-mark .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.logo-mark .red { background: var(--red); box-shadow: 0 0 8px rgba(255,71,87,0.5); }
.logo-mark .yellow { background: var(--yellow); box-shadow: 0 0 8px rgba(255,165,2,0.5); }
.logo-mark .green { background: var(--green); box-shadow: 0 0 8px rgba(46,213,115,0.5); }
.logo-text { color: var(--text); }
.logo-accent { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
    transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
    background: var(--primary); color: #fff; padding: 8px 18px;
    border-radius: 8px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #3d6bf5; color: #fff; }

.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); border-radius: 2px; transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
}

.hero-video-bg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    background-color: var(--bg-alt);
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(10,14,26,0.75) 0%, rgba(10,14,26,0.85) 50%, rgba(10,14,26,0.75) 100%);
}

.hero-content-overlay {
    position: relative; z-index: 5; max-width: 760px; padding: 24px;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(46,213,115,0.1); border: 1px solid rgba(46,213,115,0.3);
    color: var(--green); padding: 7px 16px; border-radius: 100px;
    font-size: 0.82rem; font-weight: 600; margin-bottom: 28px;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 0 rgba(46,213,115,0.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46,213,115,0.5); }
    70% { box-shadow: 0 0 0 10px rgba(46,213,115,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,213,115,0); }
}

.hero-title { 
    font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; 
    letter-spacing: -0.03em; margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.hero-subtitle { 
    font-size: 1.15rem; color: var(--text-dim); max-width: 620px; margin: 0 auto 36px; line-height: 1.7;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: none; transition: all 0.25s; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px var(--primary-glow); }
.btn-primary:hover { background: #3d6bf5; transform: translateY(-2px); box-shadow: 0 6px 28px var(--primary-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-ghost:hover { background: var(--bg-card); border-color: var(--primary); }
.btn-light { background: #fff; color: var(--bg); }
.btn-light:hover { background: #f0f2f8; transform: translateY(-2px); }
.btn-full { width: 100%; }

.hero-stats { display: none; }

@media (max-width: 768px) {
    #hero { min-height: 60vh; }
    .hero-title { font-size: clamp(1.8rem, 5vw, 2.4rem); }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .btn { width: 100%; }
}

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

.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag {
    display: inline-block; font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary);
    margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-lead { font-size: 1.08rem; color: var(--text-dim); line-height: 1.7; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.problem-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 36px 28px; text-align: center; transition: all 0.3s;
}
.problem-card:hover { border-color: var(--red); transform: translateY(-4px); }
.problem-icon { font-size: 2.4rem; margin-bottom: 18px; }
.problem-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.problem-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }

.problem-bridge {
    text-align: center; padding: 28px 40px;
    background: linear-gradient(135deg, rgba(79,124,255,0.08), rgba(0,212,160,0.08));
    border: 1px solid var(--border-light); border-radius: var(--radius);
}
.problem-bridge p { font-size: 1.15rem; font-weight: 600; color: var(--accent); }

.tms-dashboard-mock { max-width: 960px; margin: 0 auto 48px; }
.mock-window {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mock-titlebar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; } .mock-dot.yellow { background: #ffbd2e; } .mock-dot.green { background: #28c941; }
.mock-title { margin-left: 12px; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

.mock-body { display: flex; min-height: 380px; }
.mock-sidebar {
    width: 180px; background: var(--bg-alt); border-right: 1px solid var(--border);
    padding: 16px 0; flex-shrink: 0;
}
.mock-side-item {
    padding: 10px 20px; font-size: 0.85rem; color: var(--text-dim); cursor: default;
    border-left: 3px solid transparent; transition: 0.2s;
}
.mock-side-item.active { color: var(--primary); border-left-color: var(--primary); background: rgba(79,124,255,0.05); }

.mock-main { flex: 1; padding: 20px; }
.mock-cards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.mock-kpi {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.mock-kpi.green { border-color: rgba(46,213,115,0.3); }
.mock-kpi.red { border-color: rgba(255,71,87,0.3); }
.mock-kpi.yellow { border-color: rgba(255,165,2,0.3); }
.mock-kpi.blue { border-color: rgba(83,82,237,0.3); }
.mock-kpi-num { font-size: 1.4rem; font-weight: 800; }
.mock-kpi.green .mock-kpi-num { color: var(--green); }
.mock-kpi.red .mock-kpi-num { color: var(--red); }
.mock-kpi.yellow .mock-kpi-num { color: var(--yellow); }
.mock-kpi.blue .mock-kpi-num { color: var(--blue); }
.mock-kpi-label { font-size: 0.7rem; color: var(--text-muted); }

.mock-map {
    position: relative; height: 220px; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background-image:
        linear-gradient(rgba(79,124,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,124,255,0.04) 1px, transparent 1px);
    background-size: 30px 30px; overflow: hidden;
}
.map-pin {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    transform: translate(-50%, -50%);
}
.map-pin.ok { background: var(--green); box-shadow: 0 0 8px rgba(46,213,115,0.6); }
.map-pin.alert { background: var(--red); box-shadow: 0 0 8px rgba(255,71,87,0.6); animation: blink 1.5s infinite; }
.map-pin.warn { background: var(--yellow); box-shadow: 0 0 8px rgba(255,165,2,0.6); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.mock-map-label {
    position: absolute; bottom: 10px; right: 14px;
    font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
}

.tms-result {
    text-align: center; max-width: 720px; margin: 0 auto;
    padding: 28px; background: linear-gradient(135deg, rgba(0,212,160,0.06), rgba(79,124,255,0.06));
    border: 1px solid var(--border-light); border-radius: var(--radius);
}
.tms-result p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.7; }
.tms-result strong { color: var(--text); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 28px; position: relative; transition: all 0.3s; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.feature-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card-wide { grid-column: span 3; }
.feature-num {
    position: absolute; top: 20px; right: 24px; font-size: 2.5rem; font-weight: 900;
    color: var(--border-light); line-height: 1;
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.65; }

.layers-grid {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px;
    align-items: stretch; max-width: 920px; margin: 0 auto;
}
.layer-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s;
}
.layer-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.layer-header { padding: 24px 28px; }
.layer-header-red { background: linear-gradient(135deg, rgba(255,71,87,0.12), transparent); border-bottom: 2px solid rgba(255,71,87,0.3); }
.layer-header-orange { background: linear-gradient(135deg, rgba(255,165,2,0.12), transparent); border-bottom: 2px solid rgba(255,165,2,0.3); }
.layer-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); display: block; margin-bottom: 6px; }
.layer-header h3 { font-size: 1.25rem; font-weight: 700; }
.layer-body { padding: 24px 28px; }
.layer-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 18px; line-height: 1.65; }
.layer-list { margin-bottom: 20px; }
.layer-list li {
    padding: 8px 0 8px 24px; color: var(--text-dim); font-size: 0.9rem;
    position: relative; border-bottom: 1px solid var(--border);
}
.layer-list li::before {
    content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.layer-action {
    padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 600; color: var(--accent);
}
.layer-vs {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border);
    width: 48px; height: 48px; border-radius: 50%; align-self: center;
}
.layers-note {
    text-align: center; max-width: 680px; margin: 40px auto 0;
    padding: 20px; border: 1px dashed var(--border-light); border-radius: var(--radius);
}
.layers-note p { color: var(--text-dim); font-size: 0.98rem; }

.perm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perm-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; text-align: center; transition: all 0.3s;
}
.perm-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.perm-role { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; color: var(--primary); }
.perm-icon { font-size: 2rem; margin-bottom: 14px; }
.perm-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; }

.export-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.export-badge {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 32px; min-width: 140px; transition: all 0.3s;
}
.export-badge:hover { border-color: var(--accent); transform: translateY(-4px); }
.ext {
    font-size: 1.3rem; font-weight: 800; padding: 8px 18px; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--border-light); letter-spacing: 0.05em;
}
.ext-label { font-size: 0.82rem; color: var(--text-dim); }

.report-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.report-type {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: all 0.3s;
}
.report-type:hover { border-color: var(--border-light); transform: translateY(-4px); }
.report-type h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.report-type p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

.indigo-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.indigo-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 18px; }
.indigo-text p { color: var(--text-dim); margin-bottom: 16px; line-height: 1.7; }
.indigo-text .btn { margin-top: 12px; }

.indigo-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.indigo-card-row { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.indigo-card-row:last-child { border-bottom: none; padding-bottom: 0; }
.indigo-flag, .indigo-emoji { font-size: 1.8rem; flex-shrink: 0; }
.indigo-card-row strong { display: block; font-size: 1rem; }
.indigo-card-row p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.contact-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-left h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 18px; }
.contact-left p { color: var(--text-dim); margin-bottom: 28px; line-height: 1.7; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.contact-icon { font-size: 1.2rem; }
.contact-item a { color: var(--primary); }
.contact-item a:hover { text-decoration: underline; }

.contact-form {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.form-group input, .form-group textarea {
    background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.92rem;
    transition: border-color 0.2s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 0.85rem; text-align: center; min-height: 1.2em; }
.form-note.success { color: var(--green); }
.form-note.error { color: var(--red); }

footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--text); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

@media (max-width: 900px) {
    .nav-links {
        position: fixed; top: 68px; left: 0; right: 0;
        background: rgba(10,14,26,0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 24px; gap: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%); transition: transform 0.3s; z-index: 999;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-toggle { display: flex; }

    .problem-grid, .features-grid, .report-types { grid-template-columns: 1fr; }
    .feature-card-wide { grid-column: span 1; }
    .layers-grid { grid-template-columns: 1fr; }
    .layer-vs { margin: 0 auto; }
    .perm-grid { grid-template-columns: repeat(2, 1fr); }
    .indigo-block, .contact-block { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mock-body { flex-direction: column; }
    .mock-sidebar { width: 100%; display: flex; gap: 4px; padding: 8px; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
    .mock-side-item { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; padding: 8px 14px; }
    .mock-side-item.active { border-bottom-color: var(--primary); border-left-color: transparent; }
    .mock-cards-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .section { padding: 64px 0; }
    .hero-stats { gap: 24px; }
    .perm-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .mock-cards-row { grid-template-columns: 1fr; }
}