/*
 * Copyright 2026 i-Bridge bv
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:root {
  --navy: #0b3d5c;
  --navy-deep: #033d5d;
  --navy-mid: #124a6b;
  --teal: #1aa7c7;
  --teal-bright: #51c3c4;
  --ice: #e8f4fc;
  --ink: #1a2332;
  --muted: #5a6a7e;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --border: #d5dde8;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(26, 35, 50, 0.08), 0 8px 24px rgba(26, 35, 50, 0.06);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--surface);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 61, 92, 0.96);
  color: #d9e6ef;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(3, 61, 93, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #f7fbfe;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: #f7fbfe;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f7fbfe;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 0.25rem 1.15rem;
  align-items: center;
}

.site-nav a {
  color: #d9e6ef;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #ffffff;
  border-bottom-color: var(--teal-bright);
}

.hero {
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(26, 167, 199, 0.28), transparent 55%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #0e4d6e 100%);
  color: #e8f4fc;
  padding: 4.5rem 0 3.5rem;
}

.hero .eyebrow {
  color: var(--teal-bright);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.nowrap {
  white-space: nowrap;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 13em;
}

.hero .lead {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: #c5d8e6;
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: #043447;
}

.btn-primary:hover {
  background: var(--teal-bright);
  color: #043447;
}

.btn-ghost {
  background: transparent;
  color: #e8f4fc;
  border-color: rgba(232, 244, 252, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-on-light {
  background: var(--navy);
  color: #f7fbfe;
}

.btn-on-light:hover {
  background: var(--navy-mid);
  color: #ffffff;
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--navy);
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof dt {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.proof dd {
  margin: 0;
  color: #b7cbd8;
  font-size: 0.92rem;
}

.section {
  padding: 4.25rem 0;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 42rem;
}

.section-alt {
  background: var(--surface);
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-copy {
  padding: 1.75rem 1.75rem 1.75rem 2rem;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.45rem;
}

.featured h3,
.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.featured p,
.card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.95rem;
}

.screenshot {
  background: #2a2f36;
  min-height: 280px;
}

.screenshot img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: left top;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.card .icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  display: block;
}

.card .links {
  margin-top: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery figure {
  margin: 0;
  background: #2a2f36;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.gallery figcaption {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.55rem 0.8rem 0.7rem;
}

.band {
  background: var(--navy);
  color: #e8f4fc;
}

.band h2 {
  color: #ffffff;
}

.band .section-lead {
  color: #b7cbd8;
}

.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin: 1.5rem 0 0;
}

.theme {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.2rem 1.25rem;
}

.theme h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.theme p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service {
  background: var(--ice);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.service p {
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  background: var(--navy-deep);
  color: #b7cbd8;
  padding: 2rem 0 2.4rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--teal-bright);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-owner {
  color: #e8f4fc;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-copy {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: #8aa3b4;
}

@media (max-width: 860px) {
  .proof,
  .featured,
  .card-grid,
  .gallery,
  .themes,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    padding: 1.4rem;
  }

  .screenshot img {
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(3, 61, 93, 0.28);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.2rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero .eyebrow {
    letter-spacing: 0.04em;
  }

  .proof {
    grid-template-columns: 1fr 1fr;
  }
}
