/* Farben wie in der Reversi-App (apps/mobile/src/ui/theme.ts) */
:root {
  --bg: #1a2f5a;
  --bg-deep: #152850;
  --surface: #b0b0b8;
  --surface2: #a0a0a8;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-on-surface: #2a2a2a;
  --text-on-surface-muted: #5a5a64;
  --primary: #c02030;
  --primary-dark: #a01828;
  --border: #8a8a94;
  --bevel-light: #d0d0d4;
  --bevel-dark: #707078;
  --board: #e8a0a0;
  --board-line: #c08080;
  --shadow-card: 3px 4px 0 rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --radius-lg: 20px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 55%, #121f3d 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(26, 47, 90, 0.92);
  border-bottom: 2px solid;
  border-color: rgba(208, 212, 220, 0.25) rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.35) rgba(208, 212, 220, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 17px;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(192, 32, 48, 0.2);
  border: 1px solid rgba(192, 32, 48, 0.45);
  color: #ff8a95;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6.5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.hero p {
  margin: 0 0 24px;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 18px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.button.primary {
  background: linear-gradient(180deg, #d02838 0%, var(--primary) 45%, var(--primary-dark) 100%);
  color: #fff;
  border: 2px solid;
  border-color: #e84858 var(--primary-dark) var(--primary-dark) #e84858;
  box-shadow: 2px 4px 0 rgba(0, 0, 0, 0.45);
}

.button.primary:hover {
  background: linear-gradient(180deg, #e03040 0%, #c02030 50%, #901020 100%);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--surface);
  color: var(--text-on-surface);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
}

.button.secondary:hover {
  background: #b8b8c0;
}

.phone-card,
.feature-card,
.legal-card,
.cta,
.content-card {
  background: var(--surface);
  color: var(--text-on-surface);
  border-radius: var(--radius-lg);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  box-shadow: var(--shadow-card);
}

.phone-card {
  padding: 22px;
}

.phone-shell {
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #243a70 0%, #0f1a33 100%);
  border: 2px solid;
  border-color: rgba(208, 212, 220, 0.35) #0a1020 #0a1020 rgba(208, 212, 220, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 3px 5px 12px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  border: 2px solid;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
}

.screen-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.screen-item {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}

.screen-item strong {
  color: var(--text-on-surface);
}

.screen-item .muted {
  color: var(--text-on-surface-muted);
}

.section {
  padding: 36px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.03em;
  font-weight: 800;
  color: var(--text);
}

.section-intro {
  max-width: 680px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.legal-card {
  padding: 22px;
}

.feature-card h3,
.legal-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.muted {
  color: var(--text-muted);
}

.feature-card .muted,
.legal-card .muted {
  color: var(--text-on-surface-muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cta {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0 60px;
}

.cta h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-on-surface);
}

.cta .muted {
  margin: 0;
  color: var(--text-on-surface-muted);
}

.site-footer {
  padding: 24px 0 48px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-main {
  padding: 48px 0 72px;
}

.content-card {
  padding: 28px;
  color: var(--text-on-surface);
}

.content-card h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-on-surface);
}

.content-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-on-surface);
}

.content-card p,
.content-card li {
  color: var(--text-on-surface-muted);
}

.content-card ul {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .legal-grid,
  .cta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 40px;
  }

  .phone-card,
  .feature-card,
  .legal-card,
  .cta,
  .content-card {
    border-radius: 14px;
  }
}
