/* === Base === */
:root {
    --midnight: #0a0e1a;
    --deep-blue: #0f1629;
    --titanium: #1a1f35;
    --steel: #2a3050;
    --silver: #8892b0;
    --light: #ccd6f6;
    --white: #e6f1ff;
    --accent: #3b82f6;
    --accent-dim: #1d4ed8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--midnight);
    color: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--white); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 12px; }
p { color: var(--silver); font-size: 1.05rem; }

.section-sub { color: var(--silver); margin-bottom: 48px; font-size: 1.05rem; max-width: 700px; }

/* === Nav === */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 20px 0; transition: all 0.3s;
}
nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}
.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.25em; color: var(--white); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--silver); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.btn-nav {
    background: var(--accent) !important; color: var(--white) !important;
    padding: 8px 20px; border-radius: 6px; font-weight: 500 !important;
}
.btn-nav:hover { background: var(--accent-dim) !important; }
.mobile-menu { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.mobile-menu span { width: 24px; height: 2px; background: var(--light); transition: 0.3s; }

/* === Hero === */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hero-tag {
    font-size: 0.85rem; font-weight: 500; color: var(--accent);
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: 1.1rem; line-height: 1.7; margin-bottom: 40px; max-width: 580px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
    display: inline-block; background: var(--accent); color: var(--white);
    padding: 14px 32px; border-radius: 6px; text-decoration: none;
    font-weight: 500; font-size: 0.95rem; transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-secondary {
    display: inline-block; color: var(--silver); padding: 14px 32px;
    border: 1px solid var(--steel); border-radius: 6px; text-decoration: none;
    font-weight: 500; font-size: 0.95rem; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--silver); color: var(--white); }

/* Globe canvas */
#globeCanvas {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hero flow - horizontal under CTA */
.hero-flow-horizontal {
    display: flex; align-items: center; gap: 0;
    margin-top: 48px; position: relative; z-index: 1;
}
.flow-step {
    display: flex; align-items: center; gap: 0;
}
.flow-node {
    font-size: 0.8rem; font-weight: 600; color: var(--silver);
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 14px 28px; border: 1px solid var(--steel); border-radius: 8px;
    background: rgba(15, 22, 41, 0.9); backdrop-filter: blur(10px);
    transition: all 0.3s; white-space: nowrap;
}
.flow-node:hover { border-color: var(--silver); color: var(--white); }
.flow-node.active {
    border-color: var(--accent); color: var(--accent);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}
.flow-arrow {
    color: var(--steel); display: flex; align-items: center;
    padding: 0 4px;
}

#heroCanvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* === Problem === */
.problem {
    padding: 80px 0;
    border-top: 1px solid rgba(42, 48, 80, 0.5);
    border-bottom: 1px solid rgba(42, 48, 80, 0.5);
}
.problem-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.stat-number { display: block; font-size: 3.5rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 1rem; color: var(--silver); }
.problem-text p { margin-bottom: 16px; font-size: 1.1rem; line-height: 1.7; }

/* === Capabilities === */
.capabilities { padding: 100px 0; background: var(--deep-blue); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
    background: var(--midnight); border: 1px solid var(--steel);
    border-radius: 12px; padding: 32px 28px; transition: all 0.3s;
}
.cap-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.cap-number { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px; opacity: 0.7; }
.cap-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.cap-card p { font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.cap-examples {
    font-size: 0.75rem; color: var(--steel); font-style: italic;
    line-height: 1.5; padding-top: 12px; border-top: 1px solid rgba(42, 48, 80, 0.5);
}

/* === Results === */
.results { padding: 100px 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
    background: var(--deep-blue); border: 1px solid var(--steel);
    border-radius: 12px; padding: 32px 28px; transition: all 0.3s;
}
.case-card:hover { border-color: var(--accent); }
.case-metric {
    display: block; font-size: 2.2rem; font-weight: 700; color: var(--accent);
    margin-bottom: 8px;
}
.case-title {
    font-size: 0.85rem; font-weight: 600; color: var(--white);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px;
}
.case-card p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.case-outcome {
    font-size: 0.8rem; color: var(--accent); font-weight: 500;
    padding-top: 12px; border-top: 1px solid rgba(42, 48, 80, 0.5);
}

/* === Testimonial === */
.testimonial { padding: 80px 0; border-top: 1px solid rgba(42, 48, 80, 0.3); }
.testimonial blockquote { max-width: 700px; margin: 0 auto; text-align: center; }
.testimonial p {
    font-size: 1.2rem; font-style: italic; color: var(--light);
    line-height: 1.8; margin-bottom: 20px;
}
.testimonial cite {
    font-size: 0.85rem; color: var(--steel); font-style: normal;
    letter-spacing: 0.05em;
}

/* === About === */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.about-text p { margin-bottom: 20px; line-height: 1.8; }
.about-philosophy {
    font-style: italic; color: var(--accent) !important;
    border-left: 2px solid var(--accent); padding-left: 20px; margin: 28px 0;
}
.credentials { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.credentials span {
    font-size: 0.75rem; font-weight: 600; color: var(--silver);
    padding: 6px 14px; border: 1px solid var(--steel); border-radius: 20px;
    letter-spacing: 0.05em;
}
.companies-label {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--steel); margin-bottom: 16px;
}
.company-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.company-text-grid span {
    font-size: 0.85rem; color: var(--silver); padding: 10px 0;
    border-bottom: 1px solid rgba(42, 48, 80, 0.4);
}

/* === Contact === */
.contact { padding: 100px 0; background: var(--deep-blue); text-align: center; }
.contact-content { max-width: 500px; margin: 0 auto; }
.contact h2 { margin-bottom: 16px; }
.contact p { margin-bottom: 32px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
footer { padding: 60px 0 40px; border-top: 1px solid rgba(42, 48, 80, 0.5); }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-tagline { font-size: 0.8rem; color: var(--steel); margin-top: 8px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--silver); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { color: var(--silver); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(42, 48, 80, 0.3); }
.footer-bottom p { font-size: 0.75rem; color: var(--steel); }

/* === Mobile === */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10, 14, 26, 0.98); flex-direction: column;
        padding: 24px; gap: 16px; border-bottom: 1px solid var(--steel);
    }
    .nav-links.active { display: flex; }
    .mobile-menu { display: flex; }
    .mobile-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu.active span:nth-child(2) { opacity: 0; }
    .mobile-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero { min-height: auto; padding: 140px 24px 80px; }
    .hero-flow-horizontal { flex-wrap: wrap; gap: 8px; }
    .flow-arrow { display: none; }
    .problem-grid { grid-template-columns: 1fr; gap: 32px; }
    .cap-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 1100px) {
    .hero-flow-horizontal { flex-wrap: wrap; gap: 8px; }
    .flow-arrow { display: none; }
    #globeCanvas { display: none; }
}
