/* ============================================================
   DATAWI Consulting — Landing page
   ============================================================ */

:root {
    /* Colors — pulled from logo */
    --blue-900: #0a2540;
    --blue-800: #103358;
    --blue-700: #154b7a;
    --blue-600: #1d6cb8;
    --blue-500: #2a8de0;
    --blue-400: #4ea7ee;
    --blue-300: #8cc7f4;
    --blue-100: #e6f2fb;
    --blue-50:  #f4f9fd;

    --ink-900: #0b1220;
    --ink-700: #2c3a52;
    --ink-500: #5a6a85;
    --ink-300: #98a4b8;
    --ink-100: #e6ebf2;
    --ink-50:  #f6f8fb;

    --white: #ffffff;
    --bg: #ffffff;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1200px;
    --radius: 14px;
    --radius-lg: 22px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 41, 80, 0.04);
    --shadow-md: 0 8px 28px rgba(15, 41, 80, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 41, 80, 0.12);

    /* Transitions */
    --t: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink-900);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--t); }

ul { list-style: none; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t);
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(29, 108, 184, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(29, 108, 184, 0.36);
}

.btn-ghost {
    color: var(--blue-700);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--blue-600); }

.btn-ghost-light {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: all var(--t);
}
.header.scrolled {
    border-bottom-color: var(--ink-100);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 44px; width: auto; }

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-list a {
    font-weight: 500;
    font-size: 15px;
    color: var(--ink-700);
    position: relative;
    padding: 6px 0;
}
.nav-list a:hover { color: var(--blue-600); }
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 0;
    background: var(--blue-600);
    transition: width var(--t);
}
.nav-list a:hover::after { width: 100%; }

.btn-header { padding: 10px 20px; font-size: 14px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink-900);
    transition: all var(--t);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--blue-50) 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-300), transparent);
    top: -180px;
    right: -120px;
}
.shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue-400), transparent);
    bottom: -300px;
    left: -200px;
    opacity: 0.25;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29, 108, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 108, 184, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 820px; }

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--ink-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--ink-700);
    max-width: 660px;
    margin-bottom: 36px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--ink-100);
    max-width: 700px;
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue-700);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    font-size: 13px;
    color: var(--ink-500);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== CIR strip ===== */
.cir-strip {
    padding: 28px 0;
    background: linear-gradient(90deg, var(--blue-50) 0%, var(--ink-50) 100%);
    border-top: 1px solid var(--blue-100);
    border-bottom: 1px solid var(--blue-100);
}
.cir-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
}
.cir-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(29, 108, 184, 0.25);
}
.cir-badge svg { width: 24px; height: 24px; }
.cir-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 720px;
}
.cir-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-900);
    letter-spacing: -0.005em;
}
.cir-text span {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.5;
}

/* ===== Section header ===== */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--blue-300); }

.section-header h2,
.approach-content h2,
.cta-content h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--ink-900);
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--ink-500);
    line-height: 1.65;
}

/* ===== Services ===== */
.services {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}
.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.service-card p {
    color: var(--ink-500);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    border-top: 1px solid var(--ink-100);
    padding-top: 16px;
}
.service-list li {
    font-size: 0.9rem;
    color: var(--ink-700);
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    font-weight: 500;
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 12px;
    height: 2px;
    background: var(--blue-500);
    border-radius: 2px;
}

/* ===== Approach ===== */
.approach {
    padding: 120px 0;
    background: var(--ink-50);
    position: relative;
}

.approach-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.approach-content .eyebrow,
.approach-content h2 {
    text-align: left;
}

.approach-lead {
    font-size: 1.05rem;
    color: var(--ink-500);
    line-height: 1.7;
    margin-bottom: 40px;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.step-number {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--ink-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--blue-600);
    letter-spacing: -0.01em;
}
.step-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ink-900);
}
.step-body p {
    color: var(--ink-500);
    font-size: 0.95rem;
    line-height: 1.55;
}

.approach-visual {
    position: relative;
    height: 480px;
}
.visual-card {
    position: absolute;
    background: var(--white);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-900);
    border: 1px solid var(--ink-100);
}
.visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    box-shadow: 0 0 0 4px rgba(29, 108, 184, 0.15);
    flex-shrink: 0;
}
.card-1 { top: 20px; left: 20px; animation: float 6s ease-in-out infinite; }
.card-2 { top: 120px; right: 0; animation: float 6s ease-in-out infinite 1.5s; }
.card-3 { bottom: 140px; left: 40px; animation: float 6s ease-in-out infinite 3s; }
.card-4 { bottom: 30px; right: 30px; animation: float 6s ease-in-out infinite 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Expertise ===== */
.expertise {
    padding: 120px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.expertise-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
    border: 1px solid var(--ink-100);
    transition: all var(--t);
}
.expertise-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-300);
}
.expertise-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--blue-600);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.expertise-icon svg { width: 20px; height: 20px; }

