/* ─── Fonts ─────────────────────────────────────── */
@font-face {
  font-family: 'Speeday';
  src: url('speeday/Speeday-Bold-FFP.ttf') format('truetype');
  font-weight: 700;
}
@font-face {
  font-family: 'Speeday';
  src: url('speeday/Speeday-Regular-FFP.ttf') format('truetype');
  font-weight: 400;
}

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000;
  --white: #fff;
  --gray-1: #111;
  --gray-2: #1a1a1a;
  --gray-3: #2a2a2a;
  --gray-4: #444;
  --gray-5: #888;
  --gray-6: #bbb;
  --good: #fff;
  --warn: #aaa;
  --bad: #666;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
}

/* ─── RIGHT NAV ──────────────────────────────────── */
.right-nav {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.nav-toggle {
  position: fixed;
  top: 28px;
  right: 28px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 910;
  transition: border-color 0.2s;
}
.nav-toggle:hover { border-color: var(--white); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100vh;
  background: var(--gray-1);
  border-left: 1px solid var(--gray-3);
  padding: 80px 32px 40px;
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-panel.open { right: 0; }

.nav-panel ul { list-style: none; }
.nav-panel li + li { margin-top: 6px; }
.nav-panel a {
  color: var(--gray-6);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-panel a:hover { color: var(--white); }
.nav-divider {
  height: 1px;
  background: var(--gray-3);
  margin: 16px 0 !important;
}
.dashboard-link {
  color: var(--white) !important;
  font-weight: 600;
}
.dashboard-link::before { content: '→ '; }

/* ─── HERO ──────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── TOP LEFT LOGO ────────────────────────────── */
.top-logo {
  position: fixed;
  top: 20px;
  left: 28px;
  z-index: 800;
  animation: fadeIn 1s ease both;
  overflow: visible;
}
.top-logo-text {
  font-family: 'Speeday', var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  display: block;
  padding: 6px 16px 10px 0;
  white-space: nowrap;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.face-wrap {
  position: relative;
  margin: 0 0 52px;
  animation: fadeUp 1s 0.1s ease both;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 40px 12px rgba(255,255,255,0.12),
              0 0 80px 24px rgba(255,255,255,0.06);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 30px 8px  rgba(255,255,255,0.08),
                0 0 70px 20px rgba(255,255,255,0.04);
    opacity: 0.7;
  }
  50% {
    box-shadow: 0 0 60px 20px rgba(255,255,255,0.18),
                0 0 120px 40px rgba(255,255,255,0.09);
    opacity: 1;
  }
}

.face-img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
}

.slogan {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  animation: fadeUp 1s 0.3s ease both;
}

.sub {
  margin-top: 20px;
  color: var(--gray-5);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  animation: fadeUp 1s 0.5s ease both;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
  animation: fadeIn 2s 1.5s ease both;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-hint p { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ─── CONTENT SECTIONS ──────────────────────────── */
.content-section {
  padding: 120px 40px;
  position: relative;
}
.content-section.alt { background: var(--gray-1); }

.section-inner {
  max-width: 920px;
  margin: 0 auto;
}

.label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-5);
  display: block;
  margin-bottom: 20px;
}

.content-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 40px;
}

.body-text {
  color: var(--gray-6);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
  margin-top: 32px;
}

/* ─── PROBLEM STATS ─────────────────────────────── */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media(max-width:600px){ .cols { grid-template-columns: 1fr; } }

.stat-block {
  border-top: 1px solid var(--gray-3);
  padding-top: 24px;
  margin-bottom: 24px;
}
.stat {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
}
.stat small { font-size: 1rem; font-weight: 400; color: var(--gray-5); }
.stat-block p { color: var(--gray-6); font-size: 0.9rem; line-height: 1.6; }

/* ─── EYE DEMO ──────────────────────────────────── */
.eye-demo {
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.eye-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.5s;
}
.eye-ring.ok { animation: breatheSlow 4s ease-in-out infinite; box-shadow: 0 0 30px rgba(255,255,255,0.08); }
.eye-ring.warn { animation: breatheFast 1.5s ease-in-out infinite; box-shadow: 0 0 30px rgba(255,255,255,0.18); }
.eye-ring.alert { animation: blinkFast 0.6s steps(1) infinite; box-shadow: 0 0 40px rgba(255,255,255,0.3); }

.eye-face {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes breatheSlow {
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.06); opacity:0.8; }
}
@keyframes breatheFast {
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.1); opacity:0.7; }
}
@keyframes blinkFast {
  0%,49%{ opacity:1; }
  50%,100%{ opacity:0.1; }
}

