@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --dark-blue: #001871;
  --ink-blue: #001b60;
  --light-blue: #00b0b9;
  --paper: #ffffff;
  --gold: #d7aa3f;
  --mist: #e5e8f1;
  --line: #cdd4e5;
  --text: #102047;
  --muted: #64708f;
  --success: #147a52;
  --warning: #9f6b00;
  --shadow: 0 18px 60px rgba(0, 24, 113, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.dms-parent-brand {
  display: inline-flex;
  align-items: center;
}

.dms-parent-brand img {
  width: clamp(116px, 9.5vw, 148px);
  height: auto;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  color: var(--dark-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a,
.header-action,
.button,
.product-card a,
.product-card button,
.app-card a {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.product-card a:hover,
.product-card button:hover,
.app-card a:hover {
  color: var(--light-blue);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--dark-blue);
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
}

.header-action {
  color: var(--dark-blue);
  background: transparent;
}

.header-action:hover,
.button-secondary:hover {
  color: var(--paper);
  background: var(--dark-blue);
}

.button-primary {
  color: var(--paper);
  background: var(--dark-blue);
  border-color: var(--dark-blue);
}

.button-primary:hover {
  color: var(--dark-blue);
  background: var(--paper);
}

.button-secondary {
  color: var(--dark-blue);
  background: rgba(255, 255, 255, 0.84);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--paper);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://cdn.prod.website-files.com/6311d2714bca1a81439ed3bc/68531aa3c654eb6bb58edad3_Bildschirmfoto%202025-06-18%20um%2021.59.20.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 24, 113, 0.96), rgba(0, 24, 113, 0.58)),
    linear-gradient(0deg, rgba(0, 176, 185, 0.18), rgba(0, 176, 185, 0));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  max-width: 1180px;
  min-height: 720px;
  margin: 0 auto;
  padding: 112px clamp(20px, 4vw, 38px) 72px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 16px;
  color: var(--light-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: normal;
}

p,
li,
a {
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.03;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
}

h3 {
  font-size: 24px;
  line-height: 1.18;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

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

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.hero-panel ul,
.product-card ul,
.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-panel li,
.product-card li,
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-top: 12px;
}

.hero-panel li::before,
.product-card li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border: 2px solid var(--light-blue);
  content: "";
}

.portfolio,
.apps-section,
.proof-section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 44px;
}

.section-heading h2 {
  color: var(--dark-blue);
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.product-grid,
.app-grid,
.proof-grid {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.app-card,
.proof-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(0, 24, 113, 0.06);
}

.product-card h3,
.app-card h3,
.proof-card h3 {
  margin-top: 12px;
  color: var(--dark-blue);
}

.product-card p,
.app-card p,
.proof-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.product-card a,
.product-card button,
.app-card a {
  margin-top: auto;
  padding-top: 22px;
  border: 0;
  background: transparent;
  color: var(--dark-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.priority {
  color: var(--dark-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 28px;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(0, 176, 185, 0.35);
  border-radius: 4px;
  color: var(--success);
  background: rgba(0, 176, 185, 0.08);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.1;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.product-section-drive {
  background: var(--mist);
}

.product-section-analytics {
  background: #f8f9fc;
}

.product-copy {
  max-width: 620px;
  justify-self: end;
}

.product-section-analytics .product-copy {
  justify-self: start;
}

.product-copy h2 {
  color: var(--dark-blue);
}

.product-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.product-copy .button {
  margin-top: 28px;
}

.product-visual {
  margin: 0;
}

.product-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(0, 24, 113, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-visual figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.metrics-row span {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--dark-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.metrics-row strong {
  font-size: 20px;
  font-weight: 400;
}

.apps-section {
  background: var(--paper);
}

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

.app-card {
  min-height: 250px;
  border-top: 5px solid var(--light-blue);
}

.app-card:nth-child(2) {
  border-top-color: var(--warning);
}

.proof-section {
  background: var(--ink-blue);
  color: var(--paper);
}

.proof-section .section-heading h2,
.proof-section .section-heading p:not(.eyebrow) {
  color: var(--paper);
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.proof-card span {
  color: var(--light-blue);
  font-family: "IBM Plex Mono", monospace;
}

.proof-card h3,
.proof-card p {
  color: var(--paper);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: clamp(72px, 9vw, 110px) clamp(20px, 5vw, 72px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(0, 24, 113, 0.94), rgba(0, 27, 96, 0.82)),
    url("https://cdn.prod.website-files.com/6311d2714bca1a81439ed3bc/67fa85c6577004a910841e53_cardexx_keyvisual.jpg")
      center / cover;
}

.contact-band h2 {
  max-width: 820px;
}

.contact-band p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.contact-band .button-secondary {
  color: var(--paper);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.contact-band .button-primary {
  color: var(--dark-blue);
  background: var(--paper);
  border-color: var(--paper);
}

.is-modal-open {
  overflow: hidden;
}

.app-modal[hidden] {
  display: none;
}

.app-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 24, 113, 0.72);
  backdrop-filter: blur(10px);
}

.app-modal__panel {
  position: relative;
  width: min(100%, 820px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(0, 24, 113, 0.96), rgba(0, 27, 96, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(0, 176, 185, 0.28), transparent 34%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.app-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--paper);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}

.app-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.app-modal__option {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.app-modal__option span {
  color: var(--light-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.app-modal__option strong {
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
}

.app-modal__option p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--dark-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

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

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-inner,
  .product-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: end;
  }

  .hero-panel {
    max-width: 620px;
  }

  .product-copy,
  .product-section-analytics .product-copy {
    justify-self: start;
  }

  .product-section-analytics .product-visual {
    order: 2;
  }

  .product-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 16px;
  }

  .dms-parent-brand img {
    width: 128px;
  }

  .header-action {
    width: 100%;
    grid-column: 1 / -1;
  }

  .nav-links {
    font-size: 13px;
  }

  .hero,
  .hero-inner {
    min-height: 820px;
  }

  .hero-inner {
    padding-top: 70px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 22px;
  }

  .product-grid,
  .app-grid,
  .app-modal__grid,
  .proof-grid,
  .metrics-row {
    grid-template-columns: 1fr;
  }

  .product-card,
  .app-card,
  .proof-card {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
