/* Core Studio website and admin. Hand-written, no build step: the same dark "Spotlight" look as the app. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
}

:root {
  --bg: #12131a;
  --card: #1c1e28;
  --card-2: #252836;
  --line: #2e3142;
  --line-strong: #4a4f66;
  --text: #ffffff;
  --muted: #a6abbd;
  --accent: #a6d608;
  --ink: #12131a;
  --warn: #f5b841;
  --bad: #ff8f86;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }
a:hover { color: #c3ef2f; }
/* height: auto keeps the picture in proportion when it is narrower than its width and height attributes. */
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 460px; }
.section { padding: 72px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); }
.display { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -1px; }
.h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
.h3 { font-size: 18px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }

/* ---------- header and footer ---------- */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(18, 19, 26, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a.plain, .site-nav button.plain { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; background: none; border: 0; font-family: inherit; cursor: pointer; }
.site-nav a.plain:hover, .site-nav button.plain:hover { color: var(--accent); }
.site-foot { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 13px; }

/* ---------- buttons and forms ---------- */
.btn { min-height: 50px; padding: 0 26px; border-radius: 25px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--text); border-color: var(--text); }
.btn.primary { border: 0; background: var(--accent); color: var(--ink); font-weight: 800; }
.btn.primary:hover { background: #c3ef2f; color: var(--ink); }
.btn.small-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; padding: 0 14px; }
.field input:focus { border-color: var(--accent); outline: none; }
.error { color: var(--bad); font-size: 13px; font-weight: 600; }
.notice { background: var(--card-2); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.notice.warn { border-left-color: var(--warn); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border-radius: 24px; padding: 28px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 12px; background: var(--card-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.active { background: var(--accent); color: var(--ink); }
.chip.trial { background: #8cc0ff; color: var(--ink); }
.chip.locked { background: var(--warn); color: var(--ink); }
.chip.suspended { background: var(--bad); color: var(--ink); }

/* ---------- home page ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.phone { width: 232px; flex: none; border-radius: 34px; border: 6px solid #2a2d3b; background: #000; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.phone.back { width: 196px; margin-left: -56px; opacity: 0.9; transform: translateY(-22px); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--card); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.feature .num { width: 36px; height: 36px; border-radius: 50%; background: var(--card-2); color: var(--accent); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.feature p { color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .phone { width: 100%; }
.gallery figcaption { font-size: 14px; color: var(--muted); }
.gallery figcaption strong { color: var(--text); display: block; }
.price-card { max-width: 520px; margin: 0 auto; border: 2px solid var(--accent); }
.price { font-size: 64px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.band { background: var(--card); }

/* ---------- admin ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--card); border-radius: 18px; padding: 18px; }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.table-box { overflow-x: auto; background: var(--card); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .phone { width: 190px; }
  .phone.back { width: 160px; margin-left: -48px; }
  .card { padding: 22px; }
}
