/* ============================================================================
   Arian Client — layout (nav, landing+login, pricing, dashboard, changelog).
   Builds on tokens.css. Loader-faithful: flat dark, hairline borders, glass,
   the shine-gradient reserved as the single signature element.
   ============================================================================ */

/* -------------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line-soft), 0 6px 18px -6px rgba(139, 92, 246, 0.4);
}
.brand .accent { color: var(--brand-light); }

/* ---------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  position: relative; padding: 8px 13px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user .who { font-size: 13px; font-weight: 600; color: var(--muted); }
.nav-user .who b { color: var(--text); font-weight: 700; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-soft); color: var(--text);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------- hero/login */
.hero { padding: 60px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--brand-light);
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--brand-12); border: 1px solid var(--line-soft); margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 8px var(--brand-light); }
.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.04em;
  font-weight: 800; margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-light), var(--brand)); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero .lead { font-size: 16px; color: var(--muted); max-width: 460px; margin-bottom: 26px; line-height: 1.6; }
.hero-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.hero-point { display: flex; align-items: center; gap: 11px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.hero-point .tick {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-12); color: var(--brand-light);
}
.hero-point .tick .icon { width: 13px; height: 13px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* login card (shared by hero + standalone) */
.auth-card { width: 100%; max-width: 400px; margin: 0 auto; padding: 30px 28px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .mark { width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 14px; }
.auth-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.auth-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.cf-turnstile { display: flex; justify-content: center; min-height: 0; }
.cf-turnstile.show { min-height: 65px; margin-top: 2px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.auth-foot a { color: var(--brand-light); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ section */
.section { padding: 64px 0; }
.section-head { margin-bottom: 38px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 540px; }

/* ----------------------------------------------------------------- features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: var(--brand-30); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px;
  background: var(--brand-12); color: var(--brand-light); border: 1px solid var(--line-soft);
}
.feature .ico .icon { width: 21px; height: 21px; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------------ pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; padding: 28px 24px; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.price:hover { transform: translateY(-5px); border-color: var(--brand-30); }
.price.featured { border-color: var(--brand-30); box-shadow: var(--glass-shadow), 0 0 0 1px var(--brand-30); }
.price-tag {
  position: absolute; top: -11px; left: 22px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fff; padding: 4px 12px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand)); background-size: 200% auto; animation: shine 3s linear infinite;
}
.price .name { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price .amount { display: flex; align-items: baseline; gap: 9px; }
.price .now { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .cur { font-size: 16px; font-weight: 700; color: var(--muted); }
.price .was { font-size: 16px; color: var(--faint); text-decoration: line-through; }
.price .save { align-self: flex-start; margin-top: 11px; font-size: 11.5px; font-weight: 700; color: var(--success-text); background: rgba(123, 204, 135, 0.1); padding: 4px 10px; border-radius: var(--r-pill); }
.price .desc { font-size: 13px; color: var(--muted); margin: 18px 0 20px; flex: 1; line-height: 1.55; }

/* ------------------------------------------------------------------ payment */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pay { padding: 28px 26px; display: flex; flex-direction: column; }
.pay h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.pay h3 .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-12); color: var(--brand-light); }
.pay h3 .ico .icon { width: 17px; height: 17px; }
.pay .sub { font-size: 12.5px; color: var(--brand-light); font-weight: 600; margin: 5px 0 16px 44px; }
.pay .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pay .body { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; flex: 1; line-height: 1.6; }
.note {
  margin-top: 26px; padding: 18px 22px; border-radius: var(--r-sm); font-size: 13px; color: var(--muted);
  background: var(--brand-12); border: 1px solid var(--line-soft); display: flex; gap: 11px; align-items: flex-start;
}
.note .icon { width: 17px; height: 17px; color: var(--brand-light); flex-shrink: 0; margin-top: 1px; }
.note b { color: var(--text); }

/* ------------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line-soft); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer .muted { color: var(--faint); font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--brand-light); }

/* ==================================================================== panel */
.dash { padding: 36px 0 70px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.dash-head h1 .name { color: var(--brand-light); }
.dash-head .sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.dash-grid .span-2 { grid-column: 1 / -1; }

.panel { padding: 24px; }
.panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.panel-head .t { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.panel-head .who { font-size: 14px; font-weight: 700; }
.panel-head .who-sub { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }

/* download / license-gated panel */
.dl { display: flex; flex-direction: column; }
.dl-version { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft); margin-bottom: 16px; }
.dl-version .v-label { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.dl-version .v-label .icon { width: 16px; height: 16px; color: var(--brand-light); }
.dl-version .v-num { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.dl-state {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 16px;
  font-size: 13px; line-height: 1.5;
}
.dl-state.ok { background: rgba(123, 204, 135, 0.08); border: 1px solid rgba(123, 204, 135, 0.22); color: var(--success-text); }
.dl-state.locked { background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.2); color: #fcd34d; }
.dl-state .icon { width: 18px; height: 18px; flex-shrink: 0; }
.dl-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.55; }
.dl-note a:not(.btn) { color: var(--brand-light); font-weight: 600; }
.dl-cta { margin: 4px 0 10px; }
.dl-cta-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ================================================================ changelog */
.cl-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.cl-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.cl-head h2 .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-12); color: var(--brand-light); }
.cl-head h2 .ico .icon { width: 17px; height: 17px; }
.cl-version-now { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cl-version-now b { color: var(--brand-light); }

.cl-group { border: 1px solid var(--line-soft); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.015); }
.cl-group > summary {
  list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  transition: background 0.2s var(--ease);
}
.cl-group > summary::-webkit-details-marker { display: none; }
.cl-group > summary:hover { background: rgba(255, 255, 255, 0.025); }
.cl-group > summary .chev { margin-left: auto; color: var(--faint); transition: transform 0.25s var(--ease); display: grid; place-items: center; }
.cl-group > summary .chev .icon { width: 18px; height: 18px; }
.cl-group[open] > summary .chev { transform: rotate(180deg); }
.cl-ver-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.cl-ver-badge .icon { width: 16px; height: 16px; color: var(--brand-light); }
.cl-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.cl-date .icon { width: 13px; height: 13px; }
.cl-summary-counts { display: flex; gap: 6px; }

.cl-body { padding: 4px 18px 18px; }
.cl-subhead { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.8); margin: 14px 0 8px; }
.cl-line { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.cl-line strong { color: #fff; font-weight: 700; }
.cl-cat {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; margin-top: 1px; white-space: nowrap;
}
.cl-cat .icon { width: 12px; height: 12px; }
.cl-cat.added { color: var(--success-text); background: rgba(123, 204, 135, 0.12); }
.cl-cat.improved { color: var(--brand-light); background: var(--brand-12); }
.cl-cat.fixed { color: #fcd34d; background: rgba(251, 191, 36, 0.12); }
.cl-cat.security { color: #fca5a5; background: rgba(248, 113, 113, 0.12); }
.cl-cat.note { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.cl-empty { text-align: center; padding: 30px; color: var(--faint); font-size: 13px; }

/* loading states */
.center-load { min-height: 60vh; display: grid; place-items: center; }
.center-load .inner { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

/* ============================================================== responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 40px 0 56px; }
  .hero-text { text-align: center; }
  .hero .lead, .hero-points { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .pay-grid, .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #080810; border-bottom: 1px solid var(--line-soft); padding: 12px 22px 18px; gap: 2px;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.8);
  }
  .nav-links.open { display: flex; animation: fadeIn 0.25s var(--ease) both; }
  .nav-links a:not(.btn) { padding: 12px 12px; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: grid; }
  .hero-points { align-items: flex-start; display: inline-flex; }
}
@media (max-width: 440px) {
  .container { padding: 0 16px; }
  .auth-card { padding: 26px 20px; }
  .panel { padding: 18px; }
  .price .now { font-size: 38px; }
}
