:root {
  --bg: #0a0d12;
  --bg-2: #0f141b;
  --panel: rgba(17, 24, 34, 0.92);
  --panel-2: rgba(13, 18, 26, 0.9);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #f4f6fa;
  --muted: #a7b0be;
  --muted-2: #7f8a99;
  --accent: #c6a56b;
  --accent-2: #8fc8ff;
  --success: #8fbf9f;
  --danger: #c78686;
  --shadow: 0 18px 40px rgba(0,0,0,0.35);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1240px;
}
* { box-sizing: border-box; }
[data-ms-content="members"] { display: none; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143,200,255,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(198,165,107,0.08), transparent 26%),
    linear-gradient(180deg, #0a0d12 0%, #0c1016 45%, #090c11 100%);
  color: var(--text);
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px);
  background: rgba(10, 13, 18, 0.74); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display:flex; align-items:center; justify-content:space-between; min-height:120px; gap:24px; }
.brand { display:flex; align-items:center; gap:14px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(198,165,107,.9), rgba(143,200,255,.85));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px rgba(0,0,0,.28);
}
.brand-logo {
  height: 200px; width: auto; filter: invert(1); opacity: 0.92;
}
.nav-links { display:flex; gap:22px; align-items:center; color: var(--muted); font-size:.98rem; }
.nav-links a:hover { color: var(--text); }
.actions { display:flex; gap:12px; align-items:center; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:0 18px;
  border-radius: 999px; border:1px solid var(--line-strong); background: rgba(255,255,255,.02); color: var(--text);
  font-weight: 600; transition: .18s ease; cursor:pointer;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.26); }
.btn-primary {
  background: linear-gradient(135deg, rgba(198,165,107,0.98), rgba(143,200,255,0.92));
  color: #071019; border: none; box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.btn-ghost { background: rgba(255,255,255,.03); }
.hero { padding: 92px 0 66px; }
.hero-grid { display:grid; grid-template-columns: 1.2fr .9fr; gap: 34px; align-items:center; }
.kicker { color: var(--accent-2); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; }
h1, h2, h3, h4 { line-height:1.08; margin:0 0 14px; }
h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing:-.04em; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing:-.03em; }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.09rem; color: var(--muted); max-width: 720px; }
.hero-card, .panel {
  background: linear-gradient(180deg, rgba(18,24,34,.95), rgba(10,15,22,.92));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 24px; }
