:root {
    color-scheme: light;
    --ink: var(--relionos-color-text, #202327);
    --muted: var(--relionos-color-text-secondary, #606870);
    --line: var(--relionos-color-border, #dfe3e8);
    --surface: var(--relionos-color-background, #f7f8fa);
    --panel: var(--relionos-color-paper, #ffffff);
    --shell: var(--relionos-color-shell, #f1f3f5);
    --accent: var(--relionos-color-brand, #2172a6);
    --accent-dark: var(--relionos-color-primary, #163963);
    --accent-darker: var(--relionos-color-primary-dark, #102c4d);
    --control-radius: var(--relionos-radius-control, 6px);
    --surface-radius: var(--relionos-radius-surface, 10px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 69px;
}

body {
    margin: 0;
    min-height: 100%;
    overflow: auto;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--relionos-font-interface, "IBM Plex Sans", "Segoe UI", sans-serif);
    line-height: 1.55;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 10;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
}

.site-header,
.site-footer,
.section {
    padding-inline: clamp(20px, 5vw, 72px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(241, 243, 245, 0.94);
    border-bottom: 1px solid rgba(223, 227, 232, 0.9);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    min-height: 68px;
    margin: 0 auto;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 34px;
    height: auto;
    flex: 0 0 auto;
}

.brand-wordmark {
    font-family: var(--relionos-font-company, "Orbitron", "Segoe UI", sans-serif);
    font-size: 1.62rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

.nav-links a {
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--ink);
}

.hero {
    padding-top: clamp(56px, 8vw, 104px);
    padding-bottom: clamp(52px, 7vw, 92px);
    background:
        linear-gradient(115deg, rgba(33, 114, 166, 0.14), rgba(22, 57, 99, 0.08) 48%, transparent),
        var(--surface);
}

.full-screen {
    min-height: calc(100svh - 69px);
    display: flex;
    align-items: center;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: clamp(32px, 6vw, 76px);
}

.hero-centered {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
}

.hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 980px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
}

h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 6.2vw, 5.6rem);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-centered h1 {
    max-width: 980px;
}

.hero-headline {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    justify-items: center;
    gap: 0.04em;
}

.headline-line {
    display: block;
}

.headline-context {
    font-size: clamp(2.2rem, 5vw, 4.35rem);
}

.headline-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.16em 0.26em;
    max-width: min(100%, 980px);
    margin: 0.34em 0 0.2em;
    font-size: clamp(1.44rem, 2.9vw, 2.47rem);
    line-height: 1.18;
}

.typewriter-word {
    display: inline-block;
    min-width: var(--typewriter-width, 1ch);
    max-width: 100%;
    color: var(--accent-dark);
    text-align: center;
    white-space: nowrap;
}

.word-option {
    min-height: 0;
    padding: 0 0.02em 0.08em;
    border: 0;
    border-bottom: 0.06em solid transparent;
    background: transparent;
    color: #96a0ae;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    letter-spacing: 0;
    opacity: 0.68;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.word-option:hover,
.word-option:focus-visible {
    color: var(--ink);
    opacity: 0.95;
}

.word-option.is-active {
    border-bottom-color: currentColor;
    color: var(--accent-dark);
    opacity: 1;
}

.typewriter-word::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 0.82em;
    margin-left: 0.05em;
    background: currentColor;
    transform: translateY(0.08em);
    animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

.hero p {
    max-width: 720px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-centered p {
    margin-right: auto;
    margin-left: auto;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-centered .actions {
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--accent-dark);
    border-radius: var(--control-radius);
    background: var(--accent-dark);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary {
    background: transparent;
    color: var(--accent-dark);
}

.button:hover {
    border-color: var(--accent-darker);
    background: var(--accent-darker);
}

.button.secondary:hover {
    background: rgba(22, 57, 99, 0.06);
    color: var(--accent-darker);
}

.signal-panel {
    position: relative;
    align-self: center;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--surface-radius);
    background:
        linear-gradient(rgba(18, 20, 23, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 20, 23, 0.045) 1px, transparent 1px),
        var(--panel);
    background-size: 44px 44px;
    box-shadow: var(--relionos-shadow-raised, 0 20px 55px rgba(22, 57, 99, 0.08));
    overflow: hidden;
}

.signal-panel canvas {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.section {
    padding-top: clamp(52px, 7vw, 84px);
    padding-bottom: clamp(52px, 7vw, 84px);
}

.section.alt {
    background: var(--panel);
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 720px;
    margin-bottom: 30px;
}

.section h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.section p {
    color: var(--muted);
    font-size: 1.05rem;
}

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

.feature,
.teaser {
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--surface-radius);
    background: var(--panel);
}

.feature h3,
.teaser h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.feature p,
.teaser p {
    margin-bottom: 0;
}

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 28px;
    align-items: start;
    padding: clamp(28px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--surface-radius);
    background: var(--panel);
}

.newsletter > * {
    min-width: 0;
}

#newsletter {
    background: var(--surface);
}

.newsletter h2 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.newsletter-contact {
    margin-top: 26px;
}

.newsletter-contact p {
    margin-bottom: 12px;
}

.newsletter-form {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.newsletter-turnstile {
    width: 100%;
    min-width: 0;
}

.newsletter-form label {
    font-weight: 600;
}

.newsletter-form input[type="email"] {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    font: inherit;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: var(--relionos-focus-ring, 0 0 0 3px rgba(33, 114, 166, 0.22));
    outline: none;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.35;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.newsletter-form .button {
    width: fit-content;
}

.form-status {
    min-height: 1.4em;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.form-status[data-state="error"] {
    color: #b42318;
}

.form-status[data-state="success"] {
    color: var(--accent-dark);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.small {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.legal-main {
    background: var(--panel);
}

.legal-section {
    min-height: calc(100svh - 69px);
    background: var(--panel);
}

.legal-content {
    max-width: 780px;
}

.legal-content h1 {
    max-width: none;
    margin-bottom: 36px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
}

.legal-content section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin-bottom: 10px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.2;
}

.legal-content p,
.legal-content address {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1.05rem;
    font-style: normal;
}

.legal-content ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.legal-content li + li {
    margin-top: 0.35rem;
}

.legal-content a {
    color: var(--ink);
}

.site-footer {
    padding-top: 34px;
    padding-bottom: 34px;
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-grid a {
    color: var(--ink);
}

@media (max-width: 840px) {
    .nav {
        min-height: 64px;
        gap: 16px;
    }

    .nav-links {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .hero-grid,
    .feature-grid,
    .teaser-grid,
    .newsletter {
        grid-template-columns: 1fr;
    }

    .feature,
    .teaser {
        min-height: auto;
    }

    .full-screen {
        min-height: calc(100svh - 65px);
    }

    .hero {
        padding-top: clamp(40px, 10vw, 64px);
        padding-bottom: clamp(40px, 10vw, 64px);
    }

    h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.02;
    }

    .headline-context {
        font-size: clamp(1.85rem, 9vw, 2.45rem);
    }

    .headline-picker {
        width: 100%;
        gap: 0.16em 0.22em;
        font-size: clamp(1.1rem, 5.4vw, 1.45rem);
    }

    .typewriter-word {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero p {
        font-size: clamp(1rem, 4.5vw, 1.14rem);
    }
}

@media (max-width: 560px) {
    .site-header,
    .site-footer,
    .section {
        padding-inline: clamp(12px, 4vw, 20px);
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 31px;
    }

    .brand-wordmark {
        font-size: 1.42rem;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    .eyebrow {
        font-size: 0.78rem;
    }

    .actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .actions .button,
    .newsletter-contact .button,
    .newsletter-form .button {
        width: 100%;
    }

    .newsletter {
        gap: 32px;
        padding: clamp(16px, 5vw, 24px);
    }

    .newsletter h2 {
        font-size: clamp(1.65rem, 8vw, 2.1rem);
    }

    .checkbox-field {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
