/* ─── Nexora IDE marketing site — theme matches the app ─── */

:root {
  --nx-50:  #eef2ff;
  --nx-100: #e0e7ff;
  --nx-200: #c7d2fe;
  --nx-300: #a5b4fc;
  --nx-400: #818cf8;
  --nx-500: #6366f1;
  --nx-600: #4f46e5;
  --nx-700: #4338ca;
  --nx-950: #1e1b4b;

  --surface-0: #0a0a0f;
  --surface-1: #111118;
  --surface-2: #1a1a24;
  --surface-3: #232330;
  --surface-4: #2d2d3d;

  --text:      #e6e6f0;
  --text-dim:  #9b9bb0;
  --text-mute: #6b6b80;

  --ok:   #34d399;
  --warn: #fbbf24;
  --err:  #f87171;

  --radius: 12px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Monaco, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--font-sans);
  background: var(--surface-1);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* scrollbar — same as the app */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

code, kbd, pre { font-family: var(--font-mono); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

a { color: var(--nx-300); text-decoration: none; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-3);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand em { font-style: normal; color: var(--nx-400); }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--nx-600); color: #fff;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { background: var(--nx-500); transform: translateY(-1px); box-shadow: 0 0 32px rgba(99, 102, 241, 0.5); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--surface-4); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ─── Hero ─── */
.hero { position: relative; padding: 96px 0 64px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -200px 0 auto 0; height: 600px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-family: var(--font-mono); color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--surface-3);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; }
.grad {
  background: linear-gradient(120deg, var(--nx-300), var(--nx-500) 55%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 620px; margin: 24px auto 36px;
  font-size: 18px; color: var(--text-dim);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-strip {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px; font-size: 13px; font-family: var(--font-mono); color: var(--text-mute);
}
.hero-strip i { font-style: normal; color: var(--surface-4); }

/* ─── App window mock ─── */
.window {
  margin: 56px auto 0; max-width: 860px; text-align: left;
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.12);
  overflow: hidden;
}
.window-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface-1); border-bottom: 1px solid var(--surface-3);
}
.tl-dot { width: 12px; height: 12px; border-radius: 50%; }
.tl-dot.red { background: #ff5f57; } .tl-dot.yellow { background: #febc2e; } .tl-dot.green { background: #28c840; }
.tl-title { flex: 1; text-align: center; font-size: 12px; color: var(--text-mute); margin-right: 56px; }
.window-body { display: flex; min-height: 300px; }
.mock-sidebar {
  width: 170px; flex-shrink: 0; padding: 14px 10px;
  background: var(--surface-1); border-right: 1px solid var(--surface-3);
  display: flex; flex-direction: column; gap: 4px;
}
.ms-item {
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--text-dim);
}
.ms-item.active { background: rgba(99, 102, 241, 0.15); color: var(--nx-300); }
.mock-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mock-tabs { display: flex; gap: 2px; padding: 10px 14px 0; border-bottom: 1px solid var(--surface-3); }
.mt {
  padding: 7px 14px; font-size: 12px; font-family: var(--font-mono);
  color: var(--text-mute); border-radius: 8px 8px 0 0;
}
.mt.active { background: var(--surface-2); color: var(--text); }
.mock-code {
  flex: 1; padding: 18px; overflow-x: auto;
  font-size: 13px; line-height: 1.7; color: var(--text-dim);
}
.c-dim  { color: var(--text-mute); }
.c-acc  { color: var(--nx-400); }
.c-ok   { color: var(--ok); }
.c-warn { color: var(--warn); }
.c-err  { color: var(--err); }
.c-ai   { color: var(--nx-200); }
.c-kw   { color: var(--nx-400); }
.c-fn   { color: #67e8f9; }
.c-str  { color: var(--ok); }
.c-add  { color: var(--ok); }
.c-del  { color: var(--err); }

/* ─── Sections ─── */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-0); border-top: 1px solid var(--surface-3); border-bottom: 1px solid var(--surface-3); }
.kicker {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--nx-400); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; margin-bottom: 16px; }
.section-sub { color: var(--text-dim); font-size: 17px; max-width: 640px; margin-bottom: 12px; }

