:root {
    --bg: #0a0b12;
    --bg-alt: #12141e;
    --bg-raised: #171a26;
    --ink: #f3f4f8;
    --ink-muted: #a6abbd;
    --ink-soft: #767c93;
    --accent: #8b5cf6;
    --accent-2: #22d3ee;
    --accent-soft: rgba(139, 92, 246, 0.14);
    --line: #262a3a;
    --radius: 16px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --maxw: 1120px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(139, 92, 246, 0.18), transparent),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(34, 211, 238, 0.12), transparent);
    background-repeat: no-repeat;
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

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

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

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    line-height: 1.18;
    margin: 0 0 16px;
    letter-spacing: -0.015em;
    font-weight: 750;
}

h2 {
    font-size: clamp(28px, 3.6vw, 38px);
    color: var(--ink);
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 16px;
    color: var(--ink-muted);
}

code, .mono {
    font-family: var(--mono);
}

.grad-text {
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 16px;
    font-family: var(--mono);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-head p {
    font-size: 17px;
}

/* Header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 11, 18, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

header.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16.5px;
    color: var(--ink);
}

.brand .mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0b12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand .role {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: var(--ink-soft);
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav.main-nav a {
    color: var(--ink-muted);
    font-size: 14.5px;
    font-weight: 600;
}

nav.main-nav a:hover {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    background: linear-gradient(100deg, var(--accent), #7c3aed);
    color: #fff !important;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.6);
}

.btn.ghost {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--line);
}

.btn.ghost:hover {
    border-color: var(--accent-2);
    background: transparent;
    box-shadow: none;
}

/* Hero */
.hero {
    padding-top: 76px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 4.8vw, 52px);
}

.hero .lede {
    font-size: 18.5px;
    color: var(--ink-muted);
    max-width: 560px;
}

.hero .cta-row {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    font-family: var(--mono);
}

.badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
}

.hero-photo {
    position: relative;
}

.photo-frame {
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(165deg, #1a1c2c, #23263a);
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid var(--line);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}

.photo-fallback .initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.2));
}

.photo-fallback .hint {
    font-size: 12px;
    color: var(--ink-soft);
    max-width: 220px;
    text-align: center;
}

.photo-frame.has-photo .photo-fallback {
    display: none;
}

.photo-tag {
    position: absolute;
    left: -18px;
    bottom: 28px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    max-width: 230px;
}

.photo-tag strong {
    display: block;
    font-size: 20px;
    color: var(--ink);
}

.photo-tag span {
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* Value cards */
.value {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raised);
}

.card .icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-weight: 700;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.card p {
    font-size: 14.5px;
    margin-bottom: 0;
}

/* Disclaimer note */
.note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg-alt);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 44px;
}

.note .note-icon {
    flex: none;
    font-family: var(--mono);
    font-weight: 800;
    color: var(--accent-2);
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note p {
    font-size: 13.5px;
    margin: 0;
    color: var(--ink-soft);
}

/* Use case cards */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.usecase {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.usecase.in-view {
    opacity: 1;
    transform: translateY(0);
}

.usecase .tag-pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--accent-2);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 14px;
}

.usecase h3 {
    margin-bottom: 4px;
}

.usecase .industry {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.usecase p {
    font-size: 14.5px;
    margin-bottom: 14px;
}

.usecase .outcome {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--ink-muted);
}

.usecase .outcome strong {
    color: var(--ink);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 9px;
    font-family: var(--mono);
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: var(--radius);
    background: var(--bg-raised);
    border: 1px solid var(--line);
}

.process-step .step-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.process-step h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Tech stack */
.stack-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stack-section .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.skill-group {
    margin-bottom: 24px;
}

.skill-group h4 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-bottom: 12px;
    font-family: var(--mono);
}

/* Contact */
.contact {
    background: linear-gradient(135deg, #171226, #10131f);
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 24px;
    width: calc(100% - 56px);
    max-width: calc(var(--maxw) - 56px);
    margin: 0 auto;
    padding: 72px 48px;
    text-align: center;
}

.contact .wrap {
    max-width: 640px;
    padding: 0;
}

.contact h2 {
    color: #fff;
}

.contact p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;
}

.contact .cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact .btn.ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.contact .btn.ghost:hover {
    border-color: var(--accent-2);
}

/* Footer */
footer.site-footer {
    padding: 40px 0 60px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 13.5px;
}

footer.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 13px;
}

footer.site-footer .footer-links a {
    color: var(--ink-muted);
}

footer.site-footer .footer-links a:hover {
    color: var(--accent-2);
}

/* Responsive */
@media (max-width: 900px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        max-width: 340px;
        margin: 0 auto;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stack-section .wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    nav.main-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 28px 28px;
        gap: 18px;
        display: none;
    }

    nav.main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width: 560px) {
    section {
        padding: 64px 0;
    }

    .card-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        width: calc(100% - 32px);
        margin: 0 auto;
        padding: 48px 24px;
    }

    .photo-tag {
        left: 12px;
        bottom: -18px;
    }
}
