
:root {
  --bg: #07111f;
  --bg-soft: #0d1830;
  --card: rgba(255,255,255,0.07);
  --line: rgba(255,255,255,0.12);
  --text: #eff6ff;
  --muted: #9fb1c9;
  --brand: #60a5fa;
  --brand2: #8b5cf6;
  --brand3: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 18px 40px rgba(0,0,0,.28);
  --max: 1180px;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96,165,250,.18), transparent 25%),
    radial-gradient(circle at top right, rgba(139,92,246,.18), transparent 26%),
    linear-gradient(180deg, #08111f 0%, #091426 50%, #060c17 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .28;
  pointer-events: none;
}
.hero-orb.orb-a { background: rgba(96,165,250,.45); top: -40px; right: 8%; }
.hero-orb.orb-b { background: rgba(139,92,246,.38); top: 120px; left: 4%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7,17,31,.68);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
}
.brand-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--brand3);
}
.brand { font-weight: 900; letter-spacing: .12em; display:inline-flex; align-items:center; }
.brand span { color: var(--brand); }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  font-size: 14px;
  letter-spacing: .01em;
}
button.btn { font: inherit; color: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 28px rgba(96,165,250,.22);
}
.btn-primary:hover { box-shadow: 0 16px 34px rgba(96,165,250,.28); }
.btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(96,165,250,.10);
  border: 1px solid rgba(96,165,250,.18);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}
.hero { padding: 54px 0 28px; position: relative; overflow: hidden; }

h1 {
  margin: 16px 0 10px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
h2 {
  margin: 0 0 10px;
  letter-spacing: -.03em;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}
h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
p, .muted { color: var(--muted); }
.hero-copy {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
}
.small-muted { color: var(--muted); font-size: 13px; }

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.pill.active {
  background: rgba(96,165,250,.16);
  border-color: rgba(96,165,250,.28);
  color: var(--text);
}
.stars {
  color: #fbbf24;
  letter-spacing: 2px;
}
.is-favorite {
  border-color: rgba(251,191,36,.38);
  background: rgba(251,191,36,.10);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.footer {
  padding: 24px 0 48px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
}
.search-box input,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: 0;
}
.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 6px;
  font-size: 15px;
}
.search-box input::placeholder,
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.filter-box { padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar { margin-top: 24px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.glass-band {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: #dbeafe;
}

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.kpi strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
  line-height: 1.1;
}
.kpi span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(96,165,250,.22), rgba(139,92,246,.18));
  font-weight: 800;
}
.install {
  color: var(--success);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.18);
}
.app-actions, .actions, .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 14px;
  line-height: 1.6;
}

.layout-category { display: grid; grid-template-columns: 280px 1fr; gap: 18px; padding: 22px 0 54px; }
.sidebar {
  padding: 20px;
  position: sticky;
  top: 92px;
  height: fit-content;
}
.sidebar h3 { margin-bottom: 8px; }
.sidebar p { font-size: 14px; }
.menu { display: grid; gap: 10px; margin-top: 12px; }
.menu a {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.menu a.active, .menu a:hover {
  background: rgba(96,165,250,.12);
  color: var(--text);
  border-color: rgba(96,165,250,.18);
  transform: translateX(2px);
}

.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-card {
  padding: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(0,0,0,.32);
  border-color: rgba(96,165,250,.22);
}
.app-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.app-top h3 { font-size: 20px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 22px; }
.app-main, .side { padding: 26px; }
.title-wrap { display: flex; gap: 16px; align-items: center; }
.app-logo-lg {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(96,165,250,.28), rgba(139,92,246,.24));
  font-size: 24px;
  box-shadow: 0 14px 34px rgba(96,165,250,.18);
}

.category-chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-chip {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.category-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.18);
  background: rgba(255,255,255,.06);
}
.category-chip h3 { margin: 0 0 6px; font-size: 18px; }
.category-chip p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.tags, .screens { display: flex; gap: 10px; flex-wrap: wrap; }
.feature { padding: 20px; }
.feature p { font-size: 14px; }
.screen {
  flex: 1 1 220px;
  min-height: 160px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(96,165,250,.10), rgba(139,92,246,.12));
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: #dbeafe;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.steps, .checklist { display: grid; gap: 12px; }
.step, .item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.step strong, .item strong { display: inline-block; margin-bottom: 4px; }
.step .muted, .item .muted { font-size: 14px; line-height: 1.65; }

.faq-item {
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 16px;
  font: inherit;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-answer {
  display: none;
  padding: 0 16px 16px;
  color: var(--muted);
}
.faq-item.open .faq-answer { display: block; }

.hero-search {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-search .search-box {
  flex: 1;
  min-width: 280px;
}
.review-card { position: relative; }
.review-card p { font-size: 14px; line-height: 1.7; }
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251,191,36,.10);
  border: 1px solid rgba(251,191,36,.24);
  color: #fbbf24;
  font-size: 12px;
}

.layout-submit { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; padding: 18px 0 54px; }
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 0 28px; }
.admin-panel { padding: 24px; }
.admin-list { display: grid; gap: 16px; }
.admin-card { padding: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.field textarea { min-height: 120px; resize: vertical; }
.grid-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.checkbox-row input { accent-color: var(--brand); }
.form-status {
  min-height: 24px;
  margin-top: 14px;
  font-size: 14px;
}
.form-status.success { color: var(--success); }
.form-status.error { color: #fca5a5; }

.brand-story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 24px; }
.hero-panel { padding: 26px; }
.oo-lockup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid var(--brand3);
  box-shadow: inset 0 0 0 10px rgba(34,211,238,.06);
}
.app-core {
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 900;
  letter-spacing: .18em;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.section-space { padding: 0 0 54px; }

@media (max-width: 980px) {
  .toolbar,
  .layout-category,
  .apps-grid,
  .hero-grid,
  .layout-submit,
  .grid-3,
  .grid-4,
  .grid-form-2,
  .brand-story,
  .detail-hero-grid,
  .kpi-row,
  .category-chip-grid {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}
