:root {
    color-scheme: dark;
    --bg-primary: #05060a;
    --bg-secondary: #0d1118;
    --bg-elevated: rgba(13, 17, 24, 0.85);
    --text-primary: #f5f5f5;
    --text-muted: #b5c0d0;
    --accent: #4ea3ff;
    --accent-hover: #7bb8ff;
    --input-border: rgba(255, 255, 255, 0.12);
    --input-border-focus: rgba(78, 163, 255, 0.55);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0, rgba(78, 163, 255, 0.25), transparent 55%),
        radial-gradient(circle at 80% 0, rgba(140, 82, 255, 0.18), transparent 50%),
        var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.hero {
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 2rem;
    background: var(--bg-elevated);
    border-radius: 32px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
}

.hero__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    position: relative;
}

.hero__logo {
    width: clamp(120px, 30vw, 180px);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.hero__title {
    font-size: clamp(2.75rem, 7vw, 4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.hero__tagline {
    margin: 0;
    font-size: clamp(1.05rem, 3.5vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 520px;
    text-align: center;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.4rem;
    border-radius: 999px;
    background: var(--accent);
    border: none;
    color: var(--bg-primary);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    box-shadow: 0 15px 35px rgba(78, 163, 255, 0.35);
}

.hero__back {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-hover);
    text-decoration: none;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.hero__back:hover,
.hero__back:focus-visible {
    color: #9ec9ff;
}

.hero__cta:hover,
.hero__cta:focus-visible {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(123, 184, 255, 0.4);
}

.hero__cta:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 4px;
}

.contact {
    width: 100%;
    background: rgba(12, 16, 24, 0.6);
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact__title {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact__copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem 1rem;
}

.contact__label {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.contact__label span {
    text-transform: uppercase;
}

.contact__label--full {
    grid-column: 1 / -1;
}

.contact__honeypot {
    display: none;
}

.contact__input,
.contact__textarea {
    background: rgba(7, 9, 13, 0.85);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    font-family: inherit;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact__input:focus,
.contact__textarea:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(78, 163, 255, 0.2);
}

.contact__textarea {
    min-height: 160px;
    resize: vertical;
}

.contact__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer {
    margin-top: 3rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 640px) {
    body {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 2rem 1.5rem;
        border-radius: 24px;
        gap: 1.75rem;
    }

    .hero__back {
        position: static;
        align-self: flex-start;
    }

    .contact {
        padding: 1.75rem 1.25rem;
    }
}
