:root {
    --bg: #050507;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.11);
    --text: #f4f4f5;
    --muted: rgba(244, 244, 245, 0.68);
    --muted-soft: rgba(244, 244, 245, 0.48);
    --violet: #7c3aed;
    --violet-soft: #a855f7;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius: 28px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
textarea {
    font: inherit;
}

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

.section {
    padding: 88px 0;
    position: relative;
}

.bg-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.glow-1 {
    width: 420px;
    height: 420px;
    left: -120px;
    top: 80px;
    background: rgba(124, 58, 237, 0.28);
}

.glow-2 {
    width: 520px;
    height: 520px;
    right: -180px;
    top: 140px;
    background: rgba(168, 85, 247, 0.18);
}

.glow-3 {
    width: 760px;
    height: 400px;
    left: 50%;
    bottom: -180px;
    transform: translateX(-50%);
    background: rgba(91, 33, 182, 0.24);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 72px 72px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(5, 5, 7, 0.7);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand strong {
    display: block;
    font-size: 1.1rem;
}

.brand span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-soft);
    margin-top: 2px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    font-weight: 900;
    background-image: linear-gradient(135deg, #c084fc, #7c3aed 60%, #d946ef);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.18);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--muted);
    transition: 0.25s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.hero-grid,
.structure-grid,
.contact-grid {
    display: grid;
    gap: 32px;
}

.hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    min-height: calc(100vh - 92px);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 900;
    max-width: 900px;
}

.hero-copy h1 span {
    background: linear-gradient(90deg, #d8b4fe, #f0abfc, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.section-heading p,
.feature-block p,
.banner-block p,
.contact-copy p,
.service-card p,
.info-card p,
.project-body p,
.compact-card p,
.mini-card p {
    color: var(--muted);
}

.hero-copy > p {
    max-width: 760px;
    font-size: 1.06rem;
    margin: 24px 0 0;
}

.eyebrow,
.label,
.index {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: #d8b4fe;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.button-primary {
    color: white;
    background: linear-gradient(90deg, #7c3aed, #d946ef);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.28);
}

.button-ghost {
    background: rgba(255,255,255,0.05);
    border-color: var(--border);
    color: rgba(255,255,255,0.88);
}

.button-outline {
    background: rgba(124, 58, 237, 0.14);
    border-color: rgba(168,85,247,0.3);
    color: #e9d5ff;
}

.card {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.stats-grid,
.cards-grid,
.mini-grid,
.form-grid {
    display: grid;
    gap: 20px;
}

.stats-grid {
    margin-top: 40px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted-soft);
    font-size: 0.95rem;
}

.visual-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.12), transparent, rgba(217,70,239,0.08));
    pointer-events: none;
}

.visual-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.visual-top h2,
.section-heading h2,
.feature-block h2,
.banner-block h2,
.contact-copy h2 {
    margin: 10px 0 0;
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.visual-top h2 {
    font-size: 1.55rem;
}

.pill {
    white-space: nowrap;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.76rem;
    color: #e9d5ff;
    border: 1px solid rgba(168,85,247,0.24);
    background: rgba(124,58,237,0.14);
}

.logo-box {
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: #000;
    padding: 24px;
}

.logo-box img {
    width: 100%;
    object-fit: contain;
}

.mini-grid {
    margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card,
.service-card,
.info-card,
.compact-card {
    padding: 26px;
}

.mini-card h3,
.service-card h3,
.info-card h3,
.project-body h3,
.compact-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

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

.section-heading.split {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: end;
}

.section-heading h2,
.feature-block h2,
.banner-block h2,
.contact-copy h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.cards-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.two,
.contact-grid,
.structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon-badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(168,85,247,0.24);
    background: linear-gradient(135deg, rgba(124,58,237,0.24), rgba(217,70,239,0.18));
    color: #f3e8ff;
    font-weight: 900;
}

.service-card,
.info-card,
.project-card,
.compact-card {
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.service-card:hover,
.info-card:hover,
.project-card:hover,
.compact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168,85,247,0.32);
    background: var(--panel-strong);
}

.feature-block {
    padding: 34px;
    background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(217,70,239,0.08));
}

.check-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    color: rgba(255,255,255,0.82);
}

.check-item span,
.project-status i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: #a855f7;
    box-shadow: 0 0 18px rgba(168,85,247,0.8);
}

.project-card {
    overflow: hidden;
}

.project-cover {
    min-height: 170px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    background:
        radial-gradient(circle at top left, rgba(139,92,246,0.42), transparent 38%),
        linear-gradient(135deg, rgba(88,28,135,0.9), rgba(13,13,18,0.98));
}

.project-cover span {
    border-radius: 999px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.25);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.76);
}

.project-body {
    padding: 26px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #d8b4fe;
    font-size: 0.95rem;
}

.banner-block {
    padding: 36px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    background: linear-gradient(90deg, rgba(124,58,237,0.18), rgba(255,255,255,0.04), rgba(217,70,239,0.18));
}

.cards-grid.compact {
    gap: 16px;
}

.compact-card {
    padding: 22px;
    background: rgba(0,0,0,0.22);
}

.contact-copy,
.contact-form {
    padding: 34px;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-list div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(0,0,0,0.22);
    border: 1px solid var(--border);
    color: rgba(255,255,255,0.78);
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.form-grid label {
    display: block;
}

.form-grid label.full {
    grid-column: 1 / -1;
}

.form-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.94rem;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(0,0,0,0.28);
    color: var(--text);
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
    border-color: rgba(168,85,247,0.45);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: rgba(255,255,255,0.24);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.35);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    color: var(--muted-soft);
    font-size: 0.95rem;
}

.footer-wrap div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 1100px) {
    .hero-grid,
    .structure-grid,
    .banner-block,
    .contact-grid,
    .section-heading.split {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 820px) {
    .section {
        padding: 70px 0;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 16px;
        left: 16px;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(5, 5, 7, 0.94);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        display: none;
    }

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

    .hero-grid {
        min-height: auto;
        padding-top: 14px;
    }

    .cards-grid.four,
    .cards-grid.three,
    .cards-grid.two,
    .mini-grid,
    .form-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .visual-top,
    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}
