:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

html.snap-scroll {
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-size: clamp(1rem, 1vw, 1.15rem);
    line-height: 1.6;
    overflow-x: hidden;
}

html.snap-scroll .hero,
html.snap-scroll .section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

html.snap-scroll footer {
    scroll-snap-align: end;
}

/* ─── Container ─── */
.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ─── Typography ─── */
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -1px; }
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--text-main); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); color: var(--accent); margin-bottom: 1rem; }
p {
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

/* ─── Navigation ─── */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1;
}
.logo img { height: clamp(35px, 4vw, 50px); filter: invert(1) brightness(200%); }

.nav-toggle-input { display: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.5vw, 2.5rem);
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    position: relative;
    padding-bottom: 3px;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--text-main); }
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { width: 100%; }

.nav-hamburger { display: none; }

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: clamp(12px, 2vh, 16px) clamp(24px, 3vw, 32px);
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-primary { background-color: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-outline { background-color: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: white; background-color: rgba(255,255,255,0.05); }

/* ─── Hero (Home only) ─── */
.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4vh 20px;
}
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(30,41,59,0.7) 0%, rgba(15,23,42,0.95) 100%);
    z-index: -1;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 span { color: var(--primary); }
.hero p { margin: 0 auto 30px auto; }
.hero-tags { display: flex; justify-content: center; gap: 15px; margin-top: 40px; flex-wrap: wrap; }
.tag {
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
    padding: 5rem 20px 4rem;
    text-align: center;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.8rem; }
.page-hero p { margin: 0 auto; }

/* ─── Snap Sections (Home) ─── */
.section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4vh 20px;
}

/* ─── Inner Sections (non-home pages) ─── */
.inner-section {
    padding: 5rem 20px;
    width: 100%;
}
.inner-section .container { width: 100%; }

/* ─── Section Backgrounds ─── */
.bg-alt { background-color: #162032; }

/* ─── Grids ─── */
.grid-tech { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 30px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 30px; margin-top: 30px; width: 100%; }

/* ─── Cards ─── */
.card {
    background: var(--bg-card);
    padding: clamp(20px, 3vw, 30px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); }

/* ─── Video Pillar ─── */
.video-pillar {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}
.video-pillar video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 37% center; display: block; }

/* ─── Solution Cards ─── */
.solution-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 4px solid var(--primary);
    padding: clamp(20px, 3vh, 40px) clamp(20px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, border-color 0.2s;
}
.solution-card:hover { transform: translateY(-5px); border-top-color: var(--accent); }
.solution-card h3 { margin-bottom: clamp(5px, 1.5vh, 15px); }
.solution-card .subtitle {
    color: var(--text-main); font-weight: 600;
    margin-bottom: clamp(10px, 2vh, 20px);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}
.solution-card .desc {
    margin-bottom: clamp(15px, 2.5vh, 30px);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
}
.solution-card ul {
    list-style: none; padding: 0; display: flex; flex-direction: column;
    gap: clamp(8px, 1.5vh, 15px);
    margin-bottom: clamp(15px, 3vh, 35px);
}
.solution-card li {
    display: flex; gap: 12px; align-items: flex-start;
    line-height: 1.5;
    font-size: clamp(0.85rem, 1vw, 1.05rem);
    color: var(--text-muted);
}
.solution-card li i { color: var(--primary); margin-top: 4px; font-size: 1rem; flex-shrink: 0; }
.solution-card li strong { color: var(--text-main); }

/* ─── Comparison Table ─── */
.table-wrapper {
    width: 100%; overflow-x: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: var(--bg-card);
    margin-top: 30px;
}
.comparison-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    min-width: 900px; table-layout: fixed; margin: 0;
}
.comparison-table th,
.comparison-table td {
    padding: 20px 15px; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.05rem;
}
.comparison-table th { color: var(--text-main); font-size: 1.1rem; }
.highlight-cell { color: var(--accent); font-weight: 700; background: rgba(37,99,235,0.1); }

/* ─── Team Grid ─── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 3rem;
    width: 100%;
}
.team-card {
    text-align: center;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 36px 24px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s, border-color 0.2s;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--primary);
}
.team-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
.team-card h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.team-title {
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    max-width: none;
}

/* ─── News Cards ─── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
}
.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.news-date {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.news-card h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.news-card > p {
    flex: 1;
    font-size: 0.95rem;
    margin-bottom: 20px;
    max-width: none;
}
.news-card .read-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.2s;
}
.news-card .read-more:hover { color: var(--accent); gap: 10px; }

/* ─── Post Body ─── */
.post-body p { max-width: none; font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 2rem 0 0.8rem; }

/* ─── Job Cards ─── */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.job-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid var(--primary);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: transform 0.2s, border-left-color 0.2s;
}
.job-card:hover { transform: translateX(4px); border-left-color: var(--accent); }
.job-info { flex: 1; }
.job-info h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 0; }
.job-tag {
    background: rgba(37,99,235,0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.job-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 0;
    max-width: none;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 5rem 20px;
    color: var(--text-muted);
    width: 100%;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
    display: block;
}
.empty-state p { font-size: 1.1rem; margin: 0 auto; max-width: none; }

/* ─── Footer ─── */
footer {
    background: #020617;
    padding: 5rem 20px 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-cta { text-align: center; margin-bottom: 3.5rem; }
.footer-cta h2 { max-width: 680px; margin-bottom: 1.8rem; }
.footer-divider {
    width: 100%;
    max-width: 860px;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 860px;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.footer-nav {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-main); }

/* ─── Laptop height fix ─── */
@media (max-height: 900px) {
    .section { padding: 4vh 20px; }
    h2 { margin-bottom: 0.8rem; }
    p { margin-bottom: 1rem; }
    .card { padding: 20px; }
    .grid-2, .grid-3 { margin-top: 20px; gap: 20px; }
    .video-pillar video { aspect-ratio: 16 / 9; }
    .comparison-table th, .comparison-table td { padding: 14px 12px; }
}

/* ─── Mobile (≤1024px) ─── */
@media (max-width: 1024px) {
    html { scroll-snap-type: none !important; }
    .section { min-height: auto; padding: 60px 20px; }
    .grid-tech { grid-template-columns: 1fr; }
    .video-pillar { order: -1; }
    .video-pillar video { aspect-ratio: 16 / 9 !important; }
    .hero-tags { display: none; }

    /* Hamburger menu */
    .nav-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px 5px;
        flex-shrink: 0;
        z-index: 1;
    }
    .nav-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-main);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    .nav-book-demo { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(12, 19, 36, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 5%;
        gap: 1.4rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-left: 0;
        margin-right: 0;
    }
    .nav-links a:not(.btn) { font-size: 1.05rem; }
    .nav-toggle-input:checked ~ .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle-input:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
    .nav-toggle-input:checked ~ .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle-input:checked ~ .nav-links { display: flex; }

    /* General mobile */
    .btn { width: 100%; margin: 10px 0 0 0; }
    .job-card { flex-direction: column; align-items: flex-start; }
    .job-card .btn { width: auto; margin: 0.5rem 0 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-hero { padding: 3.5rem 20px 2.5rem; }
    .inner-section { padding: 3rem 20px; }
}
