:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(0, 0, 0, 0.3);
  --button-bg: #555555;
  --button-bg-hover: #666666;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --content-width: 1200px;
  --shadow-hover: 0 0 20px rgba(255, 255, 255, 0.08);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: var(--font-family);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.device-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: #000;
}
.device-notice__brand { font-size: 80px; }
.device-notice__title { font-size: 24px; }
.device-notice__description { max-width: 420px; color: #aaa; }

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 24px), var(--content-width));
  margin: 12px auto 0;
  padding: 16px 20px;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.logo span { font-size: 1.1rem; font-weight: 700; }

.page {
  width: min(calc(100% - 24px), var(--content-width));
  margin: 18px auto 0;
  padding-bottom: 48px;
}

.section { margin-top: 28px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 18px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 14px; }

.hero {
  padding: 48px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 680px; }
.hero-kicker { display: inline-block; margin-bottom: 10px; font-size: 2rem; }
.hero-title { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.08; margin-bottom: 12px; }
.hero-description { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--button-bg); }
.btn-primary:hover { background: var(--button-bg-hover); }
.btn-secondary { background: transparent; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,255,255,0.22);
}
.card--link { text-decoration: none; display: block; }
.card__media { margin-bottom: 16px; overflow: hidden; border-radius: 12px; }
.card__media img { width: 100%; height: auto; object-fit: cover; }
.card__title { font-size: 1.35rem; margin-bottom: 10px; }
.card__text { color: var(--text-muted); }
.card__list { list-style: none; display: grid; gap: 8px; color: var(--text-muted); }
.card__list li::before { content: "• "; color: var(--text); }
.card__extra { margin-top: 14px; color: var(--text-muted); }

.footer {
  width: min(calc(100% - 24px), var(--content-width));
  margin: 0 auto 24px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

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