@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f5f8fc;
    --bg-soft: #edf3fb;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-solid: #ffffff;
    --surface-dark: #08111f;
    --text: #132238;
    --muted: #5e6b80;
    --muted-strong: #314159;
    --primary: #1f57ff;
    --primary-strong: #163bc1;
    --accent: #12b7ff;
    --border: rgba(19, 34, 56, 0.09);
    --shadow: 0 24px 70px rgba(16, 30, 52, 0.12);
    --shadow-strong: 0 28px 90px rgba(10, 22, 44, 0.24);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 87, 255, 0.08), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(18, 183, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #fcfdff 0%, var(--bg) 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(19, 34, 56, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 34, 56, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 92%);
    z-index: -1;
}

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

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

p {
    line-height: 1.85;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 100;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    left: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(246, 249, 253, 0.88);
    border-bottom: 1px solid rgba(19, 34, 56, 0.06);
    box-shadow: 0 12px 30px rgba(16, 30, 52, 0.04);
}

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

.brand img {
    width: auto;
    height: 48px;
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-button {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.nav-toggle-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(31, 87, 255, 0.10);
    color: var(--primary-strong);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 102px 0 96px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 17, 31, 0.80), rgba(11, 20, 39, 0.92)),
        url('assets/main3.jpg') center/cover no-repeat;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    pointer-events: none;
}

.hero::before {
    inset: 12% auto auto -6%;
    width: 220px;
    height: 220px;
    background: rgba(31, 87, 255, 0.22);
}

.hero::after {
    inset: auto -4% -10% auto;
    width: 300px;
    height: 300px;
    background: rgba(18, 183, 255, 0.16);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 38px;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow,
.section-kicker,
.card-eyebrow,
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 800;
}

.eyebrow {
    color: #7fd5ff;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.7rem, 6vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 60ch;
    margin: 0;
    font-size: clamp(1.06rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 36px rgba(31, 87, 255, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 24px 42px rgba(31, 87, 255, 0.34);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-chips span {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
    transform: translateY(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 90px rgba(10, 22, 44, 0.28);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-image-card {
    position: relative;
}

.hero-image-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    opacity: 0.94;
    filter: saturate(1.05) contrast(1.04);
}

.hero-card-overlay {
    position: absolute;
    inset: auto 18px 18px 18px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(8, 17, 31, 0.82), rgba(8, 17, 31, 0.52));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card-overlay strong,
.mini-card h3,
.feature-card h3,
.about-visual-caption strong,
.contact-card a,
.text-panel span {
    color: #fff;
}

.hero-card-overlay span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-list-card {
    padding: 24px;
}

.hero-list-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-list-card li + li {
    margin-top: 10px;
}

.section {
    padding: 94px 0;
    scroll-margin-top: 100px;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(238, 243, 250, 0.92));
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading-left {
    margin-left: 0;
}

.section-kicker {
    position: relative;
    padding-left: 18px;
    color: var(--primary-strong);
}

.section-kicker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 5px rgba(31, 87, 255, 0.08);
}

.section-heading h2 {
    margin: 14px 0 0;
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

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

.feature-card,
.mini-card,
.contact-card,
.about-visual,
.text-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: var(--surface-solid);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover,
.mini-card:hover,
.contact-card:hover,
.about-visual:hover,
.text-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(16, 30, 52, 0.14);
    border-color: rgba(31, 87, 255, 0.14);
}

.feature-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.03);
}

.feature-card-body {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.card-tag {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--primary-strong);
    background: rgba(31, 87, 255, 0.10);
}

.feature-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.2rem;
}

.feature-card p,
.mini-card p,
.about-visual-caption span,
.contact-card p,
.text-panel {
    color: var(--muted);
}

.text-panel {
    margin-top: 24px;
    padding: 24px 26px;
    line-height: 1.9;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
}

.text-panel p {
    margin: 0;
}

.text-panel span {
    color: var(--primary-strong);
    font-weight: 800;
}

.tech-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 24px;
    align-items: start;
}

.tech-stack {
    display: grid;
    gap: 18px;
}

.mini-card {
    overflow: hidden;
}

.mini-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
}

.mini-card-body {
    padding: 20px;
}

.mini-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1.18rem;
}

.mini-card p {
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
    align-items: center;
}

.about-visual {
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    filter: saturate(1.03) contrast(1.02);
}

.about-visual-caption {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98));
}

.about-visual-caption strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.about-visual-caption span {
    color: var(--muted);
}

.contact-section {
    background:
        linear-gradient(135deg, rgba(8, 17, 31, 0.98), rgba(14, 27, 48, 0.98)),
        url('assets/main3.jpg') center/cover no-repeat;
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
    gap: 24px;
    align-items: start;
}

.contact-grid .section-heading p {
    color: rgba(255, 255, 255, 0.76);
}

.contact-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    color: rgba(255, 255, 255, 0.86);
}

.contact-card p {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.82);
}

.contact-card a {
    font-weight: 800;
}

.site-footer {
    padding: 26px 0;
    background: #07111f;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 1080px) {
    .hero-grid,
    .tech-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-copy {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 76px;
    }

    .nav-toggle-button {
        display: inline-flex;
    }

    .site-nav {
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 24px));
        display: grid;
        gap: 6px;
        padding: 0 14px;
        margin: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow-strong);
        transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.2s ease;
    }

    .nav-toggle:checked ~ .nav-links {
        max-height: 420px;
        padding: 14px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding: 82px 0 76px;
    }

    .hero-image-card img {
        height: 260px;
    }

    .section {
        padding: 76px 0;
    }
}

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

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

    .hero h1 {
        font-size: clamp(2.3rem, 14vw, 3.8rem);
    }

    .hero-lead {
        font-size: 1.02rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .text-panel,
    .contact-card {
        padding: 20px;
    }

    .about-visual img {
        height: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
