:root {
    --bg-body: #050013;
    --bg-surface: rgba(22, 12, 56, 0.86);
    --bg-surface-strong: rgba(32, 16, 72, 0.94);
    --bg-footer: rgba(4, 0, 18, 0.95);
    --gradient: linear-gradient(
        to right,
        rgb(60, 0, 90) 0%,
        rgb(100, 0, 150) 25%,
        rgb(170, 0, 200) 55%,
        rgb(220, 0, 100) 82%,
        rgb(250, 50, 120) 100%
    );
    --text-main: #f7f5ff;
    --text-muted: rgba(247, 245, 255, 0.78);
    --accent: #7fe8ff;
    --border: rgba(255, 255, 255, 0.12);
    --shadow-soft: 0 22px 48px rgba(5, 0, 28, 0.55);
    --shadow-hover: 0 34px 70px rgba(10, 0, 40, 0.6);
    --radius-lg: 28px;
    --radius: 18px;
    --transition: 0.35s cubic-bezier(0.21, 0.74, 0.33, 0.99);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background:
        radial-gradient(120% 120% at 10% 0%, rgba(80, 30, 210, 0.35), transparent 55%),
        radial-gradient(90% 90% at 90% 10%, rgba(0, 160, 255, 0.28), transparent 60%),
        #050013;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.65;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

main {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 4.5rem);
    /* padding-top: clamp(3.5rem, 7vw, 5rem); */
}

.wrapper {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-main);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn.primary {
    border: none;
    background: var(--gradient);
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover,
.btn.primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.btn.ghost:hover,
.btn.ghost:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 0, 18, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-nav .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(114, 200, 255, 0.35));
}

.menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.menu a {
    padding: 0.55rem 0.8rem;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.menu a:hover::after,
.menu a:focus::after {
    transform: scaleX(1);
}

#nav-toggle {
    display: none;
}

.hamburger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

#nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

#hero {
    position: relative;
    padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(2.6rem, 6vw, 4rem);
}

#hero::before,
#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#hero::before {
    background: radial-gradient(60% 60% at 20% 10%, rgba(145, 90, 255, 0.35), transparent 65%);
    opacity: 0.8;
}

#hero::after {
    background: radial-gradient(50% 50% at 90% 20%, rgba(0, 200, 255, 0.35), transparent 70%);
    transform: translateY(40%);
    filter: blur(40px);
    opacity: 0.7;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 6vw, 3.5rem);
    align-items: center;
}

.hero-copy {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.hero-copy p {
    max-width: 480px;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(127, 232, 255, 0.85);
}

#hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
    line-height: 1.08;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    list-style: none;
}

.keyword-list li {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.hero-visual {
    grid-column: span 5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-media {
    position: relative;
    width: clamp(280px, 32vw, 360px);
    margin: 0;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 20% 15%, rgba(140, 82, 255, 0.35), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(0, 186, 255, 0.22), transparent 65%),
        rgba(15, 6, 40, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 48px rgba(6, 0, 30, 0.55);
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-media figcaption {
    padding: 0.85rem 1.4rem 1.2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(5, 0, 18, 0) 0%, rgba(5, 0, 18, 0.68) 100%);
}

.section {
    padding: clamp(2.6rem, 6vw, 4rem) 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-width: 520px;
}

.section-header::after {
    content: "";
    width: 68px;
    height: 3px;
    border-radius: 999px;
    background: var(--gradient);
    margin-top: 1rem;
}

.section-header p {
    max-width: 460px;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(2rem, 5vw, 3.2rem);
}

.two-columns > div:first-child {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.two-columns .card {
    grid-column: span 5;
    background: linear-gradient(180deg, rgba(26, 14, 60, 0.95), rgba(10, 4, 28, 0.95));
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.6rem, 3vw, 2.1rem);
    display: grid;
    gap: 1rem;
}

.card ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.card li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--gradient);
}

.subtle-bg {
    background: linear-gradient(180deg, rgba(45, 0, 82, 0.25), rgba(7, 0, 20, 0.22));
    border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.service-grid,
.highlight-grid,
.team-grid {
    display: grid;
    gap: clamp(1.4rem, 2.8vw, 1.8rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-grid article,
.highlight-grid article,
.team-grid article {
    background: linear-gradient(180deg, rgba(26, 14, 60, 0.95), rgba(10, 4, 28, 0.95));
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.6rem, 3vw, 2.1rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-grid article:hover,
.highlight-grid article:hover,
.team-grid article:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-grid article p,
.highlight-grid article p,
.team-grid article p {
    color: var(--text-muted);
}

.team-grid {
    margin-top: clamp(2rem, 5vw, 2.6rem);
}

.team-grid h3,
.service-grid h3,
.highlight-grid h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.final-cta {
    padding-bottom: clamp(3rem, 7vw, 4rem);
}

.cta-card {
    background: var(--gradient);
    border-radius: calc(var(--radius) * 1.45);
    padding: clamp(2.4rem, 6vw, 3.4rem);
    color: #fff;
    text-align: center;
    box-shadow: 0 32px 64px rgba(8, 0, 32, 0.55);
}

.cta-card p {
    max-width: 520px;
    margin: 1rem auto;
    color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    margin-top: clamp(3rem, 8vw, 4rem);
    padding: clamp(2.6rem, 6vw, 3.2rem) 0 clamp(2rem, 5vw, 2.8rem);
    color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
    display: grid;
    gap: clamp(1.8rem, 3vw, 2.2rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

footer img {
    width: 68px;
    margin-bottom: 0.8rem;
}

footer h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

footer ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.82);
}

.footer-copy {
    margin-top: clamp(1.8rem, 4vw, 2.2rem);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1080px) {
    .hero-copy {
        grid-column: span 12;
    }
    .hero-visual {
        grid-column: span 12;
        margin-top: 2rem;
        justify-content: center;
    }
    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 900px) {
    .menu {
        position: fixed;
        inset: 72px 0 auto 0;
        background: rgba(5, 0, 18, 0.95);
        backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: center;
        gap: 1.6rem;
        padding: 2.5rem 1.5rem 3rem;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    #nav-toggle:checked ~ .menu {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 820px) {
    .hero-copy {
        grid-column: span 12;
    }
    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .two-columns {
        grid-template-columns: 1fr;
    }
    .two-columns > div:first-child,
    .two-columns .card {
        grid-column: span 12;
    }
    main {
        /* padding-top: clamp(4rem, 10vw, 5rem); */
    }
}

@media (max-width: 640px) {
    body {
        line-height: 1.6;
    }
    #hero {
        padding-top: 4rem;
    }
    .hero-actions {
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .hero-media {
        max-width: min(320px, 88vw);
        margin: 0 auto;
    }
    .hero-media figcaption {
        text-align: center;
    }
    .hero-visual {
        margin-top: 1.5rem;
    }
    .keyword-list {
        gap: 0.5rem;
    }
    footer {
        text-align: center;
    }
    footer .wrapper {
        width: min(540px, 92vw);
    }
    .footer-grid {
        justify-items: center;
        text-align: center;
    }
    .footer-grid > div {
        width: 100%;
    }
    footer img {
        margin-inline: auto;
    }
    footer ul {
        justify-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
