/* ============ Concept F — "Liveboard" ============
   Product-first immersive: the page IS the grid. Short copy,
   one huge living app window, callouts pinned to the UI. */

:root {
  --ink: #0a0d12;
  --ink-soft: #0f131a;
  --ink-card: #141923;
  --line: rgba(255, 255, 255, 0.08);
  --bone: #f4f1ea;
  --bone-dim: #b6bac2;
  --bone-faint: #868c97;
  --accent: #4f8dfd;
  --accent-deep: #2f6ae0;
  --live: #34d399;
  --dev: #fbbf24;
  --danger: #f87171;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--bone);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; }

.btn {
  display: inline-block; font-weight: 600; font-size: 15px;
  text-decoration: none; padding: 12px 24px; border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; box-shadow: 0 4px 24px rgba(79, 141, 253, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 18px; font-size: 14px; }
.btn-large { padding: 16px 36px; font-size: 17px; }

/* ---- nav: minimal floating ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 13, 18, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  text-decoration: none;
}
.wordmark .mark { width: 26px; height: 26px; color: var(--accent); }

/* ---- hero ---- */
.hero { text-align: center; padding: 84px 24px 48px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; margin-bottom: 20px; }
.hero .lede { font-size: 18px; color: var(--bone-dim); max-width: 640px; margin: 0 auto; }

/* ---- the stage / board ---- */
.stage { padding: 36px 24px 90px; }
.board-wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.board {
  background: var(--ink-card);
  border: 1px solid rgba(79, 141, 253, 0.25);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(79, 141, 253, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(79, 141, 253, 0.07);
  overflow: hidden;
}
.board-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.seg { font-size: 12.5px; font-weight: 600; color: var(--bone-faint); padding: 4px 13px; border-radius: 8px; }
.seg.active { background: rgba(79, 141, 253, 0.16); color: var(--accent); }
.bsep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.fpill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--bone-dim);
  border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px;
}
.fdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.f1 { background: var(--accent); }
.f2 { background: #a78bfa; }
.board-action {
  margin-left: auto; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 8px; padding: 6px 14px;
}

.board-table { padding: 8px 14px 12px; }
.b-row {
  display: grid; grid-template-columns: 50px repeat(6, 1fr); gap: 7px;
  padding: 6px 4px;
}
.b-head {
  font-size: 11px; font-weight: 600; color: var(--bone-faint);
  border-bottom: 1px solid var(--line); padding-bottom: 9px; align-items: center;
}
.b-head span { display: flex; align-items: center; gap: 5px; }
.b-time { font-size: 11.5px; color: var(--bone-faint); align-self: center; }
.b-cell {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; background: rgba(255, 255, 255, 0.02);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.b-cell .mc {
  font-size: 10.5px; font-weight: 700; border-radius: 5px;
  padding: 2px 6px; color: #fff; align-self: flex-start;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.c1 { background: rgba(79, 141, 253, 0.32); }
.c2 { background: rgba(167, 139, 250, 0.30); }
.c3 { background: rgba(52, 211, 153, 0.26); }
.b-cell em {
  font-style: normal; font-size: 10.5px; color: var(--bone-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s ease;
}
.b-cell em.assigning { color: var(--accent); animation: pulse 1.1s ease infinite; }
.b-cell em.flash { color: var(--live); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.b-warn { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.07); }
.b-warn em { color: var(--danger); font-weight: 600; }

.board-status {
  display: flex; gap: 18px; align-items: center;
  padding: 11px 18px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 500;
}
.board-status .ok { color: var(--live); }
.board-status .warn { color: var(--dev); }
.board-status .sync { color: var(--bone-faint); margin-left: auto; }

/* ---- pinned callouts ---- */
.callout {
  position: absolute; z-index: 5; width: 230px;
  background: rgba(15, 19, 26, 0.92);
  border: 1px solid rgba(79, 141, 253, 0.35);
  border-radius: 12px; padding: 13px 15px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.callout p { font-size: 12px; color: var(--bone-dim); line-height: 1.5; }
.callout b {
  display: block; font-size: 13px; color: var(--bone);
  margin-bottom: 3px; font-family: var(--font-display);
}
.callout::before {
  content: ''; position: absolute; width: 34px; height: 1px;
  background: rgba(79, 141, 253, 0.55);
}
.co-1 { top: 0px; left: -120px; }
.co-1::before { right: -34px; top: 50%; }
.co-2 { top: 42%; right: -118px; }
.co-2::before { left: -34px; top: 50%; }
.co-3 { bottom: -28px; left: 6%; }
.co-3::before { right: -34px; top: 50%; }

/* ---- floor section ---- */
.floor { padding: 80px 0 90px; background: var(--ink-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.floor h2, .mods h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.floor-lede { color: var(--bone-dim); margin-bottom: 38px; max-width: 560px; }
.floor-row { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }

.mini { border-radius: 14px; border: 1px solid var(--line); background: var(--ink-card); }
.phone {
  border-radius: 30px; padding: 14px 14px 18px;
  background: linear-gradient(180deg, #171c27, #10141d);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}
.phone-notch { width: 64px; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.12); margin: 0 auto 13px; }
.ph-greet { font-size: 14px; font-weight: 700; font-family: var(--font-display); margin: 0 2px 11px; }
.ph-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 9px;
}
.ph-next { border-color: rgba(79, 141, 253, 0.4); background: rgba(79, 141, 253, 0.07); }
.ph-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px; }
.ph-main { font-size: 14px; font-weight: 700; }
.ph-sub { font-size: 11px; color: var(--bone-dim); margin-top: 2px; }
.ph-ok {
  border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08);
  text-align: center; font-size: 12px; font-weight: 600; color: var(--live);
}
.ph-toast {
  background: linear-gradient(135deg, rgba(79, 141, 253, 0.22), rgba(47, 106, 224, 0.22));
  border: 1px solid rgba(79, 141, 253, 0.35);
  border-radius: 10px; padding: 8px 11px; font-size: 11px; font-weight: 600;
}

.feed { padding: 6px 0; }
.f-item { display: flex; align-items: flex-start; gap: 13px; padding: 12px 18px; }
.f-item:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.f-item b { display: block; font-size: 13.5px; font-weight: 600; }
.f-item span { font-size: 12.5px; color: var(--bone-dim); }
.f-item em { font-style: normal; font-size: 11px; color: var(--bone-faint); margin-left: auto; white-space: nowrap; padding-top: 2px; }
.fi { width: 30px; height: 30px; border-radius: 9px; flex: none; position: relative; margin-top: 2px; }
.fi::after { content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; }
.fi-warn { background: rgba(248, 113, 113, 0.12); } .fi-warn::after { background: var(--danger); }
.fi-ok { background: rgba(52, 211, 153, 0.12); } .fi-ok::after { background: var(--live); }
.fi-info { background: rgba(251, 191, 36, 0.12); } .fi-info::after { background: var(--dev); }
.fi-acc { background: rgba(79, 141, 253, 0.12); } .fi-acc::after { background: var(--accent); }
.fi-pay { background: rgba(167, 139, 250, 0.12); } .fi-pay::after { background: #a78bfa; }

/* ---- modules strip ---- */
.mods { padding: 80px 0; }
.mods-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.mod {
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mod:hover { border-color: rgba(79, 141, 253, 0.4); transform: translateY(-2px); }
.mod h3 { font-size: 16.5px; margin: 10px 0 5px; }
.mod p { font-size: 12.5px; color: var(--bone-dim); }
.pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 99px; text-transform: uppercase;
}
.pill-live { background: rgba(52, 211, 153, 0.14); color: var(--live); }
.pill-dev { background: rgba(251, 191, 36, 0.13); color: var(--dev); }
.pill-soon { background: rgba(255, 255, 255, 0.07); color: var(--bone-faint); }

/* ---- CTA + footer ---- */
.cta {
  text-align: center; padding: 96px 24px;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(79, 141, 253, 0.18), transparent 60%),
    var(--ink-soft);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta p { color: var(--bone-dim); max-width: 540px; margin: 0 auto 28px; }
.footer { text-align: center; padding: 36px 24px 44px; border-top: 1px solid var(--line); }
.footer p { font-size: 12.5px; color: var(--bone-faint); margin-bottom: 6px; }
.footer a { color: var(--bone-dim); text-decoration: none; }

/* ---- design switcher ---- */
.dswitch {
  position: fixed; bottom: 18px; right: 18px; z-index: 999;
  display: flex; gap: 3px; align-items: center;
  padding: 7px 10px; border-radius: 99px;
  background: rgba(10, 12, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 11.5px; font-weight: 600; color: #9aa1ac;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.dswitch span { padding: 0 7px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.dswitch a { color: #cdd2da; text-decoration: none; padding: 4px 9px; border-radius: 99px; }
.dswitch a:hover { background: rgba(255, 255, 255, 0.1); }
.dswitch a.active { background: #3b82f6; color: #fff; }
@media (max-width: 600px) { .dswitch span { display: none; } }

/* ---- responsive ---- */
@media (max-width: 1280px) {
  .co-1 { left: 8px; top: -64px; } .co-1::before { display: none; }
  .co-2 { right: 8px; top: -64px; } .co-2::before { display: none; }
  .co-3 { display: none; }
  .board-wrap { padding-top: 90px; }
}
@media (max-width: 900px) {
  .b-row { grid-template-columns: 44px repeat(3, 1fr); }
  .b-row > :nth-child(n+5):not(.b-time) { display: none; }
  .b-head > :nth-child(n+5) { display: none; }
  .fpill:nth-of-type(2) { display: none; }
  .floor-row { grid-template-columns: 1fr; }
  .phone { max-width: 300px; }
  .mods-row { grid-template-columns: repeat(2, 1fr); }
  .callout { position: static; width: auto; margin-bottom: 10px; }
  .board-wrap { padding-top: 0; }
  .callout::before { display: none; }
}
