:root {
  color-scheme: light;
  --ink: #24313d;
  --muted: #607082;
  --soft: #eef3f6;
  --paper: #ffffff;
  --line: #d9e2e8;
  --navy: #2d3945;
  --navy-deep: #171d23;
  --accent: #176f9e;
  --green: #72a53b;
  --shadow: 0 18px 44px rgba(26, 41, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.45rem, 5.6vw, 4.75rem);
  line-height: 0.95;
  font-weight: 800;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  font-weight: 800;
}

h3 {
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.25;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero-copy,
.split > *,
.contact-main,
.contact-card,
.imprint-grid > *,
.section-heading {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(45, 57, 69, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.header-grid {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: block;
  width: min(334px, 64vw);
  padding: 8px 0;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 4px;
  color: #d5dee7;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: #374654;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  justify-self: end;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 29, 35, 0.92) 0%, rgba(45, 57, 69, 0.78) 48%, rgba(45, 57, 69, 0.36) 100%),
    image-set(
      url("assets/images/showcase-960.webp") type("image/webp"),
      url("assets/images/showcase.jpg") type("image/jpeg")
    ) center / cover no-repeat;
}

@media (min-width: 681px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(23, 29, 35, 0.92) 0%, rgba(45, 57, 69, 0.78) 48%, rgba(45, 57, 69, 0.36) 100%),
      image-set(
        url("assets/images/showcase-1600.webp") type("image/webp"),
        url("assets/images/showcase.jpg") type("image/jpeg")
      ) center / cover no-repeat;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 34%);
  align-items: stretch;
  gap: 48px;
  padding: 68px 0 58px;
}

.hero-copy {
  max-width: 780px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.1vw, 4.1rem);
  line-height: 1.02;
  white-space: nowrap;
  overflow-wrap: normal;
}

.hero-lead,
.hero-copy p {
  overflow-wrap: anywhere;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #86d4f5;
}

.hero-lead {
  max-width: 680px;
  color: #e9f2f6;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: auto;
  padding-top: 34px;
}

.hero-metrics span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #dbe7ef;
  background: rgba(23, 29, 35, 0.42);
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.1;
}

.hero-founder {
  justify-self: end;
  position: relative;
  width: min(430px, 100%);
  height: 100%;
  min-height: 100%;
  color: #fff;
}

.hero-founder picture {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
}

.hero-founder img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.hero-founder-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 86px 22px 20px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(23, 29, 35, 0), rgba(23, 29, 35, 0.92) 58%, rgba(23, 29, 35, 0.98));
}

.hero-founder-copy .eyebrow {
  margin-bottom: 8px;
}

.hero-founder-copy h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
}

.hero-founder-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: #e5eef5;
}

.hero-founder-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.hero-founder-links a {
  width: fit-content;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
}

.hero-founder-links a:hover {
  color: #86d4f5;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  color: #fff;
  background: #125a82;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.button.compact {
  min-height: 40px;
  color: #fff;
  background: var(--navy);
}

.ticker {
  color: #fff;
  background: var(--navy-deep);
}

.ticker-grid {
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
}

.ticker span {
  position: relative;
  padding-left: 18px;
  font-weight: 700;
}

.ticker span::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.section {
  padding: 92px 0;
}

.intro,
.smart-home,
.community {
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 56px;
}

.split.reverse {
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
}

.section-picture {
  display: block;
}

.section-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-band {
  background: #f7fafc;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.service-item {
  min-height: 240px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 49, 61, 0.08);
}

.service-item h3::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
}

.partner-logo-inline {
  width: min(320px, 100%);
  margin-top: 24px;
  padding: 14px 0;
}

.operations {
  color: #fff;
  background: #202830;
}

.operations h2,
.operations h3 {
  color: #fff;
}

.operations .eyebrow {
  color: #86d4f5;
}

.operations .section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.operations .section-heading p:not(.eyebrow) {
  color: #d8e3eb;
}

