@import url("fonts/fonts.css");

:root {
  color-scheme: dark;
  --bg: #0a100f;
  --surface: #111b19;
  --surface-hover: #172521;
  --line: #31453f;
  --ink: #f3f7f6;
  --muted: #bccbc7;
  --accent: #32ffd1;
  --red: #ff514f;
  --heading: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 Lato, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--heading); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
p, dl { margin: 0; }
.container { width: min(74rem, calc(100% - 2.5rem)); margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: clamp(3.25rem, 8vw, 6.5rem); }
.section-heading { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-heading > p:not(.eyebrow) { margin-top: 0.65rem; color: var(--muted); }
.section-action { margin-top: 2rem; }
.eyebrow { color: var(--accent); font: 700 0.85rem/1.3 var(--heading); letter-spacing: 0.17em; text-transform: uppercase; margin-bottom: 0.65rem; }

/* Navigation wraps on small screens, so EU Funds is reachable without a script. */
.skip-link { position: absolute; z-index: 3; top: 0.6rem; left: 0.6rem; background: var(--bg); color: var(--ink); padding: 0.55rem 1rem; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { background: #0a110f; border-bottom: 1px solid #263630; }
.header-inner { min-height: 5rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: 0.75rem; }
.brand { display: inline-block; flex: none; }
.brand img { width: clamp(7.25rem, 13vw, 10.25rem); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.55rem; }
.site-nav a { color: var(--ink); font-weight: 700; font-size: 0.95rem; text-decoration: none; padding: 0.45rem 0.55rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.site-nav .funding-link { border: 1px solid #369481; border-radius: 0.3rem; color: var(--accent); padding-inline: 0.75rem; }
.site-nav .funding-link:hover, .site-nav .funding-link[aria-current="page"] { background: #12332b; }
.site-footer { padding-block: 2.25rem; border-top: 1px solid var(--line); background: #070d0b; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1.25rem; }
.footer-links a { color: var(--ink); }
.footer-links a:hover { color: var(--accent); }
.footer-inner > p { width: 100%; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* Home */
.hero {
  background: url("slider-head.webp") no-repeat right max(0px, calc((100vw - 91rem) / 2)) center / auto 119%,
              url("hexagons.png") no-repeat left -14rem bottom -16rem / 42rem,
              url("slider-shine.png") no-repeat left center / auto 100%, #060807;
  border-bottom: 1px solid #22423a;
}
.hero-inner { min-height: clamp(31rem, 62vw, 46rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 3.5rem; }
.hero h1 { text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(3.55rem, 8.2vw, 7.4rem); text-wrap: initial; line-height: 0.97; }
.hero h1 span { color: var(--red); }
.hero p { max-width: 30rem; color: var(--muted); margin-top: 1.5rem; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.intro { background: linear-gradient(transparent, #090f0e 85%), url("section-bg5.jpg") center top / cover no-repeat; }
.intro-grid { display: grid; align-items: center; grid-template-columns: 1.35fr 1fr; gap: clamp(1.25rem, 4vw, 4rem); margin-bottom: clamp(2rem, 6vw, 4.5rem); }
.intro-art { border-radius: var(--radius); }
.intro-grid h2 { color: var(--accent); text-transform: uppercase; }
.use-cases, .steps-grid, .brand-grid { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.use-cases li { border: 1px solid var(--line); background: #0b1815; border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; font: 700 1.35rem/1.3 var(--heading); }
.use-cases img { width: 5.25rem; margin: 0 auto 1rem; }
.steps { background: linear-gradient(transparent, var(--bg)), url("section-bg6.jpg") center top / cover no-repeat; }
.steps-grid { counter-reset: steps; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid li, .feature-grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.15rem, 2.5vw, 1.8rem); background: #0d1715; }
.steps-grid li { counter-increment: steps; position: relative; }
.steps-grid li::before { content: counter(steps, decimal-leading-zero); position: absolute; top: 1.2rem; right: 1.3rem; color: var(--accent); font: 700 1rem var(--heading); }
.steps-grid img { width: 4rem; margin-bottom: 1rem; }
.steps-grid p, .feature-grid article > p:last-child { margin-top: 0.55rem; color: var(--muted); }
.demo { background: #070d0b; }
.video-link { display: grid; grid-template-areas: "video"; place-items: center; max-width: 58rem; margin-inline: auto; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #000; text-decoration: none; }
.video-link img, .video-label { grid-area: video; }
.video-link img { width: 100%; opacity: 0.7; }
.video-link:hover img { opacity: 0.9; }
.video-label, .button { display: inline-block; border-radius: 0.35rem; padding: 0.6rem 1.1rem; font-weight: 700; }
.video-label { z-index: 1; color: #081511; background: var(--accent); }
.video-label span { margin-right: 0.35rem; }
.button { border: 1px solid #369481; color: var(--accent); background: #0a1814; text-decoration: none; }
.button:hover { background: var(--accent); color: #081511; }
.features { background: linear-gradient(transparent, var(--bg)), url("section-bg2.jpg") center top / cover no-repeat; }
.feature-grid, .card-grid, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 2.5vw, 1.5rem); }
.feature-grid img { width: 4.5rem; margin-bottom: 1rem; }
.trusted { background: #0b1411; }
.brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; }
.brand-grid img { margin-inline: auto; }
.projects { background: linear-gradient(transparent, var(--bg)), url("section-bg3.jpg") center top / cover no-repeat; }
.news { background: linear-gradient(transparent, var(--bg)), url("section-bg4.jpg") center top / cover no-repeat; }
.card { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card > a { width: 100%; color: var(--ink); text-decoration: none; border-radius: inherit; }
.card > a:hover { background: var(--surface-hover); }
.card > a:hover :is(h2, h3) { color: var(--accent); text-decoration: underline; }
.card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1.15rem 1.3rem 1.4rem; }
.card-body :is(h2, h3) { font-size: 1.5rem; }
.card-body p { margin-top: 0.5rem; color: var(--muted); }
.faq { max-width: 65rem; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 2rem 1.5rem; }
.faq-grid h3 { margin-bottom: 0.55rem; color: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 2.75rem; padding: 0.65rem 0.3rem; cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--accent); }
.faq details > :not(summary) { color: var(--muted); margin: 0 0.5rem 0.9rem 1.25rem; }

/* Project and news articles */
.article { max-width: 64rem; margin-inline: auto; }
.article-header { margin-bottom: 1.75rem; }
.article-header h1 { margin-block: 0.5rem; }
.article-meta { color: var(--muted); font-size: 0.95rem; }
.article-media { width: 100%; border-radius: var(--radius); margin-bottom: 1.25rem; }
.article-section { margin-top: 2.25rem; }
.article-section h2 { margin-bottom: 1rem; font-size: clamp(1.65rem, 4vw, 2.4rem); }
.section .prose, .article .prose { max-width: 74ch; color: var(--muted); }
.prose > * + * { margin-top: 1rem; }
.prose strong { color: var(--ink); }
.prose li + li { margin-top: 0.35rem; }
.gallery a { border-radius: 0.45rem; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: inherit; }
.gallery a:hover img { opacity: 0.85; }

/* The funding article keeps the reference page's light reading surface and full banner. */
.funding-page {
  color-scheme: light;
  --ink: #182723;
  --muted: #425955;
  --accent: #006856;
  --line: #c7d9d4;
  background: #f5f9f8;
  color: var(--ink);
}
.funding-title { background: #e3f2ee; border-bottom: 1px solid var(--line); padding-block: clamp(1.6rem, 4vw, 2.7rem); }
.funding-title .container, .funding-article { max-width: 64rem; }
.breadcrumb { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 1.2rem; font-size: 0.92rem; color: var(--muted); }
.funding-article { padding-block: clamp(1.25rem, 4vw, 3.25rem) clamp(3rem, 7vw, 5rem); }
.funding-banner { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 0.4rem; margin-bottom: 1.25rem; }
.funding-article .prose { max-width: 80ch; margin-top: 1.5rem; }
.funding-article h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-top: 1.65rem; }
.funding-facts { display: grid; grid-template-columns: minmax(8rem, 0.65fr) minmax(0, 1.35fr); background: #fff; border: 1px solid var(--line); border-radius: 0.4rem; padding: 1rem; gap: 0.55rem 1.25rem; }
.funding-facts dt { font-weight: 700; }
.funding-facts dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 56rem) {
  .header-inner { gap: 0.6rem; flex-wrap: wrap; }
  .hero { background-position: right -4rem center, left -14rem bottom -16rem, left center; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid, .card-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 0.15rem 0.2rem; }
  .site-nav a { padding-inline: 0.4rem; }
  .hero {
    background: linear-gradient(0deg, #060807 9%, rgb(6 8 7 / 25%) 83%),
                url("slider-head-small.webp") no-repeat right -3rem top / auto 120%,
                #060807;
  }
  .hero-inner { justify-content: flex-end; min-height: 29rem; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4.2rem); }
  .hero p { max-width: 23rem; }
  .intro { padding-top: 5rem; background: url("section-bg5.jpg") center top / auto 23rem no-repeat, #090f0e; }
  .intro-grid, .faq-grid { grid-template-columns: 1fr; }
  .intro-art { max-width: min(100%, 21rem); margin: 0 auto; }
  .use-cases { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .card-grid, .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .funding-facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .funding-facts dd + dt { margin-top: 0.65rem; }
}
