:root {
    color-scheme: light;
    --surface-page: #e4e1da;
    --surface-card: rgba(246, 246, 243, 0.97);
    --surface-card-strong: #eceeec;
    --border-subtle: rgba(76, 82, 84, 0.22);
    --border-strong: rgba(67, 72, 74, 0.36);
    --text-primary: #252a2c;
    --text-secondary: #62696b;
    --accent: #607f8e;
    --accent-strong: #455f6b;
    --stamp: #a92222;
    --shadow-card: 0 12px 30px rgba(57, 59, 56, 0.10), 0 2px 5px rgba(57, 59, 56, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 13px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--surface-page);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 18% 2%, rgba(255, 255, 255, 0.72), transparent 32rem),
        radial-gradient(circle at 82% 14%, rgba(173, 177, 174, 0.18), transparent 35rem),
        linear-gradient(135deg, #ece9e2 0%, #dfddd6 48%, #e8e5de 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.landing-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.landing-header {
    border-bottom: 1px solid rgba(82, 87, 88, 0.25);
    background: linear-gradient(180deg, rgba(250, 250, 248, 0.96), rgba(226, 228, 226, 0.93));
    box-shadow: 0 2px 12px rgba(50, 53, 52, 0.07);
}

.landing-header__inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.landing-brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(75, 95, 104, 0.42);
    border-radius: 11px;
    background: linear-gradient(145deg, #fafafa 0%, #c8cdce 48%, #f4f5f4 100%);
    color: #3f5f6e;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(73, 80, 82, 0.14);
}

.landing-brand__name {
    font-size: 1.05rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
    gap: 54px;
    align-items: center;
    min-height: 590px;
    padding: 76px 0 64px;
}

.hero-copy {
    max-width: 710px;
}

.hero h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2.25rem, 3.6vw, 3.45rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.hero-lead {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.65;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-point {
    padding: 8px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: rgba(250, 250, 248, 0.62);
    color: #4d5659;
    font-size: 0.86rem;
    font-weight: 720;
}

.auth-card {
    position: relative;
    padding: 30px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(250, 250, 248, 0.98), rgba(225, 227, 225, 0.96));
    box-shadow: var(--shadow-card);
}

.auth-card__title {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.auth-card__subtitle {
    margin: 6px 0 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.google-login {
    position: relative;
    display: flex;
    min-height: 68px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: visible;
    padding: 0 22px;
    border: 1px solid rgba(60, 65, 67, 0.25);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(60, 64, 67, 0.18), 0 1px 2px rgba(60, 64, 67, 0.12);
    color: #3c4043;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 650;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.google-login:hover,
.google-login:focus-visible {
    border-color: rgba(66, 133, 244, 0.42);
    box-shadow: 0 4px 10px rgba(60, 64, 67, 0.20), 0 1px 3px rgba(60, 64, 67, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.google-mark {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        #4285f4 0deg 105deg,
        #34a853 105deg 190deg,
        #fbbc05 190deg 255deg,
        #ea4335 255deg 360deg
    );
}

.google-mark::before {
    content: "";
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
}

.google-mark::after {
    content: "";
    position: absolute;
    right: 0;
    width: 14px;
    height: 7px;
    background: #4285f4;
}

.registration-stamp {
    pointer-events: none;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(88%, 330px);
    transform: translate(-50%, -50%) rotate(-7deg);
    border: 4px double var(--stamp);
    border-radius: 7px;
    color: var(--stamp);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 0 0 2px rgba(169, 34, 34, 0.08);
    font-size: clamp(0.78rem, 2.1vw, 1.08rem);
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

.registration-stamp span {
    display: block;
    padding: 7px 8px 6px;
}

.registration-stamp::before,
.registration-stamp::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-top: 1px solid rgba(169, 34, 34, 0.58);
    border-bottom: 1px solid rgba(169, 34, 34, 0.58);
}

.registration-stamp::after {
    inset: 8px -4px;
    border-top-width: 2px;
    border-bottom-width: 0;
    opacity: 0.42;
    transform: rotate(1deg);
}

.auth-note {
    margin: 18px 2px 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    text-align: center;
}

.landing-showcase {
    grid-column: 1 / -1;
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.landing-showcase img {
    display: block;
    max-width: 100%;
    max-height: 620px;
    width: auto;
    height: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
}

.feature-section {
    padding: 8px 0 78px;
}

.feature-section h2 {
    margin: 0 0 24px;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    letter-spacing: -0.045em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    min-height: 205px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    box-shadow: var(--shadow-card);
}

.feature-card__index {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(75, 95, 104, 0.28);
    border-radius: 10px;
    background: var(--surface-card-strong);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 850;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.landing-footer {
    border-top: 1px solid rgba(82, 87, 88, 0.24);
    background: rgba(244, 244, 241, 0.58);
}

.landing-footer__inner {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.84rem;
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: auto;
        padding: 58px 0 50px;
    }

    .hero-copy {
        max-width: none;
    }

    .auth-card {
        width: 100%;
        max-width: 560px;
    }

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

    .feature-card {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .landing-shell {
        width: min(100% - 24px, 1180px);
    }

    .landing-header__inner {
        min-height: 62px;
    }

    .landing-brand__name {
        font-size: 0.98rem;
    }

    .hero {
        padding-top: 44px;
    }

    .hero h1 {
        font-size: clamp(2.05rem, 9vw, 2.8rem);
    }

    .hero-lead {
        margin-top: 20px;
        font-size: 1rem;
    }

    .auth-card {
        padding: 22px;
        border-radius: 19px;
    }

    .google-login {
        min-height: 64px;
        padding: 0 14px;
    }

    .registration-stamp {
        width: 94%;
        border-width: 3px;
        letter-spacing: 0.055em;
    }

    .landing-showcase img {
        border-radius: 14px;
    }

    .feature-section {
        padding-bottom: 56px;
    }

    .landing-footer__inner {
        justify-content: flex-start;
        padding: 24px 0;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}
