﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --text: #111827;
  --muted: #4b5563;
  --accent: #d60f2f;
  --border: #e5e7eb;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.14);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.is-loading {
  overflow: hidden;
}

main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.is-loading main {
  opacity: 0;
  transform: translateY(8px);
}

body.is-ready main {
  opacity: 1;
  transform: translateY(0);
}

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.loader-mark {
  font-size: 14px;
  color: var(--accent);
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: none;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.lang-switch.open .lang-menu {
  display: grid;
  gap: 6px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.lang-option:hover,
.lang-option.active {
  background: var(--bg-alt);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
}

.hero {
  background: radial-gradient(circle at top right, #fef2f2 0%, #ffffff 48%, #f6f7fb 100%);
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mt-24 {
  margin-top: 24px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  align-content: start;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  height: 100%;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-desc {
  color: var(--muted);
  font-size: 14px;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}

.badge-released {
  background: #fff0f2;
  border-color: #f8c0ca;
  color: #b10b25;
}

.badge-wip {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.badge-prototype {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 12px;
  color: var(--muted);
}

.chip-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.filters input,
.filters select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.results-info {
  color: var(--muted);
  margin-bottom: 16px;
}

.empty {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}

.load-more {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.detail-cover {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-summary {
  display: grid;
  gap: 16px;
}

.detail-summary h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.detail-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.detail-main p {
  color: var(--muted);
}

.detail-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  display: grid;
  gap: 16px;
  height: fit-content;
}

.spec-item {
  display: grid;
  gap: 6px;
}

.spec-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.gallery img {
  border-radius: 14px;
  border: 1px solid var(--border);
  height: 120px;
  object-fit: cover;
}

.article {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.article h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.article-cover {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-content {
  display: grid;
  gap: 16px;
  color: var(--text);
}

.article-content p {
  color: var(--muted);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-link {
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .detail-hero,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    right: 4%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
    box-shadow: var(--shadow-sm);
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .hero {
    padding: 64px 0;
  }

  .section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  main,
  .page-loader {
    transition: none;
  }

  .spinner {
    animation: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
