/* domaintieto.fi visual system */

:root {
    --pico-font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pico-border-radius: 8px;
    --pico-primary: #44f2c0;
    --pico-primary-background: #23c59b;
    --pico-primary-border: #44f2c0;
    --pico-primary-hover: #8effda;
    --pico-color: #f5f7f2;
    --pico-muted-color: #aab5ad;
    --pico-background-color: #080a10;
    --bg: #080a10;
    --bg-soft: #0c1017;
    --panel: rgba(15, 19, 25, 0.88);
    --panel-strong: rgba(18, 24, 31, 0.95);
    --line: rgba(255, 255, 255, 0.14);
    --line-bright: rgba(68, 242, 192, 0.35);
    --text: #f5f7f2;
    --muted: #aab5ad;
    --accent: #44f2c0;
    --accent-warm: #f0d66b;
    --accent-red: #ff7a7a;
    --launch: #ff9d4a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
    letter-spacing: 0;
}

html {
    min-height: 100%;
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100%;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 24px 38px, rgba(255, 255, 255, 0.34) 1px, transparent 1.6px),
        radial-gradient(circle at 132px 98px, rgba(68, 242, 192, 0.18) 1px, transparent 1.5px),
        radial-gradient(circle at 204px 44px, rgba(240, 214, 107, 0.18) 1px, transparent 1.5px),
        radial-gradient(circle at 72% 12%, rgba(255, 157, 74, 0.12), transparent 34%),
        linear-gradient(180deg, #080a10 0%, #0d1118 46%, #090c12 100%);
    background-size: 260px 260px, 310px 310px, 380px 380px, auto, auto;
    background-attachment: fixed;
    font-family: var(--pico-font-family);
    font-size: 16px;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 11px 19px, rgba(255, 255, 255, 0.26) 1px, transparent 1.4px),
        radial-gradient(circle at 96px 54px, rgba(255, 255, 255, 0.16) 1px, transparent 1.35px),
        radial-gradient(circle at 171px 112px, rgba(240, 214, 107, 0.14) 1px, transparent 1.35px);
    background-size: 210px 210px, 290px 290px, 410px 410px;
    content: "";
    opacity: 0.46;
}

a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 0.2em;
}

a:hover {
    color: #8effda;
    text-decoration: underline;
}

h1,
h2,
h3 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.05;
}

h1 {
    max-width: 20ch;
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.18rem;
}

p {
    color: var(--muted);
}

.lead {
    max-width: 68ch;
    color: rgba(245, 247, 242, 0.78);
    font-size: 1.1rem;
}

code {
    border: 1px solid var(--line);
    color: #f0d66b;
    background: rgba(240, 214, 107, 0.08);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 16, 0.82);
    backdrop-filter: blur(18px);
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    font-weight: 600;
}

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 8px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), #c7ffe8);
    box-shadow: 0 0 32px rgba(68, 242, 192, 0.24);
}

.brand-name {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
}

.nav-links a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.34rem 0.62rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-links a:hover {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.site-main {
    min-height: 70vh;
}

.site-main > section:not(.hero) {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 3.5rem auto;
}

.site-main > section:not(.hero)::before {
    position: absolute;
    inset: -1.25rem -1rem;
    z-index: -1;
    border-radius: 8px;
    background-image:
        radial-gradient(circle at 18px 28px, rgba(255, 255, 255, 0.18) 1px, transparent 1.4px),
        radial-gradient(circle at 170px 110px, rgba(68, 242, 192, 0.1) 1px, transparent 1.35px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006));
    background-size: 240px 240px, 360px 360px, auto;
    content: "";
    opacity: 0.75;
}

.site-main > section:first-child:not(.hero) {
    margin-top: 5rem;
}

.hero {
    position: relative;
    display: flex;
    min-height: 52vh;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background-image:
        radial-gradient(circle at 74% 86%, rgba(255, 157, 74, 0.4), transparent 24%),
        linear-gradient(90deg, rgba(8, 10, 16, 0.98) 0%, rgba(8, 10, 16, 0.9) 40%, rgba(8, 10, 16, 0.2) 70%, rgba(8, 10, 16, 0.58) 100%),
        linear-gradient(180deg, rgba(8, 10, 16, 0.1) 0%, rgba(8, 10, 16, 0.74) 100%),
        url("/static/img/nasa-artemis-i-launch.jpg");
    background-position: center, center, center, 66% 52%;
    background-size: cover;
}

.hero::before {
    position: absolute;
    inset: auto -6% -20% 46%;
    z-index: -1;
    height: 44%;
    background:
        radial-gradient(ellipse at center, rgba(255, 157, 74, 0.32), rgba(240, 214, 107, 0.12) 34%, transparent 70%);
    content: "";
    filter: blur(8px);
}

.hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 12px 18px, rgba(255, 255, 255, 0.28) 1px, transparent 1.4px),
        radial-gradient(circle at 92px 72px, rgba(255, 255, 255, 0.18) 1px, transparent 1.4px);
    background-size: 190px 190px, 270px 270px;
    content: "";
    opacity: 0.55;
}

.hero-content {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 2.8rem 0 2.6rem;
}

