:root {
    --bg: #070a0f;
    --bg-soft: #0b1018;
    --panel: rgba(15, 22, 34, 0.72);
    --panel-strong: #111927;
    --line: rgba(255,255,255,0.09);

    --text: #f4f7fb;
    --muted: #9ba8b7;

    --accent: #63d9ff;
    --accent-2: #4c78ff;

    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(52, 99, 255, 0.09), transparent 32%),
        #070a0f;
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 48px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 10, 15, 0.74);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(99,217,255,0.42);
    border-radius: 10px;
    color: var(--accent);
    background: rgba(99,217,255,0.06);
    font-size: 13px;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    font-size: 14px;
    color: #b8c1cd;
    transition: 0.2s ease;
}

nav a:hover {
    color: #fff;
}

.hero {
    min-height: 850px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(99,217,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,217,255,0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.hero-glow-one {
    width: 420px;
    height: 420px;
    right: 5%;
    top: 20%;
    background: #235cff;
}

.hero-glow-two {
    width: 320px;
    height: 320px;
    right: 28%;
    bottom: 0;
    background: #19d7ff;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow,
.project-category {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 18px 0 4px;
    font-size: clamp(64px, 9vw, 128px);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.hero h2 {
    margin: 18px 0 0;
    font-size: clamp(24px, 3.3vw, 47px);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-weight: 500;
    color: #c8d1dd;
}

.hero-copy {
    max-width: 780px;
    margin: 28px 0 0;
    font-size: 20px;
    color: var(--muted);
}

.hero-tags {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.project-tech span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255,255,255,0.025);
    color: #bdc7d4;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 38px;
}

.button {
    min-height: 48px;
    padding: 0 21px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, #3bc8fa, #4c78ff);
    color: #02050b;
}

.button-secondary {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.035);
}

.hero-meta {
    max-width: 840px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 62px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero-meta div {
    display: flex;
    flex-direction: column;
}

.hero-meta strong {
    font-size: 17px;
}

.hero-meta span {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.section {
    padding: 115px 0;
}

.section-head {
    max-width: 780px;
    margin-bottom: 50px;
}

.section-head.compact {
    margin-bottom: 34px;
}

.section-head h2,
.about-grid h2,
.contact-panel h2 {
    margin: 10px 0 14px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    position: relative;
    min-height: 250px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
    overflow: hidden;
}

.card-number {
    color: rgba(99,217,255,0.5);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.card h3 {
    margin: 45px 0 12px;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.projects-section {
    background: #090d14;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
}

.featured-project {
    grid-column: span 2;
}

.project-visual {
    position: relative;
    min-height: 230px;
    background:
        linear-gradient(135deg, rgba(40,73,145,0.32), rgba(4,10,18,0.5)),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 40px,
            rgba(99,217,255,0.06) 41px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 40px,
            rgba(99,217,255,0.06) 41px
        );
    display: flex;
    align-items: flex-end;
}

.featured-project .project-visual {
    min-height: 330px;
}

.project-code {
    margin: 24px;
    padding: 8px 11px;
    border-radius: 7px;
    background: rgba(5,8,14,0.75);
    border: 1px solid var(--line);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.project-content {
    padding: 27px;
}

.project-content h3 {
    font-size: 27px;
    margin: 8px 0 10px;
    letter-spacing: -0.03em;
}

.project-content p {
    margin: 0;
    color: var(--muted);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.tools-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.tool-item {
    padding: 27px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.tool-item:last-child {
    border-right: 0;
}

.tool-item strong {
    font-size: 18px;
}

.tool-item span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.about-section {
    background:
        radial-gradient(circle at 15% 50%, rgba(58, 139, 255, 0.08), transparent 32%);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
}

.about-copy {
    color: #abb6c4;
    font-size: 18px;
}

.about-copy p:first-child {
    margin-top: 0;
}

.contact-section {
    padding: 70px 0 110px;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(99,217,255,0.18);
    background:
        linear-gradient(135deg, rgba(48,104,202,0.13), rgba(17,25,39,0.8));
}

.contact-panel h2 {
    font-size: clamp(36px, 4vw, 58px);
}

.contact-panel p {
    max-width: 650px;
    color: var(--muted);
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

footer {
    border-top: 1px solid var(--line);
}

.footer-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #697585;
    font-size: 13px;
}

@media (max-width: 920px) {
    nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 150px 0 90px;
    }

    .hero-meta,
    .expertise-grid,
    .tools-row,
    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .featured-project {
        grid-column: auto;
    }

    .tool-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .tool-item:last-child {
        border-bottom: 0;
    }

    .about-grid {
        gap: 35px;
    }

    .contact-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 30px), var(--max));
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero h2 {
        font-size: 27px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .hero-actions,
    .contact-actions {
        width: 100%;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-meta {
        gap: 20px;
    }

    .section {
        padding: 80px 0;
    }

    .card,
    .project-content {
        padding: 22px;
    }

    .contact-panel {
        padding: 30px 22px;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        text-align: center;
    }
}
