:root {
    --background: #f8f9fc;
    --surface: #ffffff;
    --surface-soft: #f3f5fa;

    --text: #151821;
    --text-secondary: #606879;
    --text-muted: #8991a0;

    --border: #e5e8ef;

    --primary: #3157d5;
    --primary-hover: #284bc0;
    --primary-soft: #edf1ff;

    --shadow:
        0 18px 55px rgba(30, 40, 70, 0.08);

    --header-background:
        rgba(248, 249, 252, 0.84);
}


html[data-theme="dark"] {
    --background: #101217;
    --surface: #171a21;
    --surface-soft: #1e222b;

    --text: #f4f5f7;
    --text-secondary: #b2b8c5;
    --text-muted: #7e8798;

    --border: #292e38;

    --primary: #6687f3;
    --primary-hover: #7895f6;
    --primary-soft: #202a4a;

    --shadow:
        0 20px 65px rgba(0, 0, 0, 0.25);

    --header-background:
        rgba(16, 18, 23, 0.86);
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    border-bottom: 1px solid transparent;

    background: var(--header-background);
    backdrop-filter: blur(18px);
}


.nav-container {
    width: min(1160px, calc(100% - 40px));
    height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--text);
    text-decoration: none;

    font-size: 16px;
    font-weight: 720;
    letter-spacing: -0.02em;
}


.brand-mark {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--primary);
}


.brand-mark svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: white;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.theme-toggle {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
    color: var(--text);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}


.theme-toggle span {
    grid-area: 1 / 1;
}


.theme-moon {
    display: none;
}


html[data-theme="dark"] .theme-sun {
    display: none;
}


html[data-theme="dark"] .theme-moon {
    display: block;
}


.hero {
    width: min(1160px, calc(100% - 40px));

    margin: 0 auto;

    padding: 86px 0 92px;
}


.hero-content {
    min-height: 510px;

    display: grid;
    grid-template-columns:
        minmax(0, 0.93fr)
        minmax(380px, 1.07fr);

    align-items: center;
    gap: 58px;
}


.eyebrow,
.section-label {
    display: inline-flex;

    padding: 6px 10px;

    border: 1px solid #dce3fb;
    border-radius: 7px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.hero h1 {
    max-width: 610px;

    margin: 21px 0 20px;

    font-size: clamp(45px, 5.4vw, 70px);
    line-height: 0.99;
    letter-spacing: -0.055em;
    font-weight: 750;
}


.hero h1 span {
    color: var(--primary);
}


.hero-description {
    max-width: 590px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.7;
}


.hero-points {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}


.hero-points div {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;
}


.hero-points span {
    width: 20px;
    height: 20px;

    display: inline-grid;
    place-items: center;

    border-radius: 50%;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 10px;
}


.hero-art {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-art-backdrop {
    position: absolute;

    width: 82%;
    height: 78%;

    border: 1px solid var(--border);
    border-radius: 42px;

    background: var(--surface-soft);

    transform: rotate(-3deg);
}


.hero-art img {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 570px;
    max-height: 500px;

    object-fit: contain;

    filter:
        drop-shadow(0 24px 30px rgba(30, 45, 90, 0.10));
}


html[data-theme="dark"] .hero-art img {
    filter:
        brightness(0.91)
        contrast(1.03)
        drop-shadow(0 24px 30px rgba(0, 0, 0, 0.18));
}


.features {
    padding: 100px 20px;

    border-top: 1px solid var(--border);

    background: var(--surface);
}


.section-heading {
    width: min(720px, 100%);

    margin: 0 auto 52px;

    text-align: center;
}


.section-heading > span {
    color: var(--primary);

    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


.section-heading h2,
.demo-copy h2 {
    margin: 12px 0 14px;

    color: var(--text);

    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}


.section-heading p,
.demo-copy p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 15px;
}


.feature-grid {
    width: min(1080px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}


.feature-card {
    padding: 27px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--background);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.feature-card:hover {
    transform: translateY(-3px);

    border-color: #cbd4f2;

    box-shadow: var(--shadow);
}


.feature-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    margin-bottom: 19px;

    border-radius: 9px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 10px;
    font-weight: 750;
}


.feature-card h3 {
    margin: 0 0 8px;

    font-size: 16px;
    letter-spacing: -0.02em;
}


.feature-card p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


.demo-section {
    width: min(1160px, calc(100% - 40px));

    margin: 0 auto;

    padding: 105px 0;
}


.demo-shell {
    padding: 58px;

    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 70px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: var(--surface);

    box-shadow: var(--shadow);
}


.demo-copy {
    max-width: 510px;
}


.demo-button {
    margin-top: 27px;

    padding: 11px 17px;

    border: 0;
    border-radius: 9px;

    background: var(--primary);
    color: white;

    font-size: 13px;
    font-weight: 650;
}


.demo-button:hover {
    background: var(--primary-hover);
}


.otp-demo {
    display: flex;
    justify-content: center;
}


.demo-phone {
    width: min(100%, 370px);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--background);

    box-shadow:
        0 20px 45px rgba(20, 30, 60, 0.08);
}


.demo-phone-top {
    padding: 14px 18px;

    display: flex;
    align-items: center;
    gap: 8px;

    border-bottom: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 650;
}


.demo-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--primary);
}