.eye-states {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.state-btn {
  background: none;
  border: 1px solid var(--gray-4);
  color: var(--gray-5);
  padding: 8px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.state-btn:hover, .state-btn.active {
  border-color: var(--white);
  color: var(--white);
}

/* ─── SIGNAL GRID ───────────────────────────────── */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media(max-width:640px){ .signal-grid { grid-template-columns: 1fr; } }

.signal {
  border-top: 1px solid var(--gray-3);
  padding-top: 20px;
}
.signal-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
  animation: breatheSlow 4s ease-in-out infinite;
}
.signal-icon.pulse { animation: breatheFast 1.5s ease-in-out infinite; }
.signal-icon.blink { animation: blinkFast 0.6s steps(1) infinite; }
.signal h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.signal p { font-size: 0.85rem; color: var(--gray-6); line-height: 1.6; }

/* ─── HARDWARE GRID ─────────────────────────────── */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
@media(max-width:720px){ .hw-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .hw-grid { grid-template-columns: 1fr; } }

.hw-item {
  border: 1px solid var(--gray-3);
  padding: 24px;
  transition: border-color 0.2s;
}
.hw-item:hover { border-color: var(--gray-4); }
.hw-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
  display: block;
  margin-bottom: 10px;
}
.hw-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.hw-item p { font-size: 0.85rem; color: var(--gray-6); line-height: 1.6; }

/* ─── NOTIFICATION DEMO ─────────────────────────── */
.notification-demo {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}
.notif {
  border: 1px solid var(--gray-3);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  animation: fadeIn 0.5s ease;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  animation: breatheSlow 3s ease-in-out infinite;
}
.notif-text { font-size: 0.95rem; line-height: 1.5; }

/* ─── B2B FEATURES ──────────────────────────────── */
.b2b-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
@media(max-width:640px){ .b2b-features { grid-template-columns: 1fr; } }

.b2b-feat {
  border-top: 1px solid var(--gray-3);
  padding-top: 20px;
}
.b2b-feat h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.b2b-feat p { font-size: 0.9rem; color: var(--gray-6); line-height: 1.7; }

/* ─── MARKET NUMBERS ────────────────────────────── */
.market-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media(max-width:600px){ .market-numbers { grid-template-columns: 1fr; } }

.market-num span {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 8px;
}
.market-num p { font-size: 0.85rem; color: var(--gray-6); line-height: 1.6; }

/* ─── FOOTER ────────────────────────────────────── */
footer {
  padding: 40px;
  border-top: 1px solid var(--gray-3);
  text-align: center;
  color: var(--gray-4);
  font-size: 0.8rem;
}

/* ─── MODAL ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-backdrop.show { opacity: 1; pointer-events: all; }

.modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(680px, 100vw);
  height: 100vh;
  background: var(--gray-1);
  border-left: 1px solid var(--gray-3);
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(.4,0,.2,1);
  padding: 40px 36px;
}
.modal.wide { width: min(820px, 100vw); }
.modal.open { right: 0; }

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1px solid var(--gray-3);
  color: var(--white);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.modal-close:hover { border-color: var(--white); }

/* ─── DASHBOARD SHARED ──────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-3);
}
.dash-face {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  animation: breatheSlow 4s ease-in-out infinite;
}
.dash-header h2 { font-size: 1.4rem; font-weight: 700; }
.dash-sub { font-size: 0.8rem; color: var(--gray-5); margin-top: 2px; }
.live-dot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--gray-5);
  letter-spacing: 0.08em;
}
.live-dot span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: breatheSlow 2s ease-in-out infinite;
}

/* ─── PERSONAL SCORE ────────────────────────────── */
.score-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.score-ring svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.ring-bg { fill: none; stroke: var(--gray-3); stroke-width: 6; }
.ring-fill {
  fill: none;
  stroke: var(--white);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}
