/* ===== SCADA.Coating Landing — Style ===== */

:root {
    /* Dark palette */
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1420;
    --bg-card: #141a2a;
    --bg-card-hover: #1a2236;
    --bg-surface: #1e2640;
    --border: #1e2a42;
    --border-light: #2a3654;

    /* Text */
    --text-primary: #e8ecf4;
    --text-secondary: #8b95ad;
    --text-dim: #5a657e;

    /* Accent */
    --accent: #4da8ff;
    --accent-dim: #2b5a8f;
    --accent-glow: rgba(77, 168, 255, 0.15);
    --accent-gradient: linear-gradient(135deg, #4da8ff, #6dd5fa);

    /* Status */
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;

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

    /* Spacing */
    --section-py: 100px;
    --container-px: 24px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #6dc0ff; }
img { max-width: 100%; display: block; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    text-decoration: none;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(77, 168, 255, 0.3);
}
.btn-primary:hover {
    background: #5eb5ff;
    box-shadow: 0 6px 30px rgba(77, 168, 255, 0.45);
    transform: translateY(-1px);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(77, 168, 255, 0.05);
}
.btn-accent {
    background: linear-gradient(135deg, #4da8ff 0%, #6dd5fa 100%);
    color: #0a0e17;
    font-weight: 700;
    box-shadow: 0 4px 24px rgba(77, 168, 255, 0.35);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(77, 168, 255, 0.5);
    color: #0a0e17;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
}
.logo-icon { color: var(--accent); display: flex; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
.logo-dot { color: var(--accent); }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    z-index: 99;
    flex-direction: column;
    gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 168, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 168, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}
.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(77, 168, 255, 0.08) 0%, transparent 70%);
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: rgba(77, 168, 255, 0.06);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 2px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ===== Sections ===== */
.section { padding: var(--section-py) 0; }
.section-dark { background: var(--bg-secondary); }
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Partners ===== */
.partners-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.partners-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.partner-logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dim);
    opacity: 0.5;
    transition: opacity 0.3s;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.partner-logo:hover {
    opacity: 0.8;
}

/* ===== Problems ===== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}
.problem-card:hover {
    border-color: var(--danger);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(248, 113, 113, 0.1);
}
.problem-icon {
    color: var(--danger);
    margin-bottom: 20px;
}
.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.problem-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(77, 168, 255, 0.08);
}
.feature-card-large {
    grid-column: span 1;
}
.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon-sm {
    width: 42px;
    height: 42px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.feature-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.feature-tags span {
    padding: 4px 10px;
    background: rgba(77, 168, 255, 0.08);
    border: 1px solid rgba(77, 168, 255, 0.15);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

/* ===== Demo ===== */
.demo-frame-wrap {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.demo-frame-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.demo-dots {
    display: flex;
    gap: 6px;
}
.demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}
.demo-dots span:first-child { background: #f87171; }
.demo-dots span:nth-child(2) { background: #fbbf24; }
.demo-dots span:last-child { background: #4ade80; }
.demo-url {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}
.demo-fullscreen {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.demo-fullscreen:hover { color: var(--accent); }
.demo-frame-body {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
}
.demo-frame-body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    filter: blur(4px);
    transition: filter 0.3s;
    height: 100%;
    border: none;
}

.demo-tour-wrap {
    text-align: center;
    margin-top: 32px;
}
.demo-tour-hint {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 10px;
}

/* ===== Advantages ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    position: relative;
}
.advantage-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(77, 168, 255, 0.08);
}
.advantage-number {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 800;
    color: rgba(77, 168, 255, 0.12);
    margin-bottom: 16px;
    line-height: 1;
}
.advantage-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.advantage-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Architecture ===== */
.arch-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.arch-layer {
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.arch-layer-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}
.arch-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.arch-item {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.arch-item-name {
    font-size: 14px;
    font-weight: 600;
}
.arch-item-tech {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
}
.arch-connector {
    color: var(--border-light);
    padding: 4px 0;
}

/* ===== Partnership ===== */
.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.partnership-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}
.partnership-seeking {
    border-color: var(--warning);
    border-width: 1.5px;
}
.partnership-offering {
    border-color: var(--success);
    border-width: 1.5px;
}
.partnership-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}
.partnership-seeking .partnership-card-title { color: var(--warning); }
.partnership-offering .partnership-card-title { color: var(--success); }
.partnership-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.partnership-list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.partnership-list li strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.partnership-list li span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.partnership-result {
    margin-top: 24px;
    padding: 20px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-sm);
}
.partnership-result h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 8px;
}
.partnership-result p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Audience ===== */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s;
}
.audience-card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(77, 168, 255, 0.08);
}
.audience-icon {
    color: var(--accent);
    margin-bottom: 24px;
}
.audience-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.audience-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.audience-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.audience-benefits li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}
.audience-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* ===== Team ===== */
.team-content {
    display: flex;
    gap: 48px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.team-photo-wrap {
    flex-shrink: 0;
}
.team-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}
.team-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}
.team-role {
    font-size: 15px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
}
.team-bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.team-experience {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.exp-item {
    display: flex;
    flex-direction: column;
}
.exp-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.exp-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ===== CTA ===== */
.section-cta {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0d1525 50%, var(--bg-primary) 100%);
    padding: 120px 0;
}
.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cta-hint {
    font-size: 13px;
    color: var(--text-dim);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-company-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-company-link:hover { color: var(--text-primary); }
.team-role a, .cta-hint a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.team-role a:hover, .cta-hint a:hover { color: var(--text-primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .problems-grid,
    .advantages-grid,
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root { --section-py: 60px; }

    .nav-links { display: none; }
    .nav .btn { display: none; }
    .nav-burger { display: flex; }

    .problems-grid,
    .advantages-grid,
    .audience-grid,
    .partnership-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider { width: 40px; height: 1px; }

    .team-content {
        flex-direction: column;
        text-align: center;
    }
    .team-experience { justify-content: center; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .demo-frame-body {
        padding-bottom: 75%; /* taller on mobile */
    }

    .arch-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: -0.5px; }
    .demo-controls { flex-direction: column; align-items: stretch; }
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