.demo-phone-body {
    padding: 42px 24px 38px;

    text-align: center;
}


.demo-shield {
    width: 45px;
    height: 45px;

    margin: 0 auto 17px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 18px;
    font-weight: 750;
}


.demo-phone h3 {
    margin: 0;

    font-size: 16px;
}


.demo-phone p {
    margin: 7px 0 24px;

    color: var(--text-secondary);

    font-size: 11px;
}


.otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
}


.otp-boxes span {
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--surface);

    color: var(--text);

    font-size: 16px;
    font-weight: 720;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}


.otp-boxes span.filled {
    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-2px);
}


.demo-status {
    margin-top: 17px;

    color: var(--text-muted);

    font-size: 10px;
}


.security-strip {
    padding: 0 20px 100px;
}


.security-strip > div {
    width: min(1080px, 100%);

    margin: 0 auto;

    padding: 25px 30px;

    display: flex;
    align-items: center;
    gap: 15px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--surface);
}


.security-mark {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: var(--primary-soft);
}


.security-mark svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: var(--primary);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.security-strip strong {
    display: block;

    font-size: 13px;
}


.security-strip p {
    margin: 2px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
}


.site-footer {
    border-top: 1px solid var(--border);

    background: var(--surface);
}


.footer-inner {
    width: min(1160px, calc(100% - 40px));
    min-height: 95px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


.footer-inner > div:first-child {
    display: flex;
    flex-direction: column;
}


.footer-inner strong {
    font-size: 12px;
}


.footer-inner span {
    color: var(--text-muted);

    font-size: 10px;
}


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


.footer-shield {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;

    background: transparent;
    color: var(--text-muted);

    opacity: 0.7;

    cursor: default;
}


.footer-shield svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}


@media (max-width: 900px) {

    .hero {
        padding-top: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-points {
        justify-content: center;
    }

    .hero-art {
        min-height: auto;
    }

    .hero-art img {
        max-height: 420px;
    }

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

    .demo-shell {
        grid-template-columns: 1fr;

        gap: 45px;

        padding: 45px;
    }

    .demo-copy {
        max-width: none;

        text-align: center;
    }

}


@media (max-width: 600px) {

    .nav-container,
    .hero,
    .footer-inner {
        width: min(100% - 28px, 1160px);
    }

    .nav-container {
        height: 64px;
    }

    .hero {
        padding: 48px 0 65px;
    }

    .hero-content {
        min-height: auto;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-points {
        gap: 10px 15px;
    }

    .hero-points div {
        font-size: 11px;
    }

    .hero-art {
        margin-top: 7px;
    }

    .hero-art-backdrop {
        border-radius: 26px;
    }

    .features {
        padding: 72px 14px;
    }

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

    .section-heading {
        margin-bottom: 35px;
    }

    .demo-section {
        width: calc(100% - 28px);

        padding: 72px 0;
    }

    .demo-shell {
        padding: 31px 18px;

        border-radius: 18px;
    }

    .otp-boxes {
        gap: 4px;
    }

    .demo-phone-body {
        padding-inline: 16px;
    }

    .security-strip {
        padding: 0 14px 72px;
    }

    .security-strip > div {
        padding: 20px;
    }

    .footer-inner {
        min-height: 112px;

        align-items: flex-start;
        flex-direction: column;

        padding: 26px 0;
    }

    .footer-right {
        width: 100%;

        justify-content: space-between;
    }

}

/* ==================================================
   Theme
================================================== */

html[data-theme="dark"] {
    --background: #101217;
    --surface: #171a21;
    --surface-soft: #1e222b;

    --text: #f3f4f6;
    --text-secondary: #b2b8c5;
    --text-muted: #7f8899;

    --border: #292e38;

    --primary: #6687f3;
    --primary-hover: #7895f6;
    --primary-soft: #202a4a;

    color-scheme: dark;
}


html[data-theme="dark"] body {
    background: var(--background);
    color: var(--text);
}


html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .login-card {
    background: var(--surface);
    border-color: var(--border);

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.28);
}


html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong {
    color: var(--text);
}


html[data-theme="dark"] p,
html[data-theme="dark"] label {
    color: var(--text-secondary);
}


html[data-theme="dark"] input {
    background: #11141a;
    border-color: var(--border);
    color: var(--text);
}


html[data-theme="dark"] input::placeholder {
    color: var(--text-muted);
}


html[data-theme="dark"] input:focus {
    border-color: var(--primary);
}


.auth-theme-toggle {
    width: 35px;
    height: 35px;

    display: inline-grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}


.auth-theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}


.auth-theme-toggle span {
    grid-area: 1 / 1;

    font-size: 14px;
    line-height: 1;
}


.auth-theme-toggle .theme-icon-dark {
    display: none;
}


html[data-theme="dark"]
.auth-theme-toggle
.theme-icon-light {
    display: none;
}


html[data-theme="dark"]
.auth-theme-toggle
.theme-icon-dark {
    display: block;
}