:root {
    --purple: #6d28d9;
    --purple-dark: #4c1d95;
    --purple-light: #ede9fe;

    --black: #111111;
    --dark: #18181b;
    --white: #ffffff;

    --gray: #666666;
    --light: #f7f7f9;
    --border: #e5e5e7;

    --radius: 18px;
    --shadow: 0 15px 40px rgba(0,0,0,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* HEADER */

.header {
    background: var(--black);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 10px;
    background: var(--purple);
    display: grid;
    place-items: center;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    padding: 10px 12px;
    color: #ddd;
    font-size: 14px;
    border-radius: 8px;
}

nav a:hover,
nav a.active {
    color: white;
    background: var(--purple);
}

.login-btn {
    margin-left: 8px;
    background: white !important;
    color: var(--black) !important;
}

.login-btn:hover {
    background: var(--purple-light) !important;
    color: var(--purple-dark) !important;
}

.menu-btn {
    display: none;
    background: transparent;
    border: 0;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* HERO */

.hero {
    background:
            radial-gradient(circle at 80% 20%, rgba(109,40,217,.45), transparent 35%),
            linear-gradient(135deg, #090909, #191919);
    color: white;
    padding: 100px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 70px;
}

.badge,
.section-heading span,
.page-hero span,
.section-label {
    display: inline-block;
    color: #c4b5fd;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin: 18px 0;
}

.hero h1 span {
    color: #a78bfa;
}

.hero p {
    max-width: 620px;
    color: #ccc;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}

.btn.primary {
    background: var(--purple);
    color: white;
}

.btn.primary:hover {
    background: var(--purple-dark);
}

.btn.secondary {
    border: 1px solid #555;
    color: white;
    background: transparent;
}

.btn.white {
    background: white;
    color: var(--purple-dark);
}

.btn.small {
    padding: 9px 15px;
    font-size: 13px;
    background: var(--purple);
    color: white;
}

/* COMPUTER */

.hero-visual {
    display: flex;
    justify-content: center;
}

.computer {
    width: 380px;
}

.screen {
    height: 240px;
    background: white;
    border: 10px solid #333;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.screen-top {
    height: 18px;
    width: 60px;
    background: var(--purple);
    border-radius: 10px;
    margin-bottom: 25px;
}

.screen-line {
    height: 12px;
    width: 75%;
    background: #ddd;
    margin: 12px 0;
    border-radius: 10px;
}

.screen-line.big {
    width: 90%;
    height: 20px;
    background: var(--purple-light);
}

.screen-box {
    margin-top: 20px;
    width: 45%;
    height: 45px;
    background: var(--purple);
    border-radius: 8px;
}

.computer-stand {
    width: 70px;
    height: 45px;
    background: #333;
    margin: auto;
}

.computer-base {
    width: 180px;
    height: 14px;
    background: #333;
    border-radius: 20px;
    margin: auto;
}

/* SECTIONS */

.section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 38px;
    margin: 8px 0;
}

.section-heading p {
    color: var(--gray);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: .25s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #c4b5fd;
}

.card .icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--purple-light);
    color: var(--purple-dark);
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--gray);
    margin-bottom: 18px;
}

.card a {
    color: var(--purple-dark);
    font-weight: bold;
}

/* DARK SECTION */

.dark-section {
    background: var(--black);
    color: white;
}

.about-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-home h2 {
    font-size: 40px;
}

.about-home p {
    color: #ccc;
    margin-bottom: 25px;
}

/* PAGE HERO */

.page-hero {
    background:
            linear-gradient(135deg, #111, #261044);
    color: white;
    padding: 75px 0;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    margin: 8px 0;
}

.page-hero p {
    color: #ccc;
}

/* CONTENT */

.content,
.legal-content {
    max-width: 900px;
}

.content h2,
.legal-content h2 {
    margin: 35px 0 10px;
    font-size: 30px;
}

.content p,
.legal-content p {
    color: #555;
    margin-bottom: 15px;
}

/* TUTORIAL */

.tutorial-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--purple);
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* BOOK */

.book-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
}

.book-cover {
    height: 220px;
    background: linear-gradient(135deg, var(--black), var(--purple));
    color: white;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: bold;
}

.book-body {
    padding: 25px;
}

.book-body p {
    color: var(--gray);
    margin: 10px 0 20px;
}

/* APP */

.app-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.app-icon {
    width: 75px;
    height: 75px;
    border: 3px solid var(--purple);
    border-radius: 20px;
    background: var(--black);
    color: white;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
}

.version {
    font-size: 12px;
    padding: 5px 10px;
    background: var(--purple-light);
    color: var(--purple-dark);
    border-radius: 20px;
}

/* DOWNLOAD */

.download-list {
    max-width: 900px;
    margin: auto;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.download-item h3 {
    margin: 7px 0;
}

.download-item p {
    color: var(--gray);
}

.file-type {
    color: var(--purple);
    font-size: 12px;
    font-weight: bold;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-grid h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.contact-grid p {
    color: var(--gray);
}

.contact-info {
    margin-top: 30px;
}

.contact-form {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 15px 0 7px;
}

input,
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--purple);
}

/* CTA */

.cta {
    padding: 80px 0;
    background: var(--purple);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 40px;
}

.cta p {
    margin: 10px 0 25px;
}

/* FOOTER */

.footer {
    background: var(--black);
    color: white;
}

.footer-grid {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer p {
    color: #aaa;
    margin-top: 15px;
}

.footer h4 {
    margin-bottom: 15px;
}

.footer-grid > div > a:not(.logo) {
    display: block;
    color: #aaa;
    margin: 7px 0;
}

.footer-grid > div > a:not(.logo):hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #292929;
    padding: 20px;
    color: #888;
    font-size: 13px;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    background:
            radial-gradient(circle at top right, #6d28d9, transparent 35%),
            #111;
    display: grid;
    place-items: center;
    padding: 30px;
}

.login-box {
    width: min(430px, 100%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.login-logo {
    color: var(--black);
    margin-bottom: 30px;
}

.login-box h1 {
    font-size: 32px;
}

.muted {
    color: var(--gray);
}

.full {
    width: 100%;
    margin-top: 20px;
}

.remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 15px;
}

.remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.remember input {
    width: auto;
}

.remember a {
    color: var(--purple);
}

.back-home {
    text-align: center;
    margin-top: 25px;
    color: var(--purple-dark);
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    nav a {
        padding: 8px;
        font-size: 13px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid.three {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {

    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--black);
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        z-index: 100;
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 12px;
    }

    .login-btn {
        margin-left: 0;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-visual {
        order: -1;
    }

    .computer {
        width: min(350px, 90%);
    }

    .about-home,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .card-grid.three {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .download-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 450px) {

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .login-box {
        padding: 28px;
    }
}