/* INQREASE theme – Quantum Dark */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--bg: #06111f;
	--bg-alt: #0a1a2e;
	--bg-deep: #030a14;
	--card: #0f2440;
	--line: #16304d;
	--line-2: #1d3b60;
	--text: #dbe6f0;
	--muted: #a9bccf;
	--muted-2: #8ea4bb;
	--white: #ffffff;
	--teal: #5fd0dc;
	--green: #7cc84a;
	--c1: #0d4a80;
	--c2: #0097a7;
	--c3: #1aa3b5;
	--c4: #3fae7a;
	--c5: #5fa832;
	--c6: #7cc84a;
	--font-head: "Space Grotesk", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 16px;
	--maxw: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 90px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--white); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 860px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.6; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); }
.lead p + p { margin-top: 18px; }
.eyebrow { font-family: var(--font-head); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.01em; }
.h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.t-teal { color: var(--teal); }
.t-green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--teal); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: var(--white); color: var(--bg); }
.btn-ghost { border: 1px solid #3a5878; color: var(--white); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline { border: 1px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-strong { font-weight: 600; text-decoration: none; padding: 12px 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 17, 31, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: .08em; color: var(--white); text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; display: flex; gap: 4px 28px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav .menu a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 15px; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--white); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
	.site-nav .btn { margin-top: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight { padding: 56px 0 112px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 44px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 56px; }
.split-head { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-body { flex: 1.4 1 520px; min-width: 0; }
@media (max-width: 600px) { .section { padding: 72px 0; } .split-body { flex-basis: 100%; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.pixel-grid { position: absolute; right: -40px; top: 40px; display: grid; grid-template-columns: repeat(14, 28px); gap: 10px; pointer-events: none; }
.pixel-grid span { width: 28px; height: 28px; border-radius: 3px; }
.pixel-grid .c1 { background: var(--c1); }
.pixel-grid .c2 { background: var(--c2); }
.pixel-grid .c3 { background: var(--c3); }
.pixel-grid .c4 { background: var(--c4); }
.pixel-grid .c5 { background: var(--c5); }
.pixel-grid .c6 { background: var(--c6); }
.layer-dot.l1 { background: var(--c1); }
.layer-dot.l2 { background: var(--c2); }
.layer-dot.l3 { background: var(--c3); }
.layer-dot.l4 { background: var(--c5); }
.layer-dot.l5 { background: var(--c6); }
.bar.b1 { background: var(--c1); }
.bar.b2 { background: var(--c2); }
.bar.b3 { background: var(--c4); }
.bar.b4 { background: var(--c6); }
@media (max-width: 760px) { .pixel-grid { display: none; } }
.hero-inner { position: relative; padding-top: 112px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.hero-logo { width: 300px; max-width: 70%; height: auto; }
.hero-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.02em; max-width: 900px; }
.hero-title .accent { color: var(--green); }
.hero-text { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 700px; }
@media (max-width: 600px) { .hero-inner { padding-top: 64px; padding-bottom: 64px; } .hero-text { font-size: 18px; } }

/* EU badge */
.eu-strip { position: relative; border-top: 1px solid var(--line); background: var(--bg-alt); }
.eu-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-top: 22px; padding-bottom: 22px; }
.eu-badge { display: flex; align-items: center; gap: 14px; color: var(--white); font-size: 15px; line-height: 1.25; }
.eu-badge img { height: 40px; width: auto; outline: 1px solid var(--white); }

/* ---------- Mission ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-bottom: 96px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; }
.stat-num { font-family: var(--font-head); font-size: 60px; font-weight: 600; line-height: 1.1; color: var(--white); }

/* ---------- Stack ---------- */
.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.layer { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); }
.layer-dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 3px; }
.layer-title { font-size: 20px; margin-bottom: 6px; }

/* ---------- Roadmap ---------- */
.roadmap-scroll { overflow-x: auto; }
.roadmap { min-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.roadmap-years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-family: var(--font-head); font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.roadmap-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.bar { border-radius: 10px; padding: 14px 18px; font-weight: 600; font-size: 15px; color: var(--bg); }
.bar.b1 { color: var(--white); }
.roadmap-notes { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; }

/* ---------- Partners ---------- */
.partners-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.partner-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.partner-logo { height: 88px; border-radius: 10px; background: var(--white); display: flex; align-items: center; justify-content: center; padding: 12px; }
.partner-logo img { display: block; max-width: 78%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.partner-logo-missing { color: #55606b; font-family: var(--font-head); font-weight: 600; }
a.partner-logo:hover { box-shadow: 0 0 0 2px var(--teal); }
.partner-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.partner-short { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--white); }
.chip { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; border: 1px solid #2d5580; color: var(--green); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.ratio-16x9 { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #16304d; margin: 0; }
.ratio-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.news-card:hover .ratio-img { transform: scale(1.03); }
.news-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--teal); color: var(--bg); font-weight: 600; text-decoration: none; font-size: 13px; }
.tag-events, .tag-event { background: var(--green); }
a.tag:hover { background: var(--white); color: var(--bg); }
.news-title { font-size: 22px; line-height: 1.25; }
.news-title a { color: var(--white); text-decoration: none; }
.news-title a:hover { color: var(--teal); }
.news-more { margin-top: auto; font-weight: 600; text-decoration: none; padding: 6px 0; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 88px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.page-hero .h1 { margin: 10px 0 18px; }
.page-hero .news-meta { margin-top: 24px; }
.back-link { font-size: 14px; text-decoration: none; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cat-filter a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; }
.cat-filter a:hover, .cat-filter a[aria-current="page"] { border-color: var(--teal); color: var(--teal); }
.article-image { border-radius: 18px; margin-bottom: 12px; }
.caption { font-size: 13px; color: var(--muted-2); margin-bottom: 32px; }
.article-image + .entry-content { margin-top: 40px; }
.entry-content { font-size: 18px; line-height: 1.75; color: var(--text); padding-bottom: 72px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 30px; margin-top: 1.8em; }
.entry-content h3 { font-size: 23px; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--green); color: var(--muted); font-size: 20px; }
.entry-content img { border-radius: 12px; }
.entry-content figcaption, .wp-element-caption { font-size: 13px; color: var(--muted-2); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line-2); padding: 10px 12px 10px 0; text-align: left; }
.entry-content .wp-block-button__link { background: var(--teal); color: var(--bg); border-radius: 999px; font-weight: 700; padding: 14px 28px; text-decoration: none; }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line-2); }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
@media (max-width: 980px) { .alignwide { margin-left: 0; margin-right: 0; } }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 32px 0 96px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; color: var(--white); font-family: var(--font-head); font-weight: 600; }
.post-nav a:hover { border-color: var(--teal); }
.post-nav-next { text-align: right; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; color: var(--text); }
.pagination .page-numbers.current { background: var(--teal); color: var(--bg); border-color: var(--teal); }

/* Forms (contact form plugins, search) */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select { width: 100%; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; color: var(--white); padding: 12px 14px; font: inherit; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: none; }
input[type="submit"], button[type="submit"] { background: var(--teal); color: var(--bg); border: 0; border-radius: 999px; padding: 14px 28px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 200px; height: auto; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-social { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-label { font-family: var(--font-head); font-weight: 600; color: var(--white); }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #3a5878; color: var(--muted); font-size: 14px; text-decoration: none; }
a.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill-dashed { border-style: dashed; }
.footer-eu { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.eu-badge-footer { font-size: 14px; }
.disclaimer { flex: 1 1 480px; font-size: 13px; line-height: 1.6; color: var(--muted-2); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 28px; font-size: 13px; color: var(--muted-2); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-menu a { color: var(--teal); }