/* ─── Grids & cards ─── */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.card-icon {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--nx-300);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px; margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); }
.card code { font-size: 12px; color: var(--nx-300); background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }

/* ─── Split sections ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-text { order: 1; }
.split-rev .split-visual { order: 2; }
.feature-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { padding-left: 26px; position: relative; font-size: 15px; color: var(--text-dim); }
.feature-list li::before {
  content: "▸"; position: absolute; left: 0; color: var(--nx-500); font-weight: 700;
}
.feature-list strong { color: var(--text); font-weight: 600; }
.feature-list code { font-size: 13px; color: var(--nx-300); }

/* ─── Panels (visual mocks) ─── */
.panel {
  background: var(--surface-0);
  border: 1px solid var(--surface-3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.08);
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; font-size: 13px; font-weight: 600;
  background: var(--surface-1); border-bottom: 1px solid var(--surface-3);
}
.pill {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--nx-300); background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 2px 10px; border-radius: 100px;
}
.pill-ok { color: var(--ok); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.panel-row { padding: 12px 18px; font-size: 13px; border-bottom: 1px solid var(--surface-2); }
.panel-row.user { color: var(--text); }
.panel-row.tool { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); padding: 8px 18px; }
.panel-row.ai { color: var(--text-dim); }
.panel-row.ai code { font-size: 12px; color: var(--nx-300); }
.panel-foot {
  display: flex; gap: 18px; padding: 11px 18px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  background: var(--surface-1);
}
.panel-foot .accent { color: var(--nx-300); }
.panel-logs, .panel-code {
  padding: 16px 18px; font-size: 12.5px; line-height: 1.8;
  color: var(--text-dim); overflow-x: auto;
}
.chip {
  display: inline-block; font-size: 10.5px; padding: 0 7px; border-radius: 4px; margin-right: 8px;
}
.chip.c1 { background: rgba(99, 102, 241, 0.18); color: var(--nx-300); }
.chip.c2 { background: rgba(52, 211, 153, 0.14); color: var(--ok); }
.chip.c3 { background: rgba(251, 191, 36, 0.14); color: var(--warn); }

/* ─── Keyboard section ─── */
.kbd-grid .card { text-align: left; }
.kbd-combo { display: flex; gap: 6px; margin-bottom: 18px; }
kbd {
  display: inline-flex; align-items: center;
  padding: 4px 10px; font-size: 13px; font-weight: 500;
  color: var(--nx-200); background: var(--surface-3);
  border: 1px solid var(--surface-4); border-bottom-width: 2px;
  border-radius: 7px;
}
.center-note { text-align: center; margin-top: 36px; color: var(--text-mute); font-size: 14px; }

/* ─── Tech ─── */
.tech-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tech {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--surface-3);
  padding: 7px 16px; border-radius: 100px;
  transition: color 0.15s, border-color 0.15s;
}
.tech:hover { color: var(--nx-300); border-color: rgba(99, 102, 241, 0.4); }
.roadmap {
  margin-top: 48px; padding: 26px;
  background: var(--surface-2); border: 1px solid var(--surface-3);
  border-left: 3px solid var(--nx-500); border-radius: var(--radius);
}
.roadmap h3 { font-size: 15px; margin-bottom: 8px; color: var(--nx-300); }
.roadmap p { font-size: 14px; color: var(--text-dim); }

/* ─── Download ─── */
.dl { position: relative; overflow: hidden; }
.dl-glow {
  position: absolute; inset: auto 0 -200px 0; height: 500px;
  background: radial-gradient(ellipse 55% 60% at 50% 100%, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
}
.center { text-align: center; position: relative; }
.dl-logo { border-radius: 16px; margin-bottom: 24px; box-shadow: 0 0 48px rgba(99, 102, 241, 0.3); }
.dl-note { margin-top: 20px; font-size: 13px; color: var(--text-mute); }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--surface-3); padding: 28px 0; background: var(--surface-0); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand-sm { font-size: 14px; }
.footer-copy { font-size: 13px; color: var(--text-mute); }