.expertise-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink-900);
}
.expertise-card p {
    color: var(--ink-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
    padding: 60px 0 120px;
}
.cta-card {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
    border-radius: 28px;
    padding: 72px 64px;
    color: var(--white);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(78, 167, 238, 0.35), transparent 70%);
}
.cta-card::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(140, 199, 244, 0.18), transparent 70%);
}

.cta-content { position: relative; z-index: 1; }
.cta-info { position: relative; z-index: 1; }

.cta-content h2 { color: var(--white); }
.cta-content p {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 460px;
}
.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-info {
    display: grid;
    gap: 24px;
}
.info-block {
    padding: 20px 24px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}
.info-block h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-300);
    margin-bottom: 6px;
}
.info-block p {
    color: var(--white);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
    background: var(--ink-50);
    padding-top: 72px;
    border-top: 1px solid var(--ink-100);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 72px;
    padding-bottom: 56px;
}
.footer-brand p {
    color: var(--ink-500);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-top: 16px;
    max-width: 380px;
}
.footer-logo { height: 40px; width: auto; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-900);
    margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li {
    color: var(--ink-500);
    font-size: 0.95rem;
}
.footer-col a:hover { color: var(--blue-600); }

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--ink-100);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--ink-500);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--blue-600); }

/* ===== Legal pages ===== */
.legal-page {
    padding: 64px 0 96px;
    background: linear-gradient(180deg, var(--blue-50) 0%, #ffffff 240px);
    min-height: calc(100vh - 72px);
}
.legal-container {
    max-width: 820px;
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-700);
    margin-bottom: 32px;
    transition: color var(--t);
}
.legal-back:hover { color: var(--blue-500); }

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ink-100);
}
.legal-header .eyebrow {
    margin-bottom: 12px;
}
.legal-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin-bottom: 12px;
}
.legal-meta {
    color: var(--ink-500);
    font-size: 14px;
}

.legal-content {
    color: var(--ink-700);
    font-size: 1rem;
    line-height: 1.75;
}
.legal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink-900);
    margin: 40px 0 14px;
    letter-spacing: -0.01em;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
    margin-bottom: 16px;
}
.legal-content ul {
    margin: 0 0 20px 0;
    padding-left: 0;
    list-style: none;
}
.legal-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}
.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 2px;
    background: var(--blue-500);
    border-radius: 2px;
}
.legal-content a {
    color: var(--blue-600);
    text-decoration: underline;
    text-decoration-color: rgba(29, 108, 184, 0.3);
    text-underline-offset: 3px;
    font-weight: 500;
}
.legal-content a:hover {
    text-decoration-color: var(--blue-600);
}
.legal-content strong {
    color: var(--ink-900);
    font-weight: 600;
}

@media (max-width: 720px) {
    .legal-page { padding: 40px 0 64px; }
    .legal-header { margin-bottom: 32px; padding-bottom: 24px; }
    .legal-content h2 { margin-top: 32px; font-size: 1.2rem; }
}

/* ===== Reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .approach-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .approach-visual {
        height: 380px;
        max-width: 480px;
        margin: 0 auto;
    }
    .cta-card {
        grid-template-columns: 1fr;
        padding: 56px 40px;
        gap: 40px;
    }
    .cta-info {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 720px) {
    .hero { padding: 64px 0 80px; }
    .services, .approach, .expertise { padding: 80px 0; }

    .nav, .btn-header { display: none; }
    .nav.open {
        display: block;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--ink-100);
        box-shadow: var(--shadow-md);
        padding: 24px;
    }
    .nav.open .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .menu-toggle { display: flex; }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .stat-value { font-size: 1.6rem; }

    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }

    .cta-card { padding: 48px 28px; }
    .cta-info { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .btn { width: 100%; }

    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    .approach-visual { height: 420px; }
    .card-1, .card-2, .card-3, .card-4 {
        position: relative;
        top: auto; right: auto; bottom: auto; left: auto;
        margin-bottom: 12px;
    }
    .approach-visual {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .footer-cols { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; gap: 8px; }
}
