/* ══════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════ */
:root {
  --black:    #000000;
  --orange:   #F18823;
  --cyan:     #07B9E5;
  --blue:     #258AD7;

  --white-80: rgba(255, 255, 255, 0.80);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-05: rgba(255, 255, 255, 0.05);

  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --shadow:    0 32px 80px rgba(0, 0, 0, 0.55);
}

/* ══════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ══════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════ */
body {
  margin: 0;
  background-color: var(--black);
  background-image:
    radial-gradient(circle at 50% 0%,   rgba(37, 138, 215, 0.15) 0%, transparent 70%),
    radial-gradient(circle at 0%  100%, rgba(7,  185, 229, 0.10) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--white-80);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ══════════════════════════════════════════════
   GLASS PANEL UTILITY
   ══════════════════════════════════════════════ */
.glass {
  background: var(--white-05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid transparent;
  transition:
    background      400ms ease,
    backdrop-filter 400ms ease,
    border-color    400ms ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--white-10);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white-60);
}

.nav-links a {
  transition: color 200ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

/* ══════════════════════════════════════════════
   EYEBROW / KICKER
   ══════════════════════════════════════════════ */
.eyebrow,
.section-kicker {
  display: block;
  margin: 0 0 20px;
  color: var(--cyan);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* Gradient base for image overlay to blend against */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(37, 138, 215, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse at 15% 80%, rgba(7,  185, 229, 0.15) 0%, transparent 50%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: overlay;
  opacity: 0.40;
  z-index: 1;
}

/* Bottom-fade vignette */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.80) 0%, transparent 55%);
}

/* Glowing-sand watermark — sits behind hero title */
.hero-watermark {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  width: clamp(320px, 52vw, 680px);
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
  filter:
    blur(4px)
    drop-shadow(0 0 18px rgba(7,  185, 229, 1.0))
    drop-shadow(0 0 48px rgba(37, 138, 215, 0.85))
    drop-shadow(0 0 90px rgba(7,  185, 229, 0.50));
}

.hero-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 1000px;
  width: 100%;
}

.hero h1 {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-logo-pd {
  width: clamp(260px, 45vw, 560px);
  height: auto;
}

.hero-logo-milo {
  width: clamp(140px, 22vw, 280px);
  height: auto;
}

.hero .eyebrow {
  margin-bottom: 28px;
}

.hero-copy {
  max-width: 520px;
  margin: 0 auto 40px;
  color: var(--white-60);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Decorative pulsing sensor dots */
.sensor-dot {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 3s ease-in-out infinite;
}

.sensor-dot::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: pulse-ring 3s ease-in-out infinite;
}

.sensor-dot--1 {
  top: 22%; left: 10%;
  background: var(--cyan); color: var(--cyan);
  animation-delay: 0s;
}
.sensor-dot--2 {
  top: 58%; right: 9%;
  background: var(--orange); color: var(--orange);
  animation-delay: 1.1s;
}
.sensor-dot--3 {
  bottom: 22%; left: 38%;
  background: var(--blue); color: var(--blue);
  animation-delay: 2.2s;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

@keyframes pulse-ring {
  0%        { transform: scale(1);   opacity: 0.5; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: scale(1.05);
}

.button-primary {
  background: var(--orange);
  color: #000;
  box-shadow: 0 0 24px rgba(241, 136, 35, 0.35);
}

.button-primary:hover {
  box-shadow: 0 0 44px rgba(241, 136, 35, 0.60);
}

.button-secondary {
  background: var(--white-05);
  border-color: var(--white-10);
  color: var(--white-80);
  backdrop-filter: blur(12px);
}

/* ══════════════════════════════════════════════
   SECTION BASE
   ══════════════════════════════════════════════ */
.section {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-intro {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.section h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 24px;
  color: #fff;
}

.intro-copy p {
  color: var(--white-60);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  margin: 0 0 20px;
  line-height: 1.7;
}

.lead {
  color: var(--white-60);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 0 24px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   PROBLEM SECTION
   ══════════════════════════════════════════════ */
.problem-section {
  width: min(1260px, calc(100% - 48px));
}

.section-header {
  max-width: 860px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-header .section-kicker {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 20px;
}

/* 3-col bento */
.problem-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.problem-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}

.problem-card-icon {
  margin-bottom: 4px;
}

.problem-index {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--white-40);
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.problem-card h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  line-height: 1.15;
}

.problem-card p {
  color: var(--white-60);
  margin: 0;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   TECHNICAL SPEC TABLE
   ══════════════════════════════════════════════ */
.spec-panel {
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-xl);
}

.spec-panel-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.spec-panel-header h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  line-height: 1.2;
}

.spec-table {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--white-40);
  font-size: 1.05rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.spec-value {
  color: var(--cyan);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.spec-value--warning {
  color: var(--orange);
}

.spec-row--warning .spec-label {
  color: rgba(241, 136, 35, 0.55);
}

/* ══════════════════════════════════════════════
   IDEA SECTION
   ══════════════════════════════════════════════ */
.idea-section {
  width: min(1260px, calc(100% - 48px));
}

/* MILO 50/50 Product Hero */
.milo-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  margin-top: 16px;
  margin-bottom: clamp(64px, 9vw, 120px);
}

.milo-text h2 {
  font-size: clamp(2.6rem, 5.2vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.97;
  margin: 0 0 28px;
  color: #fff;
}

.engineered-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 32px 0 0;
}

/* Circular image bezel with rotating radar ring */
.milo-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.milo-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1.5px dashed rgba(241, 136, 35, 0.45);
  animation: radar-spin 24s linear infinite;
}

/* Glowing dot that rides the rotating ring */
.milo-ring::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px 4px rgba(241, 136, 35, 0.65);
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
}

.milo-bezel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(37, 138, 215, 0.20),
    inset 0 0 60px rgba(7, 185, 229, 0.06);
}

