@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #0a0c0f;
  --surface: #111419;
  --surface-hover: #171a20;
  --border: #252a32;
  --text: #f1f3f5;
  --muted: #8b929d;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin: auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,12,15,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; letter-spacing: .12em; }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover, nav .active { color: var(--text); }

.hero { padding: 88px 0 42px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
h3 { margin: 8px 0 7px; font-size: 19px; }
.lead { max-width: 680px; margin: 17px 0 0; color: var(--muted); font-size: 17px; }
.hero-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

.toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 58px; }
.search, .select { display: flex; flex-direction: column; gap: 7px; }
.search span, .select span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
input, select {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 9px;
  outline: 0; background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px;
}
input:focus, select:focus { border-color: var(--accent); }

.section { margin-bottom: 70px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.featured-grid { display: grid; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.app-card {
  display: flex; gap: 18px; min-width: 0;
  padding: 22px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); transition: .18s ease;
}
.app-card:hover { background: var(--surface-hover); border-color: #3a414c; transform: translateY(-2px); }
.featured-card { padding: 30px; }
.app-icon {
  width: 58px; height: 58px; flex: 0 0 58px;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--border); border-radius: 13px; background: #0b0e12;
}
.app-icon.large { width: 104px; height: 104px; flex-basis: 104px; border-radius: 22px; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info { min-width: 0; flex: 1; }
.card-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.category { color: var(--accent); }
.app-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 19px; }
.platforms span, .version {
  display: inline-block; padding: 4px 7px;
  border: 1px solid var(--border); border-radius: 5px;
  color: var(--muted); font-size: 10px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 13px; border: 1px solid var(--border);
  border-radius: 7px; font-size: 12px; font-weight: 600;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--text); color: #090b0e; border-color: var(--text); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }

.detail { padding: 60px 0 90px; }
.back { color: var(--muted); font-size: 13px; }
.back:hover { color: var(--text); }
.product-head { display: flex; gap: 28px; align-items: center; padding: 65px 0 70px; border-bottom: 1px solid var(--border); }
.product-head h1 { font-size: clamp(42px, 6vw, 70px); }
.detail-section { max-width: 760px; padding: 48px 0; border-bottom: 1px solid var(--border); }
.muted { color: var(--muted); font-size: 14px; }
.downloads { display: grid; gap: 8px; margin-top: 20px; }
.download {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 17px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface);
}
.download:hover, .download.recommended { border-color: var(--accent); }
.download span:first-child { display: flex; flex-direction: column; }
.download small { color: var(--muted); font-size: 11px; }
.download-right { display: flex; align-items: center; gap: 15px; }
.download-right em { color: var(--accent); font-size: 10px; font-style: normal; }
.download-right b { font-size: 18px; font-weight: 400; }
.download.unavailable { opacity: .42; cursor: not-allowed; }
.feature-list { margin-top: 20px; display: grid; gap: 10px; color: var(--accent); }
.feature-list span { color: var(--text); margin-left: 8px; }

.empty, .error { padding: 35px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); }
.error h1 { font-size: 30px; margin-bottom: 10px; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.footer-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

@media (max-width: 800px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 55px; display: block; }
  .hero-meta { margin-top: 20px; }
  .toolbar { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .product-head { align-items: flex-start; flex-direction: column; }
  .app-icon.large { width: 84px; height: 84px; flex-basis: 84px; }
  .footer-inner { padding: 18px 0; flex-direction: column; align-items: flex-start; }
}
