/* easyCAD — handcrafted styles (landing + dashboard) */
:root {
  --bg: #0a0f1c;
  --bg-2: #0d1526;
  --panel: #111d33;
  --panel-2: #16233d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e8eefb;
  --muted: #90a1c0;
  --muted-2: #6c7d9c;
  --accent: #ff5a3c;      /* dispatch orange-red */
  --accent-2: #4c8dff;    /* signal blue */
  --good: #37d99a;
  --warn: #ffb020;
  --danger: #ff5470;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

/* ---------- shared bits ---------- */
.container { width: min(1140px, 92vw); margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: 0.15s ease;
  background: var(--panel-2); color: var(--text); border-color: var(--line-2);
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted-2); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff7a52); border-color: transparent; color: #1a0a06; }
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(255, 90, 60, 0.6); }
.btn-discord { background: #5865f2; color: #fff; border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 9px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,60,.15); }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 28, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #ff8a63); color: #180a06;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 60px; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 720px; z-index: 0;
  background:
    radial-gradient(680px 380px at 22% 0%, rgba(255, 90, 60, 0.16), transparent 70%),
    radial-gradient(720px 460px at 88% 8%, rgba(76, 141, 255, 0.16), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.03; }
.hero h1 .hl { background: linear-gradient(120deg, var(--accent), #ffb07a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 34ch; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--muted-2); font-size: 0.86rem; display: flex; align-items: center; gap: 8px; }

/* ---------- product mock in hero ---------- */
.mock {
  position: relative; z-index: 1; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #26344f; display: inline-block; }
.mock-bar span { margin-left: auto; font-size: 0.72rem; color: var(--muted-2); font-family: var(--display); }
.mock-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; padding: 14px; }
.mock-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 9px; }
.mock-unit, .mock-call { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 8px; font-size: 0.82rem; }
.mock-call { flex-direction: column; align-items: stretch; gap: 4px; }
.callsign { font-family: var(--display); font-weight: 600; font-size: 0.76rem; color: var(--accent-2); }
.pill { font-size: 0.66rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.pill.p1 { background: rgba(255,84,112,.16); color: #ff8298; }
.pill.p2 { background: rgba(255,176,32,.16); color: var(--warn); }
.pill.ok { background: rgba(55,217,154,.16); color: var(--good); }

/* ---------- sections ---------- */
section { position: relative; z-index: 1; padding: 72px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 12px 0; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* bento features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; transition: 0.2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(76,141,255,.12); color: var(--accent-2); }
.card h3 { font-size: 1.12rem; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.card.span-2 { grid-column: span 2; }
.card.accent .ico { background: rgba(255,90,60,.14); color: var(--accent); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-left: 6px; }
.step .n { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--panel-2);
  -webkit-text-stroke: 1px var(--line-2); }
.step h3 { font-size: 1.1rem; margin: 6px 0 6px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; background: var(--bg-2); }
.stat b { font-family: var(--display); font-size: 1.9rem; display: block; }
.stat span { color: var(--muted); font-size: 0.86rem; }

/* cta band */
.cta-band { text-align: center; border: 1px solid var(--line-2); border-radius: 20px; padding: 54px 24px;
  background: radial-gradient(600px 300px at 50% -10%, rgba(255,90,60,.18), transparent 70%), var(--bg-2); }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { color: var(--muted); margin: 12px auto 26px; max-width: 46ch; }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted-2); font-size: 0.88rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid, .mock-body { grid-template-columns: 1fr; }
  .bento, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .card.span-2 { grid-column: span 2; }
  .nav-links { display: none; }
}
@media (max-width: 560px) { .bento, .steps, .stats { grid-template-columns: 1fr; } }

/* =====================================================================
   APP / DASHBOARD
===================================================================== */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 20px 16px; position: sticky; top: 0; height: 100vh; }
.side .brand { margin-bottom: 26px; font-size: 1.05rem; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 0.92rem; display: flex; gap: 10px; align-items: center; }
.side nav a:hover { background: var(--panel); color: var(--text); }
.side nav a.active { background: var(--panel-2); color: var(--text); }
.side .me { margin-top: auto; }
.main { padding: 26px 30px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 1.5rem; }
.user-chip { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); padding: 6px 12px 6px 6px; border-radius: 999px; }
.user-chip img { width: 30px; height: 30px; border-radius: 50%; }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel-card h2 { font-size: 1rem; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }

.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.unit-row, .call-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 9px; }
.unit-row { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.b-avail { background: rgba(55,217,154,.15); color: var(--good); }
.b-busy { background: rgba(255,176,32,.15); color: var(--warn); }
.b-emerg { background: rgba(255,84,112,.18); color: #ff8298; }
.b-off { background: rgba(140,155,180,.15); color: var(--muted); }
.call-row .call-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.call-row .muted { color: var(--muted); font-size: 0.85rem; }
.call-row form { display: inline; }

.empty { color: var(--muted-2); font-size: 0.9rem; padding: 10px 2px; }
label { display: block; font-size: 0.8rem; color: var(--muted); margin: 10px 0 5px; }
input, select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 0.92rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); }
.row { display: flex; gap: 10px; align-items: center; }
.roster { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.roster td, .roster th { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.roster th { color: var(--muted-2); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; }
.code-box { font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.3em; background: var(--bg-2);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 16px; text-align: center; }

.hub-wrap { max-width: 760px; margin: 60px auto; padding: 0 20px; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.server-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
@media (max-width: 820px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; } .grid-2, .board-cols, .hub-grid { grid-template-columns: 1fr; } }
