@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
    --bg-deep: #010513;
    --bg-panel: #050b18;
    --bg-card: #0b1428;
    --border: rgba(255, 255, 255, 0.08);
    --text-muted: #b3c3de;
    --accent: #ff846b;
}

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

body {
    font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background-image: linear-gradient(180deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0.92)), url("../images/star_background.jpg"), url("../images/bottom_trans.png");
    background-size: cover, cover, 100% auto;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center, center, bottom center;
    background-attachment: fixed, fixed, scroll;
    color: #f4f7ff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
    border-radius: 28px;
    border: none;
    box-shadow: 0 25px 55px rgba(2, 6, 18, 0.7);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 32px;
}

header {
    width: 100%;
    padding: 20px 0;
    background: rgba(3, 7, 15, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 5;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 180px;
}

header nav ul {
    display: flex;
    gap: 32px;
    font-size: 0.96rem;
    letter-spacing: 0.03em;
}

header nav a {
    color: #7fb2ff;
    font-weight: 500;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: #ffffff;
}

main {
    padding-bottom: 110px;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
}

section h1,
section h2,
section p {
    text-align: center;
    margin: 0;
}

section h1 {
    font-size: clamp(2.4rem, 4.2vw, 4rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

section h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 24px;
    color: #f6f8ff;
}

section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero {
    position: relative;
    text-align: center;
    padding: clamp(175px, 33vh, 250px) 0 150px;
    background-image: url("../images/star_background.jpg");
    background-size: cover;
    background-position: 52% 50%;
    background-attachment: fixed;
    border-bottom: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 4, 12, 0.05) 0%, rgba(1, 4, 12, 0.72) 55%, rgba(3, 7, 18, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 58% 45%, rgba(90, 167, 255, 0.28), transparent 55%);
    mix-blend-mode: screen;
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 3;
    max-width: 980px;
    padding-top: 85px;
}

.hero-art {
    position: absolute;
    top: clamp(-85px, -1vh, 8px);
    left: 50%;
    width: min(1000px, 120vw);
    transform: translateX(-85%);
    pointer-events: none;
    z-index: 2;
    display: block;
    filter: drop-shadow(0 30px 55px rgba(2, 6, 18, 0.75));
}

.hero-art img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.hero h1 {
    font-size: clamp(2.2rem, 3vw, 3.1rem);
    color: #f7f9ff;
    text-shadow: 0 25px 50px rgba(1, 5, 15, 0.8);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.05rem;
    color: #e6eeff;
    margin-bottom: 38px;
}

.buttons {
    margin-top: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.btn {
    padding: 15px 34px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: none;
    min-width: 220px;
}

.btn-primary {
    background: linear-gradient(120deg, #ffb579, var(--accent));
    color: #220c01;
    box-shadow: 0 25px 40px rgba(255, 148, 104, 0.45);
}

.btn-secondary {
    background: rgba(7, 10, 24, 0.92);
    color: #f2f4ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.btn:hover {
    transform: translateY(-4px);
}

.magic-trick-panel {
    margin: 120px auto 50px;
    max-width: 860px;
    padding: 42px 46px;
    border-radius: 36px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.magic-trick-panel h2 {
    margin-bottom: 30px;
    color: #f8f9ff;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
}

.magic-trick-panel__lead {
    color: #dce4ff;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.magic-trick-panel__image-frame {
    width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
}

.magic-trick-panel__image {
    width: 100%;
    border-radius: 24px;
    border: none;
    box-shadow: none;
    background: transparent;
    display: block;
    max-width: 100%;
    transform: none;
    margin: 0 auto;
}

.dashboard {
    background: transparent;
    margin-top: -150px;
}

.dashboard .container {
    max-width: 1180px;
}

.dashboard__content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: transparent;
    border: none;
    border-radius: 36px;
    padding: 42px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}


.dashboard__text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.dashboard__text p {
    text-align: left;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dashboard__visual img {
    border-radius: 32px;
    opacity: 0.85;
    transform: scale(1.08);
}

.continuous-improvement,
.plays-nicely,
.deployment {
    background: transparent;
}

.plays-nicely-logos {
    max-width: 720px;
    width: 88%;
    margin: 0 auto;
}

.plays-nicely__text {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 32px;
}

.ready {
    position: relative;
    padding: 140px 0;
    background: transparent;
    border-bottom: none;
    overflow: hidden;
}

.ready::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/bottom_trans.png") no-repeat center bottom;
    background-size: clamp(520px, 95vw, 1600px);
    pointer-events: none;
    z-index: 0;
}

.continuous-improvement .container,
.plays-nicely .container,
.deployment .container {
    max-width: 1180px;
}

section:not(.hero) img {
    border-radius: 32px;
}

.ready .container {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ready h2 {
    margin-bottom: 28px;
}

.ready .btn-primary {
    font-size: 1.05rem;
    padding-inline: 48px;
}

footer {
    background: #050915;
    padding: 60px 0;
    text-align: center;
}

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

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

footer nav a {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

footer nav a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    header {
        position: static;
        padding: 10px 0;
    }

    header .container {
        flex-direction: column;
        gap: 10px;
    }

    header nav ul {
        gap: 16px;
    }

    .hero {
        background-attachment: fixed;
        padding: 140px 0 120px;
    }

    .hero .container {
        padding-top: 100px;
    }

    .hero-art {
        width: min(1020px, 165vw);
        transform: translateX(-95%);
        top: clamp(-20px, 4vh, 40px);
    }

    .magic-trick-panel {
        margin-top: 90px;
        padding: 32px;
        border-radius: 28px;
    }

    .dashboard__content {
        flex-direction: column;
        text-align: center;
    }

    .dashboard__content--reverse {
        flex-direction: column-reverse;
    }

    .dashboard__text h2,
    .dashboard__text p {
        text-align: center;
    }

    section {
        padding: 80px 0;
    }

    footer .container {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 22px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-art {
        width: min(820px, 185vw);
        transform: translateX(-72%);
        top: clamp(-55px, 0vh, 20px);
    }

    .magic-trick-panel {
        padding: 26px;
    }

    .magic-trick-panel__image-frame {
        max-width: 420px;
        margin: 0 auto 32px;
    }

    .magic-trick-panel__image {
        width: 180%;
        max-width: none;
        transform: translateX(-48%);
    }

    .plays-nicely {
        padding-bottom: 0px;
    }

    .plays-nicely__text {
        width: 88%;
        max-width: 640px;
        margin: 0 auto 32px;
    }

    .dashboard__content {
        gap: 26px;
        padding: 0;
        width: 100%;
    }

    .dashboard {
        margin-top: -53px;
        padding: 40px 0 140px;
    }

    .dashboard__text {
        width: 100%;
    }

    .dashboard__text h2,
    .dashboard__text p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard__content--reverse {
        gap: 18px;
        margin-top: 60px;
    }

    .dashboard__text h2 {
        margin-bottom: 12px;
    }

    .dashboard__text p {
        margin-bottom: 0;
    }

    .btn {
        width: 100%;
    }

    .ready {
        padding: 90px 0 120px;
    }
}
.dashboard__visual img {
    opacity: 0.85;
}
