/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.5;
    overflow-x: hidden;
    font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* ----- Layout helpers ----- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.narrow { max-width: 880px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { opacity: .55; }

/* ----- Navigation ----- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(0,0,0,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background .4s;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px;
}
.logo {
    font-weight: 600; font-size: 21px; letter-spacing: -.02em;
}
.logo span { color: #0071e3; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a { opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
    background: #0071e3; color: #fff !important; opacity: 1 !important;
    padding: 8px 18px; border-radius: 999px; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: #0077ed; transform: translateY(-1px); }

/* ----- HERO ----- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0,113,227,0.25), transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(120,80,255,0.22), transparent 60%),
        #000;
    z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 980px; will-change: transform, opacity; }
.hero-title {
    font-size: clamp(44px, 8vw, 104px);
    font-weight: 600; letter-spacing: -0.028em; line-height: 1.04;
    margin-bottom: 32px;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(40px); animation: rise .9s forwards; }
.hero-title .line:nth-child(1) { animation-delay: .1s; }
.hero-title .line:nth-child(2) { animation-delay: .25s; }
.hero-title .line:nth-child(3) { animation-delay: .4s; }
.hero-sub {
    font-size: clamp(17px, 1.6vw, 22px);
    opacity: 0; transform: translateY(20px);
    animation: rise 1s .65s forwards;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
}
.gradient {
    background: linear-gradient(135deg, #0071e3 0%, #8a5cf6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text {
    background: linear-gradient(135deg, #0071e3 0%, #8a5cf6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

.cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: #0071e3; color: #fff;
    padding: 16px 32px; border-radius: 999px;
    font-size: 16px; font-weight: 600;
    transition: background .25s, transform .25s, box-shadow .25s;
    opacity: 0; animation: rise 1s .85s forwards;
    box-shadow: 0 10px 40px rgba(0,113,227,0.35);
}
.cta:hover { background: #0077ed; transform: translateY(-2px); box-shadow: 0 14px 50px rgba(0,113,227,0.5); }
.cta .arrow { transition: transform .25s; }
.cta:hover .arrow { transform: translateX(4px); }
.cta-light {
    background: #fff; color: #000; box-shadow: 0 10px 40px rgba(255,255,255,0.15);
}
.cta-light:hover { background: #f2f2f2; box-shadow: 0 14px 50px rgba(255,255,255,0.25); }

.scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
    opacity: .4; animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ----- Sections ----- */
.section {
    padding: 160px 24px;
    position: relative;
}
.section-light { background: #fff; color: #000; }
.section-dark { background: #000; color: #fff; }
.eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
    color: #0071e3; margin-bottom: 24px;
}
.big {
    font-size: clamp(36px, 5.2vw, 68px);
    font-weight: 500; letter-spacing: -0.025em; line-height: 1.08;
    margin-bottom: 32px;
}
.huge {
    font-size: clamp(42px, 6.5vw, 88px);
    font-weight: 500; letter-spacing: -0.028em; line-height: 1.05;
    margin-bottom: 40px;
}
.lead {
    font-size: clamp(17px, 1.5vw, 22px);
    line-height: 1.55;
    max-width: 720px;
    color: inherit; opacity: .75;
}
.center .lead { margin-left: auto; margin-right: auto; }

/* ----- Split section ----- */
.split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    max-width: 1300px; margin: 0 auto;
}
.split-text { padding-left: 32px; }
.split-visual { padding-right: 32px; }

.dashboard {
    background: linear-gradient(160deg, #0a0a0f 0%, #14141c 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0,113,227,0.15), 0 0 0 1px rgba(255,255,255,0.04);
}
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.dash-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 16px;
}
.dash-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.dash-num { font-size: 32px; font-weight: 700; margin: 8px 0; }
.dash-bar { background: rgba(255,255,255,0.08); height: 4px; border-radius: 4px; overflow: hidden; }
.dash-bar span {
    display: block; height: 100%;
    background: linear-gradient(90deg, #0071e3, #8a5cf6);
    border-radius: 4px;
}
.dash-chart {
    background: rgba(255,255,255,0.02); border-radius: 12px;
    padding: 12px; height: 120px; margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,0.05);
}
.dash-chart svg { width: 100%; height: 100%; }
.dash-rows { display: flex; flex-direction: column; gap: 10px; }
.row-line { display: grid; grid-template-columns: 2fr 3fr 1fr; gap: 12px; }
.row-line span {
    height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px;
}
.row-line span:nth-child(2) { background: rgba(0,113,227,0.25); }

/* ----- Portfolio grid ----- */
.portfolio-grid {
    margin-top: 80px;
    display: grid;
    gap: 40px;
}
.case-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 24px 60px -20px rgba(0,0,0,0.10);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
@media (max-width: 900px) {
    .case-card { grid-template-columns: 1fr; }
}

/* Visual / image */
.case-visual {
    position: relative;
    max-height: 520px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.case-visual img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .5s ease;
}
.case-visual:hover img { transform: scale(1.04); }
.case-zoom-hint {
    position: absolute; bottom: 16px; right: 16px;
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
    pointer-events: none;
}
.case-visual:hover .case-zoom-hint { opacity: 1; }

/* Body / text */
.case-body {
    padding: 48px 40px;
}
.case-tags {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.case-tag {
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(0,113,227,0.08); color: #0071e3;
}
.case-body h3 {
    font-size: 26px; font-weight: 500; letter-spacing: -.02em;
    line-height: 1.2; margin-bottom: 14px; color: #000;
}
/* Problem block — always visible */
.case-problem {
    background: rgba(0,0,0,0.03);
    border-left: 3px solid #0071e3;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.case-problem p {
    font-size: 15px; line-height: 1.65; color: rgba(0,0,0,0.7); margin: 0;
}

/* Toggle button */
.case-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 600;
    color: #0071e3; padding: 0;
    transition: gap .3s;
}
.case-toggle:hover { gap: 12px; }
.case-toggle-icon {
    transition: transform .4s ease;
}
.case-toggle[aria-expanded="true"] .case-toggle-icon {
    transform: rotate(180deg);
}
.case-toggle[aria-expanded="true"] .case-toggle-text::after {
    content: none;
}

/* Expandable details */
.case-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s ease, margin .5s ease;
    margin-top: 0;
}
.case-details.open {
    grid-template-rows: 1fr;
    margin-top: 32px;
}
.case-details-inner {
    overflow: hidden;
}
.case-detail-item {
    padding-bottom: 24px;
}
.case-detail-item:last-child { padding-bottom: 0; }
.case-detail-label {
    font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: #0071e3; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.case-detail-label::before {
    content: '';
    width: 24px; height: 2px;
    background: #0071e3; border-radius: 2px;
}
.case-detail-item p {
    font-size: 15px; line-height: 1.65; color: rgba(0,0,0,0.65);
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.active {
    opacity: 1; visibility: visible;
}
.lightbox-img {
    max-width: 90vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    transform: scale(0.92); transition: transform .4s ease;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 24px; right: 32px;
    background: none; border: none;
    color: #fff; font-size: 36px; cursor: pointer;
    opacity: .7; transition: opacity .2s;
    line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

@media (max-width: 900px) {
    .case-body { padding: 32px 24px; }
    .case-visual { max-height: 400px; }
}

/* ----- Process ----- */
.process {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.10);
}
.process-step {
    padding: 40px 28px 8px 0;
    border-top: 1px solid transparent;
    margin-top: -1px;
    position: relative;
}
.process-step::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; width: 40px; height: 1px;
    background: #0071e3;
}
.process-num {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    color: #0071e3;
    margin-bottom: 28px;
    font-variant-numeric: tabular-nums;
}
.process-step h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.015em;
    margin-bottom: 14px;
}
.process-step p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 900px) {
    .process { grid-template-columns: 1fr; gap: 0; }
    .process-step { padding: 36px 0 8px; border-top: 1px solid rgba(255,255,255,0.10); }
    .process-step:first-child { border-top: none; }
    .process-step::before { display: none; }
}

/* ----- CTA section ----- */
.section-cta {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0,113,227,0.25), transparent 60%),
        #000;
    text-align: center;
}

/* ----- Footer ----- */
.footer {
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 80px 24px 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    padding-bottom: 60px;
}
.big-logo { font-size: 32px; margin-bottom: 14px; }
.contact-info { text-align: right; }
.contact-info p { margin-bottom: 8px; opacity: .8; }
.contact-info a:hover { color: #0071e3; }
.footer-bottom {
    display: flex; justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px; opacity: .5;
}

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal .reveal { transition-delay: .15s; }

/* ----- Parallax ----- */
.parallax { will-change: transform; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .section { padding: 100px 20px; }
    .split { grid-template-columns: 1fr; gap: 48px; }
    .split-text, .split-visual { padding: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-info { text-align: left; }
    .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero { padding: 100px 20px 60px; }
}
