/* NexaPanel by WPressly — website v1 design system
   Dark-mode-first, infrastructure/control-panel aesthetic. No external fonts (fast + privacy-safe). */

:root {
  --bg: #0a0e1a;
  --bg-2: #0d1320;
  --surface: #121a2b;
  --surface-2: #16203349;
  --border: #233149;
  --border-soft: #1b2740;
  --text: #e6edf6;
  --text-muted: #93a1b5;
  --text-faint: #6b7a92;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(120deg, #6366f1 0%, #22d3ee 100%);
  --good: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --shadow: 0 10px 40px -12px rgba(0,0,0,.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16.5px; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(34,211,238,.08), transparent 55%);
  background-attachment: fixed;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.18; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--text); }
.muted { color: var(--text-muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--accent-2); margin-bottom: 10px; }
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(10,14,26,.72); border-bottom: 1px solid var(--border-soft); }
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 28px; height: 28px; }
.brand small { display:block; font-size: .62rem; color: var(--text-faint); font-weight: 600; letter-spacing: .04em; margin-top: -2px;}
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); padding: 8px 11px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: .94rem; cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, filter .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); color: #07101e; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 8px 13px; font-size: .86rem; }

/* ---- badges / pills ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface-2); }
.badge.alpha { color: #fde68a; border-color: #6b5d1f; background: #2a230b; }
.badge.good { color: var(--good); border-color: #1f5d44; background: #082018; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

/* ---- alpha banner ---- */
.alpha-bar { background: linear-gradient(90deg, rgba(99,102,241,.16), rgba(34,211,238,.12)); border-bottom: 1px solid var(--border-soft); font-size: .85rem; color: var(--text-muted); }
.alpha-bar .container { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 9px 22px; text-align: center; flex-wrap: wrap; }

/* ---- hero ---- */
.hero { padding: 86px 0 56px; text-align: center; }
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 18px auto 26px; font-size: 1.25rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 22px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--text-faint); font-size: .86rem; }

