/* === Reset & base === */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin-top: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === Design tokens === */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-accent: #ff6418;
  --color-accent-hover: #e55210;
  --color-border: #e2e8f0;
  --color-accent-light: #ffe8dc;
  --max-width: 1100px;
  --header-height: 4rem;
  --section-padding: clamp(3rem, 8vw, 5rem);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* === Skip link & focus === */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === Layout utilities === */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--section-padding);
  scroll-margin-top: var(--header-height);
}

.section-muted {
  background-color: var(--color-bg-muted);
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.section-header--center {
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-muted);
  border-color: var(--color-text-muted);
  text-decoration: none;
}

/* === Header & nav === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  height: 2.25rem;
  width: auto;
}

.logo:hover .logo-mark {
  opacity: 0.85;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle-label:hover {
  background-color: var(--color-bg-muted);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.nav-toggle:checked ~ .site-nav {
  max-height: 20rem;
  opacity: 1;
}

.nav-links {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.625rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
}

.nav-links a:hover {
  background-color: var(--color-bg-muted);
  color: var(--color-accent);
  text-decoration: none;
}

.nav-links .btn-primary {
  margin-top: 0.5rem;
  text-align: center;
}

.nav-cta .btn-primary {
  width: 100%;
}

/* === Hero === */

.hero {
  padding-block: clamp(3rem, 10vw, 6rem);
  scroll-margin-top: var(--header-height);
  background: linear-gradient(180deg, #fff0e8 0%, var(--color-bg) 70%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subhead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}

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

.hero-visual {
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--color-border);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(15, 23, 42, 0.12),
    0 24px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  background-color: #0f172a;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2816 / 1536;
  object-fit: cover;
}

/* === Product cards === */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* === Use cases === */

.use-case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.use-case {
  padding: 1.5rem;
  border-left: 3px solid var(--color-accent);
  background-color: var(--color-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.section-muted .use-case {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
}

.use-case h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.use-case p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* === Stats / coverage === */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat {
  padding: 1.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.375rem;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* === Contact === */

.contact-panel {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 32rem;
  margin-inline: auto;
  padding: 1.75rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-sm);
}

.contact-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius);
}

.contact-panel-body {
  min-width: 0;
}

.contact-label {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  word-break: break-all;
}

.contact-email span {
  display: inline;
}

.contact-email:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.contact-topics {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* === Footer === */

.site-footer {
  padding-block: 2rem;
  background-color: var(--color-text);
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: #e2e8f0;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-attribution {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* === Legal / Impressum === */

.legal-page {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.legal-content {
  max-width: 42rem;
}

.legal-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.legal-intro {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legal-block {
  margin-bottom: 2rem;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h2 {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.legal-block p {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block address {
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-block strong {
  color: var(--color-text);
}

/* === Responsive breakpoints === */

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
  }

  .nav-cta {
    margin-left: 0.5rem;
  }

  .nav-cta .btn-primary {
    width: auto;
    margin-top: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .footer-attribution {
    flex-basis: 100%;
    text-align: center;
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
