/* Nexlert marketing site — static styles.
   Color/type tokens are copied from apps/web/src/theme.css (the
   dashboard's own design tokens) for brand consistency between the
   marketing site and the product. This file intentionally does not
   import that one directly — apps/landing has no build step, and
   theme.css itself pulls in @fontsource via an npm import Vite
   resolves at build time, which doesn't exist here. */

/* Self-hosted, not loaded from Google Fonts — same reasoning as
   apps/web/src/theme.css: no third-party request/IP disclosure at
   runtime. The .woff2 files are copied directly from the
   @fontsource/ibm-plex-sans npm package (SIL Open Font License, see
   assets/fonts/LICENSE-ibm-plex-sans.txt) since there's no bundler
   here to do that copy for us. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}

/* Mono, for the hero mockup's incident id/timestamps — same "mono for
   identifiers and timestamps, never body text" convention as
   apps/web/src/theme.css's own code/time rule. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  /* Same values as apps/web/src/theme.css's :root — only the tokens
     this static site actually uses, not the full dashboard set (no
     sidebar/status-pill/mono-font tokens needed on a marketing page). */
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-ink: #14181d;
  --color-ink-muted: #5b6570;
  --color-accent: #155e63;
  --color-accent-hover: #0f4a4e;
  --color-border: #e2e5e8;

  /* Only needed for the hero mockup's "Ausgelöst" status badge — see
     .mock-status-badge. Same values as apps/web/src/theme.css. */
  --color-critical: #b3432b;
  --color-critical-bg: rgba(179, 67, 43, 0.12);

  --font-sans:
    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:
    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  /* Larger step than the dashboard's own --text-xl — a marketing hero
     headline needs more presence than the login wordmark this was
     originally sized for. Not reused elsewhere. */
  --text-hero: 2.75rem;

  --radius: 4px;
  --content-width: 960px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-weight: 600;
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--text-base);
}

.site-nav a {
  color: var(--color-ink-muted);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav a.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink);
}

.site-nav a.nav-cta:hover {
  border-color: var(--color-ink-muted);
  text-decoration: none;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

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

/* Hero */

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  font-size: var(--text-hero);
  line-height: 1.2;
}

.hero-copy p {
  margin: 1.25rem 0 0;
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
}

.hero-copy .button {
  margin-top: 2rem;
}

/* Hero product mockup — illustrative only, see the caption below it
   and the .mock-* naming itself: not a screenshot, not real customer
   data. Built with the same tokens/shapes as the real incident detail
   page (apps/web) — status badge, timeline — rather than inventing a
   one-off look for the marketing site alone. */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-incident-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.mock-incident-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.mock-incident-id {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

/* Same shape as apps/web/src/styles.css's .status-badge (tinted pill,
   fully rounded as the one deliberate exception to this site's
   otherwise-4px corner radius) — only the one status this mockup
   needs, not the full set. */
.mock-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--color-critical-bg);
  color: var(--color-critical);
}

.mock-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentcolor;
}

.mock-incident-title {
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.mock-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: var(--text-sm);
}

.mock-timeline li {
  padding-left: 0.75rem;
  border-left: 2px solid var(--color-accent);
}

.mock-timeline time {
  display: block;
  font-family: var(--font-mono);
  color: var(--color-ink-muted);
  margin-bottom: 0.1rem;
}

.hero-visual-caption {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  text-align: center;
}

/* Feature grid */

.features {
  padding: 1rem 0 4rem;
}

.features h2 {
  font-size: var(--text-xl);
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-card h3 {
  font-size: var(--text-base);
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

/* Generic content page (Preise/Kontakt/Impressum/Datenschutz) */

.page {
  padding: 3rem 0 4rem;
  max-width: 42rem;
  margin: 0 auto;
}

.page h1 {
  font-size: var(--text-xl);
  margin-bottom: 1.5rem;
}

.page h2 {
  font-size: var(--text-lg);
  margin: 2rem 0 0.75rem;
}

.page p {
  margin: 0 0 1rem;
}

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page .button {
  margin-top: 1rem;
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: var(--text-lg);
}

.contact-details .label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.site-footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

.site-footer-nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer-nav a {
  color: var(--color-ink-muted);
}

.site-footer-copy {
  margin: 0;
}