/* ─── Reveal animation ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn-primary:hover { transform: none; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-text { order: 0; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .mock-sidebar { display: none; }
}

/* ─── Plugins page ─── */
.nav-links a.active { color: var(--text); }
.pl-hero { padding: 48px 0 8px; position: relative; text-align: center; }
.pl-hero .kicker, .pl-hero h1, .pl-hero .section-sub, .pl-hero .hero-strip { margin-left: auto; margin-right: auto; }
.pl-hero h1 { font-size: clamp(34px, 5.5vw, 56px); margin: 12px 0 18px; }
.pl-hero .section-sub { max-width: 680px; }
.pl-hero .hero-strip { justify-content: center; }
.pl-catalog { padding-top: 8px; }
.pl-status { color: var(--text-mute); font-size: 13px; margin: 4px 0 20px; }

/* search + category filter toolbar */
.pl-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pl-search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.pl-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-mute); display: inline-flex; }
#plugin-search {
  width: 100%; padding: 10px 14px 10px 36px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--surface-3);
  color: var(--text); font-size: 14px; font-family: var(--font-sans); outline: none;
  transition: border-color 0.15s;
}
#plugin-search:focus { border-color: var(--nx-500); }
#plugin-search::placeholder { color: var(--text-mute); }
.pl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip {
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--surface-3); color: var(--text-dim);
  transition: all 0.15s;
}
.pl-chip:hover { color: var(--text); border-color: var(--surface-4); }
.pl-chip.active { color: #fff; background: var(--nx-600); border-color: var(--nx-500); }

.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 380px)); justify-content: center; gap: 20px; }
@media (max-width: 760px) { .plugin-grid { grid-template-columns: 1fr; } }
.pl-empty { text-align: center; color: var(--text-mute); font-size: 14px; padding: 48px 0; }

.plugin-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.plugin-card:hover { border-color: var(--nx-500); transform: translateY(-2px); }
.pl-head { display: flex; align-items: center; gap: 14px; }
.pl-icon {
  width: 46px; height: 46px; flex: none; border-radius: 11px;
  display: grid; place-items: center; color: var(--nx-200);
  background: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(99,102,241,0.08));
  border: 1px solid rgba(99,102,241,0.35);
}
.pl-title h3 { font-size: 18px; }
.pl-sub { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }
.pl-sub code { color: var(--text-dim); }
.pl-desc { color: var(--text-dim); font-size: 14px; flex: 1; }

.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pl-badge.ok { color: var(--ok); background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); }
.pl-badge.muted { color: var(--text-mute); background: var(--surface-3); border: 1px solid var(--surface-4); }
.pl-tag { font-size: 11.5px; color: var(--text-dim); background: var(--surface-3); border: 1px solid var(--surface-4); padding: 3px 9px; border-radius: 999px; }
.pl-tag.warn { color: var(--warn); border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.1); }
.pl-tag.cat { color: var(--nx-200); border-color: rgba(99,102,241,0.32); background: rgba(99,102,241,0.14); }

.pl-perms { border-top: 1px solid var(--surface-3); padding-top: 12px; }
.pl-perms-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); margin-bottom: 8px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-family: var(--font-mono); padding: 3px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--surface-4); }
.chip-net { color: var(--nx-200); border-color: rgba(99,102,241,0.3); }
.chip-sec { color: var(--warn); border-color: rgba(251,191,36,0.25); }
.chip-none { color: var(--text-mute); }

.pl-actions { display: flex; align-items: center; gap: 10px; }
.pl-size { color: var(--text-mute); font-size: 12px; margin-left: auto; font-family: var(--font-mono); }
.pl-foot { font-size: 12px; color: var(--text-mute); }

.install-steps .step-n {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; color: var(--nx-200); margin-bottom: 10px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.35);
}
.pl-build { background: var(--surface-0); border-top: 1px solid var(--surface-3); }

.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 9px; }