.hero h1 {
    max-width: 720px;
    font-size: 2.55rem;
    font-weight: 600;
    line-height: 1.08;
}

.eyebrow {
    margin-bottom: 0.9rem;
    color: var(--accent-warm);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-lede {
    max-width: 52ch;
    margin-top: 1.1rem;
    color: rgba(245, 247, 242, 0.78);
    font-size: 1.12rem;
}

.domain-search {
    max-width: 680px;
    margin-top: 1.55rem;
}

.domain-search fieldset,
form fieldset[role="group"] {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(8, 10, 16, 0.8);
    box-shadow: var(--shadow);
}

.domain-search input,
form input,
form textarea,
form select {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.055);
}

.domain-search input {
    min-height: 58px;
    border: 0;
    background: transparent;
    font-size: 1.08rem;
}

form textarea {
    min-height: 14rem;
}

input::placeholder,
textarea::placeholder {
    color: rgba(245, 247, 242, 0.48);
}

button,
[role="button"],
input[type="submit"] {
    min-height: 44px;
    border-radius: 8px;
    border-color: var(--accent);
    color: #05100d;
    background: linear-gradient(180deg, #8effda, #34ddb0);
    font-weight: 600;
    box-shadow: 0 14px 34px rgba(68, 242, 192, 0.18);
}

button:hover,
[role="button"]:hover,
input[type="submit"]:hover {
    border-color: #c7ffe8;
    background: linear-gradient(180deg, #c7ffe8, #61f3c8);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.hero-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.hero-metrics strong {
    margin-right: 0.35rem;
    color: var(--text);
}

.service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: -2.25rem !important;
}

.service-card,
article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background-image:
        radial-gradient(circle at 18px 24px, rgba(255, 255, 255, 0.16) 1px, transparent 1.4px),
        radial-gradient(circle at 150px 90px, rgba(255, 157, 74, 0.1) 1px, transparent 1.35px),
        linear-gradient(180deg, rgba(18, 24, 31, 0.95), rgba(10, 14, 21, 0.92));
    background-size: 210px 210px, 330px 330px, auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.service-card {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.1rem;
    color: var(--text);
}

.service-card:hover {
    border-color: var(--line-bright);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
}

.service-card span {
    color: var(--accent-warm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.service-card strong {
    max-width: 14ch;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.2;
}

.service-card.primary {
    border-color: var(--line-bright);
    background-image:
        radial-gradient(circle at 18px 24px, rgba(255, 255, 255, 0.2) 1px, transparent 1.4px),
        radial-gradient(circle at 140px 94px, rgba(68, 242, 192, 0.16) 1px, transparent 1.35px),
        linear-gradient(180deg, rgba(20, 43, 40, 0.96), rgba(10, 17, 24, 0.93));
    background-size: 210px 210px, 320px 320px, auto;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 1.5rem;
}

.feature-grid {
    gap: 1rem;
}

article {
    padding: 1.2rem;
}

article h3 {
    margin-bottom: 0.65rem;
}

article p:last-child {
    margin-bottom: 0;
}

.deep-links {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 2rem;
}

.link-list {
    display: grid;
    gap: 0.75rem;
}

.link-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.95rem 1rem;
    color: var(--text);
    background:
        radial-gradient(circle at 20px 24px, rgba(255, 255, 255, 0.14) 1px, transparent 1.35px),
        rgba(255, 255, 255, 0.045);
    background-size: 260px 260px, auto;
}

.link-list a:hover {
    border-color: var(--line-bright);
    text-decoration: none;
}

.link-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

table th {
    color: rgba(245, 247, 242, 0.86);
    background: rgba(255, 255, 255, 0.055);
}

table td,
table th {
    border-color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

mark {
    border-radius: 8px;
    color: #160706;
    background: var(--accent-red);
}

.spinner {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 30px 36px, rgba(255, 255, 255, 0.14) 1px, transparent 1.35px),
        rgba(8, 10, 16, 0.86);
    background-size: 260px 260px, auto;
}

.footer-inner {
    display: flex;
    width: min(1120px, calc(100% - 32px));
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    gap: 1rem;
    color: var(--muted);
}

.asset-credit {
    text-align: right;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 920px) {
    .topnav {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
    }

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

    .service-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 2rem !important;
    }

    .deep-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .topnav {
        min-height: 76px;
        align-items: center;
        flex-direction: row;
        padding: 0;
        overflow-x: auto;
    }

    .brand {
        flex: 0 0 auto;
    }

    .nav-links {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        max-width: calc(100vw - 148px);
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .nav-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    h1 {
        font-size: 2.15rem;
    }

    .hero h1 {
        max-width: 16ch;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hero {
        min-height: 56vh;
        background-position: center, center, center, 66% center;
    }

    .hero-content {
        padding: 2.8rem 0 2.4rem;
    }

    .domain-search fieldset,
    form fieldset[role="group"] {
        flex-direction: column;
    }

    .service-strip {
        grid-template-columns: 1fr;
    }

    .link-list a,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .asset-credit {
        text-align: left;
    }
}

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

    .spinner {
        animation: none;
    }

    .service-card:hover {
        transform: none;
    }
}
