/* ELX-ShellHub — public landing page.
   Standalone on purpose: the landing must not pull in app.css (2k+ lines of
   dashboard chrome nobody on this page needs). Shares the palette so the jump
   from landing → /login → dashboard doesn't feel like a different product. */

:root {
  --bg: #060912;
  --surface: rgba(17, 23, 38, 0.72);
  --surface-2: rgba(11, 16, 28, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6ecf5;
  --text-dim: #b6bfd0;
  --muted: #7a849a;
  --cyan: #00f0ff;
  --pink: #ff4d8d;
  --mint: #00ff9f;
  --amber: #ffb347;
  --radius: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% 0%,   rgba(0, 240, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 8%,   rgba(255, 77, 141, 0.08), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 255, 159, 0.05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace; }
.muted { color: var(--muted); }

a { color: var(--cyan); text-decoration: none; transition: color .15s, text-shadow .2s; }
a:hover { color: #5ff7ff; }

h1, h2, h3 { margin: 0 0 .6rem; font-weight: 650; letter-spacing: .2px; line-height: 1.25; }
p { margin: 0 0 1rem; }

code {
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: .92em;
  background: rgba(0, 240, 255, .09);
  border: 1px solid rgba(0, 240, 255, .18);
  border-radius: 5px;
  padding: .08em .38em;
  color: #9fefff;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--cyan); color: #04121a;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .6rem 1.15rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: .95rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, rgba(0,240,255,.22), rgba(255,77,141,.20));
  border-color: rgba(0, 240, 255, .45);
  color: #eafcff;
  box-shadow: 0 0 20px rgba(0, 240, 255, .18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(0, 240, 255, .34);
  color: #fff;
}
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text-dim); }
.btn-ghost:hover { border-color: rgba(0,240,255,.35); color: var(--text); background: rgba(0,240,255,.06); }

/* ───── header ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 9, 18, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; }
.brand:hover { color: var(--text); }
.brand-mark { color: var(--cyan); text-shadow: 0 0 12px rgba(0,240,255,.6); font-size: 1.05rem; }
.brand-text b { color: var(--cyan); font-weight: 700; }
.brand-sm { font-size: .8rem; margin-bottom: .5rem; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .93rem; }
.site-nav a { color: var(--text-dim); }
.site-nav a:hover { color: var(--cyan); }

.header-actions { display: flex; gap: .6rem; align-items: center; }
.site-nav + .header-actions { margin-left: 0; }

.lang-switch {
  font-size: .8rem; font-weight: 700; letter-spacing: .8px;
  color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .38rem .6rem;
  transition: color .18s, border-color .18s, background .18s;
}
.lang-switch:hover { color: var(--cyan); border-color: rgba(0,240,255,.35); background: rgba(0,240,255,.06); }

/* ───── hero ───── */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }

/* Grid and flex children default to min-width:auto, so the <pre> blocks (whose
   lines don't wrap) push their track wider than the viewport and give the whole
   page a horizontal scrollbar. Letting them shrink keeps the overflow inside
   the scrollable <pre> where it belongs. */
.hero-inner > *, .grid > *, .steps > *, .install > *, .diagram > * { min-width: 0; }
pre, .term-body, .code { max-width: 100%; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--mint);
  background: rgba(0,255,159,.09);
  border: 1px solid rgba(0,255,159,.22);
  border-radius: 999px;
  padding: .28rem .8rem;
  margin: 0 0 1.1rem;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.lead { font-size: 1.08rem; color: var(--text-dim); max-width: 34em; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }

.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.hero-points li { position: relative; padding-left: 1.6rem; color: var(--text-dim); font-size: .95rem; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }

/* terminal mock */
.hero-term {
  background: rgba(8, 12, 22, .88);
  border: 1px solid rgba(0, 240, 255, .22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(0,240,255,.08);
}
.term-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .9rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; } .dot.amber { background: var(--amber); } .dot.green { background: var(--mint); }
.term-title { margin-left: .6rem; font-size: .78rem; color: var(--muted); }
.term-body { margin: 0; padding: 1.1rem 1.2rem 1.4rem; font-size: .84rem; line-height: 1.75; color: #cfe6ea; overflow-x: auto; }
.c-cy { color: var(--cyan); } .c-pk { color: var(--pink); } .c-gr { color: var(--mint); } .c-mut { color: var(--muted); }
.cursor { animation: blink 1.1s step-end infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

/* ───── sections ───── */
.band { padding: 4rem 0; }
.band-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 12%, rgba(255,255,255,.018) 88%, transparent); }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .7rem; }
.section-lead { color: var(--muted); max-width: 46em; margin-bottom: 2.2rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(0,240,255,.3); box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.card h3 { font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .94rem; }
.card-ic {
  width: 40px; height: 40px; margin-bottom: .9rem;
  display: grid; place-items: center;
  border-radius: 10px; font-size: 1.15rem;
  background: rgba(0,240,255,.1);
  border: 1px solid rgba(0,240,255,.22);
  color: var(--cyan);
}
.card-soft { background: var(--surface-2); }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.steps li { position: relative; padding-top: .4rem; }
.steps h3 { font-size: 1.05rem; margin: .8rem 0 .4rem; }
.steps p { color: var(--text-dim); font-size: .94rem; margin: 0; }
.step-n {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-weight: 700; font-size: .95rem;
  color: var(--bg); background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 18px rgba(0,240,255,.35);
}

/* diagram */
.diagram { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.diagram .node {
  flex: 1 1 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; text-align: center;
}
.diagram .node b { display: block; margin-bottom: .35rem; }
.diagram .node span { color: var(--muted); font-size: .86rem; }
.diagram .node-hl { border-color: rgba(0,240,255,.4); box-shadow: 0 0 26px rgba(0,240,255,.14); }
.diagram .link { flex: 0 1 90px; display: grid; place-items: center; position: relative; min-height: 60px; }
.diagram .link::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%;
  border-top: 1px dashed rgba(0,240,255,.45);
}
.link-label { position: relative; font-size: .7rem; color: var(--cyan); background: var(--bg); padding: 0 .4rem; letter-spacing: .5px; }

/* install steps */
.install { counter-reset: i; list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.6rem; }
.install li { position: relative; padding-left: 3rem; }
.install li::before {
  counter-increment: i; content: counter(i);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; font-weight: 700; font-size: .9rem;
  color: var(--cyan); background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.3);
}
.install h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.install p { color: var(--text-dim); font-size: .95rem; }
.fineprint { font-size: .87rem; color: var(--muted); }