.milo-bezel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Pulsing sensor on the bezel */
.milo-sensor {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(7, 185, 229, 0.7);
  top: 18%;
  right: 10%;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════
   BENTO PRINCIPLES GRID
   ══════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
}

/* Row 1: wide(2) + narrow(1) — Row 2: narrow(1) + wide(2) */
.bento-card--wide   { grid-column: span 2; }
.bento-card--narrow { grid-column: span 1; }

.bento-icon {
  margin-bottom: 4px;
}

.bento-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white-40);
}

.bento-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  line-height: 1.15;
}

.bento-card p {
  color: var(--white-60);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
.contact-section {
  width: min(980px, calc(100% - 48px));
  padding-top: 0;
}

.contact-box {
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-xl);
  border-color: rgba(241, 136, 35, 0.22);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 12px 0 0;
  color: #fff;
}

.contact-box > p {
  color: var(--white-60);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 300;
  max-width: 600px;
  margin: 24px 0 0;
  line-height: 1.7;
}

.signup-form {
  margin-top: 40px;
}

.signup-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--white-40);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.signup-form input {
  min-height: 56px;
  border-radius: 10px;
  font: inherit;
  width: 100%;
  color: #fff;
  border: 1px solid var(--white-10);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 20px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.signup-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(7, 185, 229, 0.12);
}

.signup-form input::placeholder {
  color: var(--white-40);
}

.signup-form button {
  min-height: 56px;
  border-radius: 10px;
  font: inherit;
  color: #000;
  border: 0;
  background: var(--orange);
  padding: 0 28px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(241, 136, 35, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.signup-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 36px rgba(241, 136, 35, 0.60);
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--cyan);
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--white-40);
  border-top: 1px solid var(--white-10);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   REVEAL ANIMATIONS (Framer-Motion-style via CSS)
   ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET
   ══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .site-header {
    padding: 0 24px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 56px);
  }

  .problem-bento {
    grid-template-columns: 1fr;
  }

  .milo-hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .milo-image-wrap {
    max-width: 340px;
    order: -1;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--wide,
  .bento-card--narrow {
    grid-column: span 1;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
    padding: 18px 20px;
    gap: 12px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.5rem);
  }

  .hero-copy {
    font-size: 0.97rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 320px;
  }

  .section,
  .problem-section,
  .idea-section {
    width: calc(100% - 40px);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--wide,
  .bento-card--narrow {
    grid-column: span 1;
  }

  .bento-card {
    min-height: auto;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .spec-value {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .signup-form button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .site-footer span + span {
    display: block;
    margin-top: 8px;
  }
}
