:root {
  --bg: #0b1120;
  --bg-soft: #0f172a;
  --panel: #111c33;
  --panel-2: #16233f;
  --line: #22304f;
  --text: #e6edf8;
  --muted: #93a3bd;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --pc: #38bdf8;
  --android: #4ade80;
  --success: #22c55e;
  --warn: #f59e0b;
  --error: #ef4444;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(2, 6, 23, .45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.1rem; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: #c3d0e5; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head.center { justify-content: center; text-align: center; }
.link-arrow { font-weight: 600; color: var(--brand-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #4f46e5); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--brand); background: rgba(99, 102, 241, .12); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-light { background: #fff; color: #1e1b4b; }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .86rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none !important; color: var(--text); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.12rem; letter-spacing: .12em; }
.brand-text small { color: var(--muted); font-size: .68rem; }
.main-nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: .92rem; text-decoration: none;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.header-auth { display: flex; align-items: center; gap: 10px; }
.user-chip {
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* Alerts */
.alert {
  margin: 18px 0 0; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); font-size: .93rem;
}
.alert div + div { margin-top: 5px; }
.alert-success { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .1); }
.alert-warn { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); }
.alert-error { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .12); }
.alert-info { border-color: rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .09); }

/* Hero */
.hero {
  padding: 76px 0 68px;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(99, 102, 241, .28), transparent 60%),
    radial-gradient(700px 380px at 90% 10%, rgba(34, 211, 238, .18), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
.hero h1 { margin-bottom: 16px; }
.hero p { color: #b9c7de; font-size: 1.07rem; max-width: 56ch; }
.hero-search {
  display: flex; gap: 10px; margin: 26px 0 24px; max-width: 560px;
  background: var(--panel); border: 1px solid var(--line); padding: 8px; border-radius: 14px;
}
.hero-search input {
  flex: 1; background: transparent; border: 0; color: var(--text);
  padding: 10px 12px; font-size: 1rem; outline: none;
}
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; background: linear-gradient(120deg, #fff, #9dd7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: .85rem; }
.hero-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hero-tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow); transform: rotate(-2deg);
}
.hero-tile:nth-child(2) { transform: rotate(3deg); }
.hero-tile:nth-child(3) { transform: rotate(2deg); }
.hero-tile:nth-child(4) { transform: rotate(-3deg); }
.hero-tile img { border-radius: 16px; width: 100%; }

/* Platform cards */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.platform-card {
  display: block; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  text-decoration: none !important; color: var(--text);
  transition: transform .15s ease, border-color .2s ease;
}
.platform-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.platform-card p { color: var(--muted); }
.platform-pc { background: linear-gradient(160deg, rgba(56, 189, 248, .14), var(--panel)); }
.platform-android { background: linear-gradient(160deg, rgba(74, 222, 128, .14), var(--panel)); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.step p { color: var(--muted); font-size: .94rem; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 16px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* CTA */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  flex-wrap: wrap; padding: 40px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #4f46e5, #0891b2);
  box-shadow: var(--shadow);
}
.cta p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Product grid & cards */
.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.product-grid-tight { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, .6); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; padding: 26px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.card-media img { width: 84px; height: 84px; border-radius: 20px; }
.badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.card-media .badge { position: absolute; top: 16px; right: 16px; }
.badge-pc { background: rgba(56, 189, 248, .18); color: var(--pc); border: 1px solid rgba(56, 189, 248, .4); }
.badge-android { background: rgba(74, 222, 128, .16); color: var(--android); border: 1px solid rgba(74, 222, 128, .4); }
.card-body { padding: 20px; flex: 1; }
.card-cat { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; }
.card-body h3 { margin: 8px 0 6px; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand-2); }
.card-tagline { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.card-meta span { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }
.card-actions { display: flex; gap: 10px; padding: 0 20px 20px; }
.card-actions .btn { flex: 1; }

/* Catalog */
.page-head { padding: 48px 0 6px; }
.page-head h1 { margin-bottom: 6px; }
.filters { margin-bottom: 30px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-row input[type="search"], .filter-row select {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 11px 14px; border-radius: 10px; font-size: .95rem; min-width: 200px; flex: 1;
}
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-btn {
  padding: 10px 18px; color: var(--muted); font-weight: 600; font-size: .92rem;
  text-decoration: none !important;
}
.seg-btn.is-active { background: var(--brand); color: #fff; }

/* Empty state */
.empty {
  text-align: center; padding: 70px 20px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: rgba(255, 255, 255, .02);
}
.empty .btn { margin-top: 12px; }

/* Product page */
.breadcrumb { color: var(--muted); font-size: .88rem; margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--text); }
.product-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.product-hero {
  display: flex; gap: 24px; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}
.product-icon { width: 116px; height: 116px; border-radius: 26px; flex-shrink: 0; box-shadow: var(--shadow); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
  font-size: .74rem; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--muted);
}
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}
.panel p { color: #c3d0e5; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { padding-left: 30px; position: relative; color: #c3d0e5; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; color: #052e16; background: var(--success);
}
.product-side { position: sticky; top: 92px; }
.buy-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.price { font-size: 2rem; font-weight: 800; background: linear-gradient(120deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec-list { margin: 0 0 20px; display: grid; gap: 9px; }
.spec-list > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
.fineprint { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }

/* Auth */
.auth-wrap { display: flex; justify-content: center; padding: 64px 0; }
.auth-card {
  width: min(440px, 100%); background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px; padding: 36px;
  box-shadow: var(--shadow);
}
.form { display: grid; gap: 16px; margin-top: 20px; }
.form label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; color: #c3d0e5; }
.form input {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: .96rem; outline: none;
  transition: border-color .2s;
}
.form input:focus { border-color: var(--brand); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 76px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 6px 6px; cursor: pointer;
  color: var(--brand); font-size: .76rem; font-weight: 700; letter-spacing: .04em;
}
.pw-toggle:hover { text-decoration: underline; }
.form small { color: var(--muted); font-weight: 400; }
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: .92rem; }

/* Table */
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; background: var(--panel);
}
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--panel-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.cell-product { display: flex; align-items: center; gap: 12px; }
.cell-product img { width: 40px; height: 40px; border-radius: 10px; }
.cell-product a { color: var(--text); font-weight: 600; }
.license-key {
  font-family: Consolas, "Courier New", monospace; font-size: .85rem;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35);
  color: var(--brand-2); padding: 5px 10px; border-radius: 7px; white-space: nowrap;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px; padding: 48px 0 30px;
}
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-2); }
.footer-grid a { display: block; color: var(--muted); padding: 5px 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { font-size: .9rem; margin-top: 10px; }
.brand-footer { margin-bottom: 8px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 0 30px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: repeat(4, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .product-side { position: static; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .hero-art { grid-template-columns: repeat(2, 1fr); }
  .product-hero { flex-direction: column; text-align: center; }
  .chip-row { justify-content: center; }
  .cta { text-align: center; }
}