.score-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-label span { font-size: 2rem; font-weight: 800; }
.score-label small { font-size: 0.65rem; color: var(--gray-5); letter-spacing: 0.1em; text-transform: uppercase; }
.status-msg { font-size: 1rem; line-height: 1.5; margin-bottom: 12px; }
.action-tag {
  display: inline-block;
  border: 1px solid var(--gray-3);
  color: var(--gray-5);
  font-size: 0.75rem;
  padding: 4px 12px;
  letter-spacing: 0.05em;
}

/* ─── METRICS GRID ──────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media(max-width:500px){ .metrics-grid { grid-template-columns: 1fr 1fr; } }

.metric-card {
  border: 1px solid var(--gray-3);
  padding: 16px;
}
.metric-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
  display: block;
  margin-bottom: 6px;
}
.metric-val { font-size: 1.6rem; font-weight: 700; }
.metric-unit { font-size: 0.75rem; color: var(--gray-5); margin-left: 2px; }
.metric-bar {
  height: 2px;
  background: var(--gray-3);
  margin-top: 12px;
}
.metric-fill {
  height: 100%;
  background: var(--gray-4);
  transition: width 1s ease;
}
.metric-fill.good { background: var(--white); }
.metric-fill.warn { background: var(--gray-5); }

/* ─── SESSION LOG ───────────────────────────────── */
.session-log { border-top: 1px solid var(--gray-3); padding-top: 24px; }
.session-log h4 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-5); margin-bottom: 16px; }
.session-log ul { list-style: none; }
.session-log li {
  font-size: 0.85rem;
  color: var(--gray-6);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-2);
  display: flex;
  gap: 16px;
}
.session-log li.log-now { color: var(--white); }
.log-time { color: var(--gray-4); font-size: 0.78rem; flex-shrink: 0; min-width: 42px; }

/* ─── ENTERPRISE ────────────────────────────────── */
.ent-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media(max-width:580px){ .ent-overview { grid-template-columns: 1fr 1fr; } }

.ent-kpi {
  border: 1px solid var(--gray-3);
  padding: 20px 16px;
  text-align: center;
}
.ent-kpi.warn { border-color: var(--gray-4); }
.ent-kpi span { font-size: 2rem; font-weight: 800; display: block; }
.ent-kpi p { font-size: 0.75rem; color: var(--gray-5); margin-top: 4px; line-height: 1.4; }

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media(max-width:500px){ .room-grid { grid-template-columns: 1fr; } }

.room-card {
  border: 1px solid var(--gray-3);
  padding: 16px;
  transition: border-color 0.2s;
}
.room-card:hover { border-color: var(--gray-4); }
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.room-name { font-size: 0.85rem; font-weight: 600; }
.room-score {
  font-size: 1.2rem;
  font-weight: 800;
}
.room-score.good { color: var(--white); }
.room-score.warn-score { color: var(--gray-5); }
.room-score.bad { color: var(--gray-4); }

.rb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--gray-5);
}
.rb-track {
  flex: 1;
  height: 2px;
  background: var(--gray-3);
}
.rb-fill { height: 100%; background: var(--gray-4); }
.rb-fill.good { background: var(--white); }
.rb-fill.warn { background: var(--gray-5); }
.rb-fill.bad { background: var(--gray-4); }
.rb small { min-width: 60px; text-align: right; }

.room-alert {
  font-size: 0.72rem;
  color: var(--gray-5);
  margin-top: 8px;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--gray-3);
  padding-top: 8px;
}

/* ─── CHART ─────────────────────────────────────── */
.ent-chart-section { border-top: 1px solid var(--gray-3); padding-top: 24px; }
.ent-chart-section h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-5);
  margin-bottom: 16px;
}
.chart-wrap { width: 100%; overflow-x: auto; }
canvas { display: block; }

.ent-insight {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid var(--gray-3);
  padding: 16px;
}
.insight-icon { color: var(--gray-5); flex-shrink: 0; }
.ent-insight p { font-size: 0.85rem; color: var(--gray-6); line-height: 1.6; }

/* ─── ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
