/* Anomalie landing — layout on top of theme.css (tokens + components). */

/* Lift all page content above the fixed .bg-fx overlay (which sits at z-index:-1).
   Without this the hero + cards paint under the overlay and only appear on :hover. */
main, .site-footer { position: relative; z-index: 1; }

/* ── header ───────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header .bar { max-width: 1140px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(84,214,232,.3); color: var(--accent); }
.brand-text { font-family: var(--font-display); font-weight: 700; letter-spacing: .18em; font-size: 16px; }
.brand-text small { display: block; font-size: 9px; letter-spacing: .34em; color: var(--muted); font-weight: 500; margin-top: 1px; }
.header-nav { display: flex; align-items: center; gap: 8px; }

/* auth widget */
.auth-widget { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; }
.auth-loading { color: var(--faint); font-size: 13px; }
.auth-user { display: inline-flex; align-items: center; gap: 9px; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 8px 5px 5px; border-radius: var(--r-pill); }
.auth-user img { width: 28px; height: 28px; border-radius: 50%; }
.auth-user .name { font-size: 13px; font-weight: 600; }
.auth-link { font-size: 13px; font-weight: 500; color: var(--text-2); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r-pill); transition: var(--t); }
.auth-link:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.04); }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { max-width: 1140px; margin: 0 auto; padding: 72px 24px 36px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(84,214,232,.25); padding: 6px 13px; border-radius: var(--r-pill); margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; margin: 0 0 20px; max-width: 16ch; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-2); font-size: 18px; line-height: 1.55; max-width: 56ch; margin: 0 0 30px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 40px; }

/* trust row */
.trust { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 30px; border-top: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 11px; color: var(--text-2); font-size: 13.5px; }
.trust-item svg { color: var(--accent); flex: none; }
.trust-item strong { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
.trust-item span { color: var(--muted); font-size: 12.5px; }

/* ── catalogue ────────────────────────────────────────────────────────────── */
.catalogue { max-width: 1140px; margin: 0 auto; padding: 44px 24px 90px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cat-head h2 { font-size: 26px; }
.cat-head .sub { color: var(--muted); font-size: 13.5px; }
.catalog-status { color: var(--muted); padding: 40px 0; text-align: center; }
.catalog-status strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.product-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--sh-3); }
.pc-media { aspect-ratio: 16/10; background: radial-gradient(120% 120% at 70% 10%, rgba(139,124,255,.28), transparent 55%), linear-gradient(135deg, #131a2b, #0c111c); position: relative; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-media .pc-kind { position: absolute; top: 12px; left: 12px; }
.pc-glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(120,150,200,.35); }
.pc-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0; }
.pc-desc { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; margin: 0; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pc-price { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.pc-price .cur { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 2px; }

/* ── server selector (home) ───────────────────────────────────────────────── */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.server-card { --sc-accent: var(--accent); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 9px; padding: 26px 24px 22px; min-height: 188px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.server-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--sh-3); }
.server-card .sc-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 180px at 110% -20%, color-mix(in srgb, var(--sc-accent) 26%, transparent), transparent 60%); }
.sc-badge { position: relative; align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .03em; color: var(--sc-accent); background: color-mix(in srgb, var(--sc-accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sc-accent) 30%, transparent); padding: 3px 10px; border-radius: var(--r-pill); }
.sc-name { position: relative; font-size: 23px; font-weight: 700; margin: 4px 0 0; }
.sc-desc { position: relative; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; margin: 0; }
.sc-cta { position: relative; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--sc-accent); margin-top: 4px; }
.server-card:hover .sc-cta svg { transform: translateX(3px); }
.sc-cta svg { transition: transform var(--t); }

/* ── footer ───────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 1140px; margin: 0 auto; padding: 30px 24px 56px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }
.site-footer strong { color: var(--text-2); }
.site-footer a { color: var(--accent); }

@media (max-width: 600px) {
    .hero { padding-top: 46px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .trust { gap: 16px; }
}
