:root {
    --bg-main: #0a0a0b;
    --accent: #3b82f6;
    --text-main: #ffffff;
    --text-muted: #aeb7c7;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --section-pad: 0px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
}

body {
    font-family: Inter, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.section-pad {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
}

.page-glow {
    position: fixed;
    pointer-events: none;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(10, 10, 11, 0) 70%);
    filter: blur(120px);
    z-index: -1;
}

.glow-a {
    top: -180px;
    left: -140px;
}

.glow-b {
    top: 120px;
    right: -190px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0px 100px;
    backdrop-filter: blur(8px);
    background-color: rgba(10, 10, 11, 0.88);
    border-bottom: 1px solid #ffffff10;
}

.nav-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
}

.menu {
    display: flex;
    gap: 50px;
    font-size: 20px;
    color: #d3d9e5;
}

.menu a:hover {
    color: var(--accent);
    box-shadow: 0 0 10px 0 #d5dbe8;
    border-radius: 10px;
    padding: 10px;
    transition: 0.75s ease;
}

.btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid #4b8dff;
    background: linear-gradient(180deg, #122e5b 0%, #1c4a98 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.22);
}

.btn-nav {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 18px;
}

.btn-small {
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-grid {
    position: relative;
    display: grid;
    min-height: 640px;
}

.hero-content,
.hero-visual-wrap {
    grid-area: 1 / 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    justify-self: start;
    align-self: center;
    padding: clamp(10px, 1vw, 10px);
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 72px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
    padding: 0px 100px;
}

.text-gradient {
    background: linear-gradient(90deg, #7eb1ff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    margin-top: 18px;
    max-width: 800px;
    color: var(--text-muted);
    font-size: 19px;
    line-height: 1.6;
    padding: 0px 100px;
}

.contact-glass-card {
    margin-top: 30px;
    max-width: 700px;
    background: transparent;
    border: 1px solid #ffffff24;
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 100px;
}

.contact-col {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-col + .contact-col {
    border-left: 1px solid #ffffff10;
}

.contact-icon {
    color: var(--accent);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.hero-visual-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-neon {
    position: absolute;
    inset: auto 10% -20% 10%;
    height: 240px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(10, 10, 11, 0) 70%);
    filter: blur(120px);
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 640px;
    border-radius: 0;
    overflow: hidden;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 11, 0.75) 0%, rgba(10, 10, 11, 0.35) 45%, rgba(10, 10, 11, 0.1) 100%);
}

.hero-mockup-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.section-title {
    font-size: clamp(38px, 5vw, 56px);
    letter-spacing: -0.02em;
    margin-top: 80px;
    margin-bottom: 26px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 100px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    min-height: 200px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #4b8dff70;
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 21px;
    font-weight: 700;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-list span {
    border: 1px solid #ffffff1a;
    background: #ffffff12;
    border-radius: 999px;
    font-size: 12px;
    color: #d5dbe8;
    padding: 6px 10px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 100px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.portfolio-media {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    color: #d0ddf6;
    font-size: 24px;
    font-weight: 600;
    transition: transform 0.35s ease;
}

.media-a {
    background: linear-gradient(140deg, #212934, #4c362e);
}

.media-b {
    background: linear-gradient(140deg, #1a2845, #224f96);
}

.media-c {
    background: linear-gradient(140deg, #31425f, #627998);
}

.portfolio-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    background: rgba(9, 12, 19, 0.58);
    backdrop-filter: blur(10px);
}

.portfolio-overlay h3 {
    font-size: 22px;
}

.portfolio-item:hover .portfolio-media {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.testimonials {
    background: #f8f9fa;
    color: #111a31;
    margin-top: 80px;
    padding-top: 50px;
}

.section-title.dark {
    color: #10182d;
    margin-top: 50px;
    margin-bottom: 26px;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 100px;
    padding-bottom: 80px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    min-height: 230px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 14px;
}

.stars {
    color: var(--accent);
    font-size: 20px;
    letter-spacing: 0.1em;
}

.quote {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.5;
    color: #303c56;
}

.person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px dashed #89a0c9;
    background: #e8edf7;
    display: grid;
    place-items: center;
    font-size: 10px;
    color: #4f648d;
}

.person span {
    display: block;
    color: #5b6885;
    font-size: 13px;
    margin-top: 2px;
}

.footer {
    border-top: 1px solid #ffffff10;
    margin: 0 100px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    padding-top: 60px;
    padding-bottom: 44px;
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-main);
    margin-bottom: 14px;
}

.footer-brand p {
    margin-top: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    font-size: 12px;
}

.footer-logo {
    font-size: 28px;
}

.footer-social {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ffffff1a;
    color: var(--text-muted);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.footer-links,
.footer-services,
.footer-contacts {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
}

.footer-links a,
.footer-services a,
.footer-contacts a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
    font-size: 12px;
}

.footer-links a:hover,
.footer-services a:hover,
.footer-contacts a:hover {
    color: var(--accent);
}

.footer-contacts p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-founder .founder-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-founder img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ffffff1a;
    flex-shrink: 0;
}

.footer-founder p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #ffffff10;
    height: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-grid {
        min-height: 560px;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-visual,
    .hero-visual-wrap {
        min-height: 560px;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links,
    .footer-services,
    .footer-contacts {
        justify-items: center;
    }

    .footer-founder .founder-content {
        justify-content: center;
        text-align: left;
    }

    .footer-bottom {
        height: auto;
        padding: 8px 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
}

@media (max-width: 430px) {
    :root {
        --section-pad: 64px;
    }

    .logo {
        font-size: 30px;
    }

    .btn-nav,
    .btn {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content {
        padding: 24px 16px;
    }

    .hero-grid,
    .hero-visual,
    .hero-visual-wrap {
        min-height: 500px;
    }

    .contact-glass-card {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .contact-col + .contact-col {
        border-left: 0;
        border-top: 1px solid #ffffff10;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .portfolio-overlay {
        transform: translateY(0);
    }
}