/* ============ Concept I — "Bento" ============
   One dense board of working parts: Apple/Raycast-style tile
   grid, each tile a feature with a live-feeling mini-mockup. */

:root {
  --ink: #0e1116;
  --tile: #151a22;
  --line: rgba(255, 255, 255, 0.09);
  --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;
}
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 26px; border-radius: 10px;
  transition: transform 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 ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(14, 17, 22, 0.82);
  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: 88px 24px 56px; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(79, 141, 253, 0.14), transparent 65%);
  pointer-events: none;
}
.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(38px, 5.2vw, 62px); line-height: 1.06; margin-bottom: 18px; position: relative; }
.lede { font-size: 18px; color: var(--bone-dim); max-width: 600px; margin: 0 auto 30px; position: relative; }
.hero-ctas { position: relative; }

/* ---- bento board ---- */
.bento-wrap { padding: 20px 24px 90px; }
.bento {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  grid-auto-flow: dense;
}
.tile {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(79, 141, 253, 0.45); }
.tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tile-head h3 { font-size: 17px; }
.tile-sub { font-size: 13.5px; color: var(--bone-dim); }
.tile-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--live); margin-top: 14px;
}
.tile-foot .ok { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; }
.pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 99px; margin-left: auto;
}
.pill-live { background: rgba(52, 211, 153, 0.14); color: var(--live); }
.good { color: var(--live); }

/* tile spans */
.t-grid { grid-column: span 4; }
.t-phone { grid-column: span 2; grid-row: span 2; }
.t-stat { grid-column: span 2; }
.t-checkin { grid-column: span 2; }
.t-feed { grid-column: span 4; }
.t-pay { grid-column: span 3; }
.t-cast { grid-column: span 3; }
.t-mods { grid-column: span 2; }
.t-sec { grid-column: span 2; }
.t-born { grid-column: span 2; }

/* grid mini */
.tg { margin-top: 16px; }
.tg-row {
  display: grid; grid-template-columns: 42px repeat(4, 1fr); gap: 6px;
  align-items: center; margin-bottom: 6px;
}
.tg-row > span:first-child { font-size: 10.5px; color: var(--bone-faint); }
.tg-head { font-size: 10.5px; color: var(--bone-faint); font-weight: 600; }
.tg-head span { padding-left: 2px; }
.mc {
  font-size: 11px; font-weight: 700; border-radius: 6px;
  padding: 6px 8px; color: #fff; text-align: center;
  white-space: nowrap; 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); }
.mc.warn { background: rgba(248, 113, 113, 0.18); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.45); }

/* phone tile */
.ph {
  margin-top: 16px; border-radius: 22px; padding: 13px 12px 14px;
  background: linear-gradient(180deg, #1a2030, #121722);
  border: 1px solid var(--line);
}
.ph-notch { width: 54px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.12); margin: 0 auto 11px; }
.ph-greet { font-size: 12.5px; font-weight: 700; font-family: var(--font-display); margin-bottom: 9px; }
.ph-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 11px; margin-bottom: 8px;
}
.ph-next { border-color: rgba(79, 141, 253, 0.4); background: rgba(79, 141, 253, 0.07); }
.ph-label { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 3px; }
.ph-main { font-size: 12.5px; font-weight: 700; }
.ph-sub { font-size: 10.5px; color: var(--bone-dim); }
.ph-ok {
  border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08);
  text-align: center; font-size: 11px; font-weight: 600; color: var(--live);
}

/* stat tiles */
.big-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 1; margin-bottom: 10px;
  background: linear-gradient(95deg, #9ec1ff, #4f8dfd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* check-in chips */
.chip-line { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip-ok {
  font-size: 11.5px; font-weight: 600; color: var(--live);
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 99px; padding: 5px 12px;
}

/* feed tile */
.feed-line {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0; font-size: 13px; color: var(--bone-dim);
}
.feed-line + .feed-line { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.feed-line b { color: var(--bone); font-weight: 600; }
.feed-line em { font-style: normal; font-size: 11px; color: var(--bone-faint); margin-left: auto; }
.fi { width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative; }
.fi::after { content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; 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); }

/* payroll tile */
.pay-bar {
  height: 10px; border-radius: 99px; overflow: hidden;
  background: rgba(255, 255, 255, 0.07); margin-top: 16px;
}
.pay-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--live)); }

/* broadcast tile */
.cast-chip {
  margin-top: 14px; font-size: 12.5px; font-weight: 600;
  background: rgba(79, 141, 253, 0.1); border: 1px solid rgba(79, 141, 253, 0.35);
  border-radius: 10px; padding: 9px 12px; color: var(--bone-dim);
}

/* security tile */
.sec-list { list-style: none; margin-top: 10px; display: grid; gap: 7px; }
.sec-list li {
  font-size: 13px; color: var(--bone-dim);
  position: relative; padding-left: 20px;
}
.sec-list li::before { content: '✓'; position: absolute; left: 0; color: var(--live); font-weight: 700; }

/* ---- CTA + footer ---- */
.cta {
  text-align: center; padding: 90px 24px;
  background:
    radial-gradient(ellipse at 50% 130%, rgba(79, 141, 253, 0.16), transparent 60%),
    #10141b;
  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: 34px 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; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: 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: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-grid, .t-feed, .t-pay, .t-cast { grid-column: span 2; }
  .t-phone { grid-column: span 2; grid-row: auto; }
  .t-stat, .t-checkin, .t-mods, .t-sec, .t-born { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .t-grid, .t-phone, .t-stat, .t-checkin, .t-feed, .t-pay, .t-cast, .t-mods, .t-sec, .t-born { grid-column: span 1; }
  .tg-row { grid-template-columns: 38px repeat(2, 1fr); }
  .tg-row > :nth-child(n+4):not(:first-child) { display: none; }
}
