/* NWPS.fi — jaettu tyylitiedosto
   Paletti: syvä laivastonsininen tausta, sähkönsininen aksentti,
   syaani "kids"-aksentti, korallin sävyinen "estetty"-aksentti (toiminnallinen, ei koristeellinen) */

:root {
    --bg: #060b16;
    --bg-raise: #0a1120;
    --surface: #0d1526;
    --surface-2: #121b30;
    --border: #1c2740;
    --border-strong: #2a3a5c;
    --text: #e9edf7;
    --text-muted: #8b96b3;
    --text-faint: #5c667f;

    --accent: #4d8dff;
    --accent-dim: #1c3a6b;
    --accent-cyan: #2dd4e0;
    --accent-cyan-dim: #0f3a3d;
    --blocked: #ff7a6b;
    --blocked-dim: #3a1a16;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 10px;
    --radius-lg: 18px;
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(77,141,255,0.12), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(45,212,224,0.07), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

p { color: var(--text-muted); margin: 0 0 1em; }

code, .mono { font-family: var(--font-mono); }

/* Ylätunniste */
header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6,11,22,0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
header.site .bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
}
.logo {
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
    color: var(--text); display: flex; align-items: center; gap: 8px;
}
.logo .dot { color: var(--accent); }
nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a {
    color: var(--text-muted); font-size: 0.92rem; font-weight: 500;
}
nav.main a:hover, nav.main a.active { color: var(--text); text-decoration: none; }
.gt-slot { min-width: 90px; }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    max-width: 780px;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: 1.12rem; max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; margin: 28px 0 48px; flex-wrap: wrap; }

.btn {
    font-family: var(--font-body); font-weight: 600; font-size: 0.94rem;
    padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--accent); color: #04122b; }
.btn-primary:hover { background: #6ba0ff; text-decoration: none; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }

/* Live-laskuri (signature-elementti) */
.live-flow {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.live-flow .stat .num {
    font-family: var(--font-mono); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600;
    color: var(--text);
}
.live-flow .stat .num.blocked { color: var(--blocked); }
.live-flow .stat .label {
    font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 4px;
}

/* Osiot */
section { padding: 64px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Resolveri-kortit */
.resolvers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.resolver-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px 26px; position: relative; overflow: hidden;
}
.resolver-card.rec { border-color: var(--accent); }
.resolver-card .badge {
    position: absolute; top: 0; right: 0; background: var(--accent); color: #04122b;
    font-size: 0.68rem; font-weight: 700; padding: 5px 12px; border-radius: 0 0 0 8px;
    letter-spacing: 0.04em;
}
.resolver-card h3 {
    font-size: 1.1rem; display: flex; align-items: center; gap: 10px;
}
.resolver-card h3 .tag {
    font-family: var(--font-mono); font-size: 0.66rem; padding: 3px 8px; border-radius: 5px;
    background: var(--surface-2); color: var(--accent-cyan); border: 1px solid var(--border-strong);
}
.resolver-card p.desc { font-size: 0.92rem; margin-bottom: 18px; }
.rows { display: grid; gap: 7px; }
.row {
    display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.82rem;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
    padding: 7px 10px;
}
.row .k { color: var(--text-faint); font-size: 0.7rem; letter-spacing: 0.04em; }
.row .v { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row button.copy {
    background: none; border: 1px solid var(--border-strong); color: var(--text-muted);
    border-radius: 5px; padding: 4px 8px; font-size: 0.68rem; cursor: pointer; font-family: var(--font-body);
}
.row button.copy:hover { border-color: var(--accent); color: var(--accent); }
.row button.copy.copied { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* Tilastot */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 40px; }
.stat-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 16px;
}
.stat-box .num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; }
.stat-box .lab { font-size: 0.76rem; color: var(--text-faint); margin-top: 4px; }

.graph-wrap {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 16px;
}
.graph-wrap img { width: 100%; display: block; border-radius: 8px; }
.graph-links { display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 40px; }

table.my-custom-stats-table {
    width: 100%; border-collapse: collapse; font-size: 0.88rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
table.my-custom-stats-table thead th {
    text-align: left; padding: 10px 14px; background: var(--surface-2);
    color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}
table.my-custom-stats-table td {
    padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text-muted);
}
table.my-custom-stats-table tr:last-child td { border-bottom: none; }
table.my-custom-stats-table td.col-rank { color: var(--text-faint); font-family: var(--font-mono); width: 40px; }
table.my-custom-stats-table td.col-domain { color: var(--text); font-family: var(--font-mono); }
table.my-custom-stats-table td.col-hits { text-align: right; font-family: var(--font-mono); color: var(--accent-cyan); }

.stats-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

.my-custom-stats h2 { font-size: 1.1rem; margin: 32px 0 14px; }

/* Muut palvelut -kortit */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px;
}
.service-card h3 { font-size: 1rem; }
.service-card .soon {
    font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-faint);
    border: 1px dashed var(--border-strong); border-radius: 5px; padding: 3px 8px; display: inline-block;
    margin-top: 10px;
}

/* Alatunniste */
footer.site {
    border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px;
}
footer.site .bar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
footer.site p { margin: 0; font-size: 0.85rem; }
footer.site nav a { color: var(--text-faint); font-size: 0.85rem; margin-left: 18px; }

@media (max-width: 860px) {
    nav.main { display: none; }
    .live-flow { grid-template-columns: repeat(2, 1fr); }
    .resolvers { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-columns { grid-template-columns: 1fr; }
    .services { grid-template-columns: 1fr; }
    .row { grid-template-columns: 44px 1fr; }
    .row button.copy { grid-column: 1 / -1; justify-self: start; }
}
