/* LW Data Labs - corporate landing styles. Conservative-modern, no animations. */

:root {
    --bg: #0a0e1a;
    --bg-soft: #0e1424;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #e7ecf3;
    --text-muted: #9aa3b2;
    --text-dim: #6b7382;
    --accent: #5b9eff;
    --accent-bright: #8ab9ff;
    --accent-soft: rgba(91, 158, 255, 0.12);
    --grad-1: #5b9eff;
    --grad-2: #c084fc;
    --maxw: 1180px;
    --radius: 14px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 0%, rgba(91, 158, 255, 0.12), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(192, 132, 252, 0.08), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* nav */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white;
    font-weight: 800;
    font-size: 14px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.logo-mark.small { width: 28px; height: 28px; font-size: 11px; }
.logo-text { font-weight: 700; font-size: 17px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text) !important;
    background: var(--surface);
}
.btn-nav:hover {
    background: var(--surface-strong);
    border-color: var(--accent);
}

/* hero */
.hero {
    padding: 120px 0 100px;
}
.hero-container {
    max-width: 880px;
    text-align: center;
}
.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-soft);
    color: var(--accent-bright);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
    border: 1px solid rgba(91, 158, 255, 0.2);
}
h1 {
    font-size: clamp(36px, 5.6vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.grad {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lede {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 40px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.stat-num {
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}
.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary, .btn-ghost {
    display: inline-block;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white;
    border: 1px solid transparent;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(91, 158, 255, 0.3); }
.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--accent); }

/* sections */
section { padding: 100px 0; }

.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--surface);
    color: var(--accent-bright);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-lede {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
}

/* card grid (services) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.2s ease;
    position: relative;
}
.card:hover {
    border-color: var(--border-strong);
    background: var(--surface-strong);
    transform: translateY(-2px);
}
.card-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}
.card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.card-points {
    list-style: none;
    padding: 0;
}
.card-points li {
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 0 8px 22px;
    position: relative;
    border-top: 1px solid var(--border);
}
.card-points li:first-child { border-top: none; }
.card-points li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    transition: all 0.2s ease;
}
.product-card.featured {
    background: linear-gradient(135deg, rgba(91, 158, 255, 0.08), rgba(192, 132, 252, 0.05));
    border-color: rgba(91, 158, 255, 0.25);
}
.product-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.product-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 16px;
}
.product-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}
.product-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}
.product-link {
    color: var(--accent-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-link::after { content: ' \2192'; }
.product-link:hover { color: var(--accent); }

/* about */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}
.about-text h2 { margin-top: 12px; }
.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-facts {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.about-facts h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 20px;
}
.about-facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 14px 20px; }
.about-facts dt {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}
.about-facts dd {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

/* contact */
.contact { padding-bottom: 120px; }
.contact-container { text-align: center; max-width: 860px; }
.contact-container h2 { margin-bottom: 14px; }
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    text-align: left;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-card:hover {
    border-color: var(--accent);
    background: var(--surface-strong);
    transform: translateY(-2px);
}
.contact-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* footer */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-soft);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-text, .footer-meta {
    font-size: 13px;
    color: var(--text-dim);
}

/* fade-up reveal (script.js attaches .reveal then .reveal-in) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-in {
    opacity: 1;
    transform: translateY(0);
}
/* honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn-primary, .btn-ghost, .btn-nav { transition: none !important; }
}

/* magnetic buttons need transform transition for the snap-back */
.btn-primary, .btn-ghost, .btn-nav {
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
    will-change: transform;
}

/* responsive */
@media (max-width: 820px) {
    .nav-links a:not(.btn-nav) { display: none; }
    .hero { padding: 80px 0 60px; }
    section { padding: 70px 0; }
    .hero-stats { gap: 28px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-container { flex-direction: column; text-align: center; }
}