.operations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-list article {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.process-list article {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.process-list span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
  padding: 5px 10px;
  border: 1px solid rgba(134, 212, 245, 0.34);
  border-radius: 999px;
  color: #86d4f5;
  background: rgba(47, 153, 204, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.process-list p {
  color: #d8e3eb;
}

.contact-section {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #202830);
}

.contact-section h2 {
  color: #fff;
}

.contact-section .eyebrow {
  color: #86d4f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}

.contact-main p {
  color: #d8e3eb;
}

.quick-contact {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.quick-contact a {
  width: fit-content;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.quick-contact a:hover {
  color: #86d4f5;
}

.contact-card {
  width: 100%;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-card img {
  width: 190px;
  margin: 0 auto 22px;
  border-radius: 8px;
  background: var(--soft);
}

.community {
  background: #f7fafc;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.community-grid .section-heading {
  margin-bottom: 0;
}

.community-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.community-project {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(36, 49, 61, 0.08);
}

.community-project:hover {
  color: var(--ink);
  border-color: rgba(47, 153, 204, 0.55);
  transform: translateY(-2px);
}

.community-project span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.community-project h3 {
  margin: 48px 0 12px;
}

.community-project p {
  margin-bottom: 0;
  color: var(--muted);
}

dl {
  margin: 0;
}

.contact-card dl,
.data-list {
  display: grid;
  gap: 18px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
}

.footer-legal {
  padding: 0;
}

.site-footer .section-heading {
  margin-bottom: 22px;
}

.site-footer .section-heading h2 {
  color: #fff;
}

.site-footer .section-heading p:not(.eyebrow) {
  color: #b8c6d1;
}

.site-footer .button.compact {
  color: #fff;
  background: var(--accent);
}

.legal-details {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legal-details summary {
  cursor: pointer;
  padding: 14px 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-copy {
  max-height: 58vh;
  overflow: auto;
  padding: 20px 0 26px;
  color: #dce7ee;
}

.legal-copy h3 {
  margin: 28px 0 8px;
  color: #fff;
  font-size: 1rem;
}

.legal-copy p,
.legal-copy li {
  font-size: 0.96rem;
}

.legal-copy ul {
  padding-left: 24px;
}

.legal-copy a {
  color: #8ad6f6;
}

.site-footer dt {
  color: #8ad6f6;
}

.imprint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.data-list {
  margin-top: 0;
}

.data-list > div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.imprint-aside {
  width: 100%;
  padding: 24px;
  border-radius: 8px;
  background: rgba(23, 29, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.imprint-aside img {
  margin-bottom: 22px;
}

.privacy-note {
  margin-bottom: 0;
  color: #9edc6f;
  font-weight: 800;
}

.subpage {
  background: #f7fafc;
}

.subpage-main {
  background: #f7fafc;
}

.legal-page {
  padding-top: 72px;
}

.legal-page h1 {
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1;
}

.legal-page-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(36, 49, 61, 0.08);
}

.legal-page-copy h3 {
  margin: 30px 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.legal-page-copy h3:first-child,
.legal-page-copy p:first-child {
  margin-top: 0;
}

.legal-page-copy ul {
  padding-left: 24px;
}

.legal-page-copy a {
  font-weight: 800;
}

.legal-page-copy .data-list > div {
  border-bottom: 1px solid var(--line);
}

.legal-page-copy .imprint-aside {
  background: #f7fafc;
  border: 1px solid var(--line);
  color: var(--ink);
}

.legal-page-copy .privacy-note {
  color: var(--green);
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  font-weight: 800;
}

.site-footer {
  padding: 42px 0 22px;
  color: #d7e0e8;
  background: #171d23;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: start;
  gap: 34px;
  padding-bottom: 28px;
}

.footer-logo {
  width: 190px;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-bottom p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact a,
.footer-contact span {
  color: #d7e0e8;
  font-weight: 700;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: #8ad6f6;
}

.footer-bottom {
  padding-top: 20px;
  color: #aebdca;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .header-grid {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 18px;
  }

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

  .site-nav a {
    justify-content: center;
  }

  .hero-grid,
  .split,
  .split.reverse,
  .contact-grid,
  .operations-grid,
  .community-grid,
  .imprint-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 68px;
  }

  .hero-copy {
    min-height: 0;
  }

  .hero-founder {
    justify-self: start;
    width: min(560px, 100%);
    height: auto;
    min-height: 0;
  }

  .hero-founder picture {
    height: auto;
    min-height: 0;
  }

  .hero-founder img {
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 6;
  }

  .contact-card,
  .imprint-aside {
    max-width: 520px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-list {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(1160px, calc(100% - 28px));
  }

  .site-header {
    position: relative;
  }

  .brand {
    width: min(270px, 70vw);
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .hero-actions,
  .hero-metrics,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-metrics {
    display: none;
  }

  .hero-founder-copy {
    right: auto;
    padding: 72px 18px 18px;
  }

  .button,
  .footer-links a {
    width: 100%;
  }

  .ticker-grid,
  .service-grid,
  .process-list,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .ticker-grid {
    padding: 18px 0;
  }

  .section {
    padding: 66px 0;
  }

  .service-item {
    min-height: auto;
  }

  .community-project {
    min-height: auto;
  }

  .quick-contact a {
    font-size: 1.05rem;
  }

  .legal-copy {
    max-height: none;
    padding: 22px;
  }

  .legal-page-copy {
    padding: 24px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .back-link,
  .legal-page-copy a[href$=".pdf"] {
    display: none !important;
  }

  body,
  .subpage-main,
  .legal-page {
    color: #111;
    background: #fff;
  }

  .section {
    padding: 0;
  }

  .wrap {
    width: 100%;
  }
}