.metric-row { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; margin-top:18px; }
.metric { padding: 18px; border:1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.02); }
.metric .label { color: var(--muted-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.metric .value { margin-top: 10px; font-size: 1.6rem; font-weight: 700; }
.section { padding: 34px 0 70px; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:28px; margin-bottom: 22px; }
.section-head p { color: var(--muted); max-width: 680px; margin:0; }
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap:22px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.card {
  background: linear-gradient(180deg, rgba(16,22,31,.96), rgba(11,15,22,.92));
  border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.tag {
  display:inline-flex; padding:8px 12px; border-radius:999px; font-size:.76rem; letter-spacing:.08em;
  text-transform:uppercase; color: var(--accent-2); border:1px solid rgba(143,200,255,.24); background: rgba(143,200,255,.06);
}
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; margin: 8px 0; }
.muted { color: var(--muted); }
.small { color: var(--muted-2); font-size: .92rem; }
.list { display:grid; gap:10px; padding:0; list-style:none; margin:18px 0 0; }
.list li { color: var(--muted); padding-left: 18px; position:relative; }
.list li::before { content:""; position:absolute; left:0; top:10px; width:6px; height:6px; border-radius:50%; background: var(--accent); }
.form-wrap { max-width: 560px; margin: 46px auto 82px; }
.form-card { padding: 28px; }
.form-grid { display:grid; gap:16px; }
label { display:grid; gap:8px; color: var(--muted); font-size:.95rem; }
input, select {
  min-height: 50px; border-radius: 14px; border:1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text);
  padding: 0 16px; font: inherit;
}
input::placeholder { color: #738093; }
.note { padding:14px 16px; border-radius: 14px; border:1px solid rgba(143,200,255,.16); background: rgba(143,200,255,.06); color: var(--muted); }
.notice-danger { border-color: rgba(199,134,134,.24); background: rgba(199,134,134,.08); }
.dashboard-hero { padding: 52px 0 26px; }
.dashboard-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.stat-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
.footer { padding: 30px 0 58px; color: var(--muted-2); }
.footer-line { height:1px; background: var(--line); margin: 0 0 22px; }
.inline { display:flex; gap:12px; flex-wrap:wrap; }
/* ── Stock chart background ────────────────────────────────────────── */
.chart-bg {
  position: relative; overflow: hidden;
}
.chart-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' fill='none'%3E%3Cpath d='M0 280 Q60 260 120 270 T240 220 T360 240 T480 180 T600 200 T720 140 T840 160 T960 100 T1080 120 T1200 80' stroke='%238fc8ff' stroke-width='2'/%3E%3Cpath d='M0 300 Q80 290 160 295 T320 260 T480 270 T640 230 T800 245 T960 200 T1120 210 T1200 180' stroke='%23c6a56b' stroke-width='1.5'/%3E%3Cpath d='M0 320 Q100 310 200 315 T400 290 T600 300 T800 270 T1000 280 T1200 250' stroke='%238fc8ff' stroke-width='1' opacity='.5'/%3E%3C!-- Grid lines --%3E%3Cline x1='0' y1='100' x2='1200' y2='100' stroke='%23ffffff' stroke-width='.5' opacity='.15'/%3E%3Cline x1='0' y1='200' x2='1200' y2='200' stroke='%23ffffff' stroke-width='.5' opacity='.15'/%3E%3Cline x1='0' y1='300' x2='1200' y2='300' stroke='%23ffffff' stroke-width='.5' opacity='.15'/%3E%3Cline x1='300' y1='0' x2='300' y2='400' stroke='%23ffffff' stroke-width='.5' opacity='.1'/%3E%3Cline x1='600' y1='0' x2='600' y2='400' stroke='%23ffffff' stroke-width='.5' opacity='.1'/%3E%3Cline x1='900' y1='0' x2='900' y2='400' stroke='%23ffffff' stroke-width='.5' opacity='.1'/%3E%3C/svg%3E");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
}
.chart-bg > * { position: relative; z-index: 1; }

/* ── Model detail pages ───────────────────────────────────────────── */
.model-hero { padding: 72px 0 48px; }
.model-hero .model-meta { display:flex; gap:24px; align-items:center; flex-wrap:wrap; margin-top:18px; }
.model-hero .model-meta .price { font-size:1.5rem; font-weight:700; margin:0; }
.model-hero .model-meta .small { margin:0; }

.process-section { padding: 0 0 48px; }
.process-content { max-width: 820px; }
.process-content p { color: var(--muted); font-size: 1.05rem; line-height: 1.72; margin: 0 0 18px; }
.process-content h3 { margin: 28px 0 10px; color: var(--text); }

.tab-preview-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap:22px; }
.tab-card { background: linear-gradient(180deg, rgba(16,22,31,.96), rgba(11,15,22,.92)); border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow: var(--shadow); }
.tab-card .screenshot-placeholder {
  width:100%; aspect-ratio: 16/9; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(143,200,255,0.04), rgba(198,165,107,0.03));
  border-bottom: 1px solid var(--line); color: var(--muted-2); font-size:.88rem; letter-spacing:.04em;
}
.tab-card .tab-info { padding: 18px 20px; }
.tab-card .tab-info h4 { margin: 0 0 6px; font-size: 1.05rem; }
.tab-card .tab-info p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.58; }

/* Model list in hero card */
.model-list { display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:16px; }
.model-list a {
  display:flex; align-items:center; gap:10px; padding:12px 14px;
  border:1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.02);
  transition: .18s ease; font-size:.92rem;
}
.model-list a:hover { border-color: rgba(143,200,255,.3); background: rgba(143,200,255,.04); }
.model-list .ml-tag {
  font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--accent-2); white-space:nowrap;
}
.model-list .ml-name { color: var(--muted); font-size:.82rem; }

@media (max-width: 1080px) {
  .hero-grid, .dashboard-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { flex-wrap:wrap; padding:14px 0; }
  .nav-links { order:3; width:100%; overflow:auto; padding-bottom:4px; }
  .hero-grid, .dashboard-grid, .grid-2, .grid-4, .stat-grid, .metric-row { grid-template-columns: 1fr; }
  .section-head { display:grid; }
}