/* mock window */
.mock { margin: 44px auto 0; max-width: 940px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); background: #0b1120; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mock-bar .u { margin-left: 12px; font-size: .78rem; color: var(--text-faint); font-family: var(--mono); }
.mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 320px; }
.mock-side { border-right: 1px solid var(--border-soft); padding: 14px; background: #0b1322; }
.mock-side .item { font-size: .82rem; color: var(--text-muted); padding: 7px 10px; border-radius: 7px; }
.mock-side .item.active { background: var(--surface-2); color: var(--text); }
.mock-main { padding: 18px; }
.mock-card { border: 1px solid var(--border-soft); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.mock-kpi { display: flex; gap: 12px; }
.mock-kpi div { flex: 1; border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; background: var(--surface); }
.mock-kpi b { font-size: 1.3rem; }

/* ---- grids / cards ---- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.card p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.card .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.card .ico svg { width: 18px; height: 18px; stroke: var(--accent-2); }
.section-head { text-align: center; max-width: 64ch; margin: 0 auto 36px; }
.section-head .lede { margin: 0 auto; }

/* feature row */
.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.feature-row.rev { direction: rtl; }
.feature-row.rev > * { direction: ltr; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li { padding: 8px 0 8px 30px; position: relative; color: var(--text-muted); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
thead th { background: var(--bg-2); color: var(--text); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
td .yes { color: var(--good); font-weight: 700; }
td .no { color: var(--text-faint); }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.price.feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.price h3 { margin-bottom: 4px; }
.price .amt { font-size: 2rem; font-weight: 800; margin: 8px 0 2px; }
.price .amt span { font-size: .9rem; color: var(--text-faint); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.price li { padding: 6px 0 6px 24px; position: relative; color: var(--text-muted); font-size: .92rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); }

/* ---- docs ---- */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.docs-side { position: sticky; top: 84px; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.docs-side h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin: 12px 0 6px; }
.docs-side a { display: block; padding: 6px 9px; border-radius: 7px; color: var(--text-muted); font-size: .9rem; }
.docs-side a:hover, .docs-side a.active { background: var(--surface-2); color: var(--text); text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { font-family: var(--mono); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 6px; font-size: .86em; color: #cdd9ec; }
.prose pre { background: #0b1120; border: 1px solid var(--border-soft); border-radius: 10px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; border: none; padding: 0; color: #cfe3ff; }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 8px; padding: 12px 16px; margin: 16px 0; color: var(--text-muted); font-size: .94rem; }
.callout.warn { border-left-color: var(--warn); }
.callout.danger { border-left-color: var(--danger); }
.callout strong { color: var(--text); }

/* ---- forms ---- */
.form { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); font-family: inherit; font-size: .95rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .9rem; color: var(--text-muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: 14px; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 9px; font-size: .9rem; }

/* ---- misc ---- */
.cta-band { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 18px; padding: 40px; text-align: center; }
.kpi-band { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.kpi { text-align: center; }
.kpi b { display: block; font-size: 1.8rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { color: var(--text-faint); font-size: .82rem; }
.split-note { color: var(--text-faint); font-size: .82rem; }
hr { border: none; border-top: 1px solid var(--border-soft); margin: 28px 0; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 50px 0 36px; margin-top: 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h5 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin: 0 0 10px; }
.foot-grid a { display: block; color: var(--text-muted); padding: 4px 0; font-size: .9rem; }
.foot-grid a:hover { color: var(--text); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: .82rem; flex-wrap: wrap; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 22px; }
  .docs { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px; }
  .grid-3, .grid-4, .grid-2, .price-grid, .field-row, .foot-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 60px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }

/* light mode (optional, opt-in via data-theme) */
[data-theme="light"] {
  --bg: #f6f8fc; --bg-2: #eef2f9; --surface: #ffffff; --surface-2: #eef2f9; --border: #d4deec; --border-soft: #e2e8f3;
  --text: #0e1726; --text-muted: #44546c; --text-faint: #6b7a92;
}

/* ============================================================= */
/*  Polish pass v1.1 — rhythm, hierarchy, brand, premium detail  */
/* ============================================================= */

/* Section rhythm: gentle alternating contrast so the page isn't flat */
main > section:nth-of-type(even) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0)),
    var(--bg-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
main > section.hero { background: none; border: none; } /* hero keeps the ambient glow */

/* Cards: clearer hierarchy + subtle premium lift */
.card { transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--border); box-shadow: 0 14px 40px -20px rgba(0,0,0,.7); }
.card h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.card .ico { width: 38px; height: 38px; background: linear-gradient(140deg, rgba(99,102,241,.18), rgba(34,211,238,.10)); border-color: var(--border); }
.grid { gap: 20px; }

/* Brand wordmark — more premium, better aligned */
.brand { gap: 11px; }
.brand .logo { width: 30px; height: 30px; display: grid; place-items: center; filter: drop-shadow(0 3px 8px rgba(99,102,241,.35)); }
.brand > span:last-child { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand > span:last-child { font-size: 1.06rem; font-weight: 700; letter-spacing: -.025em; }
.brand small { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-top: 1px; }

/* Header refinement */
.site-header { border-bottom-color: var(--border-soft); }
.nav { height: 66px; }
.nav-links a { font-weight: 500; }
.nav-cta .btn { font-weight: 600; }
.btn-primary { box-shadow: 0 6px 20px -8px rgba(99,102,241,.6); }

/* Hero balance */
.hero h1 { max-width: 17ch; margin-left: auto; margin-right: auto; }
.hero .lede { max-width: 64ch; }
.hero-meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-soft); display: inline-flex; }
.hero-trust { margin: 14px auto 0; display: inline-flex; gap: 8px; align-items: center; color: var(--text-faint); font-size: .82rem; }
.hero-trust .dot { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(34,211,238,.16); }

/* Pricing — cleaner "to be confirmed" treatment (no awkward — / mo) */
.price .amt { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 10px 0 2px; letter-spacing: -.01em; }
.price .amt .tbd { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .per { display: none; }
.price .note-line { font-size: .8rem; color: var(--text-faint); margin: 0 0 4px; }

/* Request-access reassurance row */
.assure { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 auto 22px; max-width: 760px; }
.assure span { font-size: .82rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px; padding: 6px 13px; }
.assure b { color: var(--good); }

/* Section heads a touch more refined */
.section-head h2 { letter-spacing: -.025em; }
.eyebrow { color: var(--accent-2); }

/* Brand lockup (NexaPanel -> home, "by WPressly" -> wpressly.com, no nested anchors) */
.brand-link { display: inline-flex; align-items: center; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.06rem; font-weight: 700; letter-spacing: -.025em; color: var(--text); }
.brand-name:hover { color: var(--text); text-decoration: none; }
.brand-by { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-top: 1px; }

/* WPressly credibility link — subtle (inherits surrounding colour), discoverable on hover */
.wp-link { color: inherit; text-decoration: none; }
.wp-link:hover, .wp-link:focus-visible { color: var(--accent-2); text-decoration: underline; }
.brand-by .wp-link:hover { color: var(--accent-2); }
