/* ==========================================================================
   MONUDGE.COM — FINAL HIGH-TECH STARTUP WEBSITE STYLESHEET
   Clean Pinned Google Flow Video Hero + White Callouts + Post-Hero Sections
   ========================================================================== */

:root {
  --sc-canvas: #f8fafc;
  --sc-surface: #ffffff;
  --sc-ink: #0f172a;
  --sc-ink-soft: #475569;
  --sc-accent: #d97706;
  --sc-teal: #0d9488;
  --sc-lime: #4d7c0f;
  --sc-border: #e2e8f0;
  --sc-border-bright: #cbd5e1;

  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   MINIMAL HIGH-TECH STARTUP HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--sc-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-link {
  text-decoration: none;
  color: var(--sc-ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.16s ease;
}

.nav-link:hover {
  color: var(--sc-ink);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--sc-ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

.btn-primary-sm:hover {
  background: var(--sc-teal);
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTION 1: PINNED SCROLL-VIDEO HERO (Max's 4-Scene Daily Journey)
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  width: 100%;
  height: 460vh;
  background: #e2e8f0;
}

.hero-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0f172a;
}

.flow-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.flow-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}

.flow-video-layer.active {
  opacity: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08) 0%,
    rgba(15, 23, 42, 0) 24%,
    rgba(15, 23, 42, 0) 78%,
    rgba(15, 23, 42, 0.18) 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   IN-SCENE SPATIAL CALLOUT BOXES (CLEAN WHITE BACKGROUND)
   ========================================================================== */
.spatial-hud-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.spatial-callout {
  position: absolute;
  transform: translate(-50%, -110%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--sc-border-bright);
  border-radius: 14px;
  padding: 0.56rem 0.95rem;
  min-width: 190px;
  max-width: 275px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1), top 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
  will-change: left, top;
}

.spatial-callout::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: #ffffff;
  border-right: 2px solid var(--sc-border-bright);
  border-bottom: 2px solid var(--sc-border-bright);
}

.spatial-callout.active-amber { border-color: var(--sc-accent); }
.spatial-callout.active-amber::after { border-color: var(--sc-accent); }

.spatial-callout.active-teal { border-color: var(--sc-teal); }
.spatial-callout.active-teal::after { border-color: var(--sc-teal); }

.sc-top {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-accent);
  margin-bottom: 0.14rem;
}

.sc-top.teal { color: var(--sc-teal); }

.sc-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--sc-ink);
  line-height: 1.2;
}

.sc-sub {
  font-size: 0.73rem;
  color: var(--sc-ink-soft);
  line-height: 1.3;
  margin-top: 0.14rem;
  font-weight: 500;
}

/* Subtle Bottom Progress Rail on Hero Frame */
.hero-progress-rail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 15;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sc-accent), var(--sc-teal));
  transition: width 0.08s linear;
}

/* ==========================================================================
   POST-HERO STARTUP SECTIONS (Mission, Vision, Devices, Features, CTA)
   ========================================================================== */
.post-hero-content {
  position: relative;
  z-index: 20;
  background: var(--sc-canvas);
}

.content-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--sc-border);
}

.content-section.alt-bg {
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}

.section-header {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sc-teal);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--sc-ink);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  color: var(--sc-ink-soft);
  line-height: 1.6;
}

/* Mission & Vision Cards */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mv-card {
  background: #ffffff;
  border: 1px solid var(--sc-border-bright);
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mv-badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

.mv-badge.amber {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.mv-badge.teal {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.mv-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.58rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--sc-ink);
}

.mv-card p {
  font-size: 0.96rem;
  color: var(--sc-ink-soft);
  line-height: 1.62;
}

/* 8 Smart Devices Grid */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.device-card {
  background: var(--sc-canvas);
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  padding: 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.device-card:hover {
  transform: translateY(-2px);
  border-color: var(--sc-border-bright);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.device-card.featured-hw {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.device-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-teal);
}

.device-num.lime {
  color: #15803d;
}

.device-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--sc-ink);
}

.device-compat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sc-accent);
}

.device-desc {
  font-size: 0.85rem;
  color: var(--sc-ink-soft);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* 6 Core Features Bento Grid */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--sc-border);
  border-radius: 18px;
  padding: 1.65rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.f-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-accent);
}

.feature-box h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--sc-ink);
  line-height: 1.25;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--sc-ink-soft);
  line-height: 1.58;
}

/* Early Access CTA & Footer */
.cta-section {
  padding: clamp(4rem, 7vw, 6rem) 0 3rem;
  background: #ffffff;
}

.cta-card {
  background: var(--sc-canvas);
  border: 1.5px solid var(--sc-border-bright);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-copy {
  max-width: 580px;
}

.cta-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 0.6rem;
}

.cta-copy p {
  font-size: 0.96rem;
  color: var(--sc-ink-soft);
}

.cta-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cta-input {
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--sc-border-bright);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  min-width: 260px;
  color: var(--sc-ink);
}

.btn-primary-lg {
  padding: 0.84rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--sc-ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease;
}

.btn-primary-lg:hover {
  background: var(--sc-teal);
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--sc-ink-soft);
}

@media (max-width: 1024px) {
  .devices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .mission-vision-grid,
  .devices-grid,
  .features-bento {
    grid-template-columns: 1fr;
  }
  .spatial-callout {
    min-width: 145px;
    max-width: 205px;
    padding: 0.42rem 0.68rem;
  }
  .sc-title { font-size: 0.78rem; }
  .sc-sub { display: none; }
}
