/* Палитра и шрифт как на predein.com: Inter, тёмное стекло, синий и фиолетовый.
   Файл fonts/Inter.var.woff2 на самом сайте оказался HTML-страницей, не шрифтом.
   Здесь официальный Inter Variable (SIL OFL 1.1, fonts/OFL.txt). */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/Inter.var.woff2") format("woff2");
}

:root {
    --bg-deep: #0a0a1a;
    --bg-mid: #1a1a3e;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
    --accent-pink: #f472b6;
    --accent-cyan: #22d3ee;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font);
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    color: var(--accent-purple);
}

a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0.75rem 1.5rem;
    background: var(--accent-blue);
    color: var(--bg-deep);
    font-weight: 600;
    border-radius: var(--radius-pill);
}

.skip-link:focus {
    top: 1rem;
}

.orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: clamp(280px, 40vw, 560px);
    height: clamp(280px, 40vw, 560px);
    background: radial-gradient(circle, rgba(96, 165, 250, 0.35), transparent 70%);
    top: -12%;
    left: -10%;
    animation: drift-1 25s ease-in-out infinite;
}

.orb-2 {
    width: clamp(240px, 34vw, 480px);
    height: clamp(240px, 34vw, 480px);
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent 70%);
    top: 28%;
    right: -12%;
    animation: drift-2 30s ease-in-out infinite;
}

.orb-3 {
    width: clamp(200px, 28vw, 420px);
    height: clamp(200px, 28vw, 420px);
    background: radial-gradient(circle, rgba(244, 114, 182, 0.25), transparent 70%);
    bottom: 8%;
    left: 18%;
    animation: drift-3 22s ease-in-out infinite;
}

.orb-4 {
    width: clamp(180px, 24vw, 360px);
    height: clamp(180px, 24vw, 360px);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
    bottom: -6%;
    right: 12%;
    animation: drift-4 34s ease-in-out infinite;
}

@keyframes drift-1 {
    50% { transform: translate(40px, 70px) scale(1.06); }
}

@keyframes drift-2 {
    50% { transform: translate(-50px, 40px) scale(0.94); }
}

@keyframes drift-3 {
    50% { transform: translate(70px, -40px) scale(1.08); }
}

@keyframes drift-4 {
    50% { transform: translate(-30px, -50px) scale(1.04); }
}

.top {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.brand {
    display: inline-flex;
    padding: 0.45rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.brand:hover img {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 5.5rem);
    padding: 1.25rem 1rem 2.5rem;
}

.card {
    width: min(640px, 100%);
    padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(96, 165, 250, 0.08);
}

.sign {
    margin: 0 auto 1.25rem;
    width: min(280px, 78vw);
}

.sign svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.7rem, 4.6vw, 2.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-blue) 40%, var(--accent-purple) 70%, var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0 auto 1.5rem;
    max-width: 38rem;
    color: var(--text-secondary);
}

.cta {
    margin: 0;
}

.cta a {
    display: inline-flex;
    align-items: center;
    padding: 0.65em 1.4em;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
}

.cta a:hover {
    color: var(--text-primary);
    border-color: var(--glass-hover);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.12);
}

@media (max-width: 380px) {
    .card {
        padding-inline: 1rem;
    }

    .lead {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orb {
        animation: none;
    }
}