.code {
  background: rgba(8, 12, 22, .9);
  border: 1px solid rgba(0,240,255,.2);
  border-radius: 10px;
  padding: .85rem 1rem;
  overflow-x: auto;
  font-size: .87rem;
  margin: .6rem 0 .8rem;
}
.code code { background: none; border: 0; padding: 0; color: #b9f0ff; }

.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* faq */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: .95rem 1.15rem;
  transition: border-color .18s;
}
.faq details[open] { border-color: rgba(0,240,255,.28); }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: .8rem 0 0; color: var(--text-dim); font-size: .95rem; }

/* ───── footer ───── */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 1.6rem; margin-top: 2rem; background: rgba(6,9,18,.5); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner p { font-size: .9rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .92rem; align-items: flex-start; }
.footer-nav a { color: var(--text-dim); }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }

/* ───── responsive ───── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .grid, .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .diagram .link { flex-basis: 100%; min-height: 44px; }
  .diagram .link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 0; border-top: 0; border-left: 1px dashed rgba(0,240,255,.45); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding: 2.8rem 0 2.4rem; }
  .band { padding: 2.8rem 0; }
  .grid, .grid-3, .steps { grid-template-columns: 1fr; }
  .header-inner { height: 58px; gap: .6rem; }
  .header-actions .btn-ghost { display: none; }
  .footer-inner { flex-direction: column; gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
