/* SIGNL — static marketing site styles
   No external fonts, no imports, no tracking. */

:root {
  --bg: #0b1d2e;
  --bg-raised: #102739;
  --bg-deep: #081522;
  --text: #f2f5f7;
  --text-muted: #a8b8c4;
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 64rem;
  --ease: cubic-bezier(0.25, 0.6, 0.35, 1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / wordmark */

.site-header {
  padding: 2rem 0;
}

.site-header.on-hero {
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.wordmark:hover,
.wordmark:focus {
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.header-link {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Hero — full-viewport video with poster fallback */

.hero {
  align-items: center;
  background: var(--bg) url("assets/hero-poster.png") center / cover no-repeat;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.hero-video {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 46, 0.78) 0%,
    rgba(11, 29, 46, 0.6) 30%,
    rgba(11, 29, 46, 0.62) 55%,
    rgba(11, 29, 46, 0.95) 100%
  );
  inset: 0;
  position: absolute;
}

.hero-content {
  padding-bottom: 5rem;
  padding-top: 7rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  animation: fade-up 0.7s var(--ease) 0.1s both;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(8, 21, 34, 0.6);
}

.hero .subheadline {
  animation: fade-up 0.7s var(--ease) 0.28s both;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
  margin-top: 1.75rem;
  max-width: 42rem;
  text-shadow: 0 1px 16px rgba(8, 21, 34, 0.6);
}

.hero .cta-row {
  align-items: center;
  animation: fade-up 0.7s var(--ease) 0.46s both;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn-primary {
  background: var(--accent);
  border-radius: 6px;
  color: var(--bg-deep);
  display: inline-block;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ff7d4d;
  box-shadow: 0 0 28px rgba(255, 107, 53, 0.45);
  text-decoration: none;
}

.cta-secondary {
  color: var(--text-muted);
}

.hero .cta-secondary {
  color: var(--text);
}

/* Motion language — scroll reveals and dividers */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.divider {
  background: linear-gradient(to right, var(--accent), rgba(255, 107, 53, 0.25));
  height: 2px;
  margin-bottom: 3rem;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}

.divider.is-visible {
  transform: scaleX(1);
}

/* Staggered reveals inside grids */

.value-grid > .reveal:nth-child(2),
.bento > .reveal:nth-child(2),
.steps > .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.value-grid > .reveal:nth-child(3),
.bento > .reveal:nth-child(3),
.steps > .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

.value-grid > .reveal:nth-child(4),
.bento > .reveal:nth-child(4) {
  transition-delay: 0.36s;
}

.bento > .reveal:nth-child(5) {
  transition-delay: 0.48s;
}

.bento > .reveal:nth-child(6) {
  transition-delay: 0.6s;
}

.bento > .reveal:nth-child(7) {
  transition-delay: 0.72s;
}

/* Sections */

section {
  padding: 4rem 0;
}

.section-label {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

/* Problem */

.problem {
  background: var(--bg-deep);
  padding-top: 5rem;
}

.problem p {
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  max-width: 46rem;
}

.problem p strong {
  color: var(--text);
}

/* Value props */

.value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.5rem;
}

.value-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}

.value-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.value-card p {
  color: var(--text-muted);
}

/* The platform — bento grid over a faint dot-grid backdrop */

.platform {
  background: var(--bg-deep);
  position: relative;
}

.platform::before {
  background-image: radial-gradient(rgba(168, 184, 196, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  position: absolute;
}

.platform .container {
  position: relative;
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-areas:
    "media media display display"
    "media media location menu"
    "concept pos signl signl";
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.5rem;
}

.bento-media {
  /* Matches the video's dark void so contain letterboxing is invisible */
  background: #030f19;
  border-radius: 12px;
  grid-area: media;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.awakening-video {
  height: 100%;
  left: 0;
  object-fit: contain;
  position: absolute;
  top: 0;
  width: 100%;
}

.bento-caption {
  background: rgba(8, 21, 34, 0.6);
  border-radius: 6px;
  bottom: 1rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.6875rem;
  left: 1rem;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.75rem;
  position: absolute;
  text-transform: uppercase;
}

.bento-card {
  background:
    linear-gradient(#0d2133, #0d2133) padding-box,
    linear-gradient(135deg, rgba(70, 110, 150, 0.45) 60%, rgba(255, 107, 53, 0.3)) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.5s var(--ease);
}

.bento-card:hover {
  background:
    linear-gradient(#0e2436, #0e2436) padding-box,
    linear-gradient(135deg, rgba(95, 140, 180, 0.7) 50%, rgba(255, 107, 53, 0.6)) border-box;
  box-shadow: inset 0 0 38px rgba(255, 107, 53, 0.07);
}

.cell-display { grid-area: display; }
.cell-location { grid-area: location; }
.cell-menu { grid-area: menu; }
.cell-concept { grid-area: concept; }
.cell-pos { grid-area: pos; }
.cell-signl { grid-area: signl; }

.bento-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cell-display h3,
.cell-signl h3 {
  font-size: 1.25rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.cell-meta {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cell-label {
  color: rgba(168, 184, 196, 0.65);
  font-family: var(--mono);
  font-size: 0.6563rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Status dots — echoing the uptime dashboard */

.card-status {
  align-items: center;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.6563rem;
  gap: 0.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-status .dot {
  border-radius: 50%;
  flex-shrink: 0;
  height: 0.5rem;
  width: 0.5rem;
}

.is-live {
  color: var(--accent);
}

.is-live .dot {
  animation: pulse-dot-sm 2.6s var(--ease) infinite;
  background: var(--accent);
}

.is-dev {
  color: rgba(255, 138, 92, 0.85);
}

.is-dev .dot {
  background: rgba(255, 107, 53, 0.55);
}

.is-soon {
  color: var(--text-muted);
}

.is-soon .dot {
  background: transparent;
  border: 1px solid rgba(168, 184, 196, 0.6);
}

@keyframes pulse-dot-sm {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.35);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

.platform-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* How it works */

.steps {
  counter-reset: step;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin-top: 2.5rem;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  align-items: center;
  animation: pulse-dot 3.2s var(--ease) infinite;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  content: counter(step);
  display: flex;
  font-size: 1.0625rem;
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.5rem;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.3);
  }
  60% {
    box-shadow: 0 0 0 11px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

.steps h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Status */

.status {
  background: var(--bg-deep);
}

.status p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 42rem;
}

/* Closing CTA */

.closing-cta {
  padding: 5rem 0;
  text-align: center;
}

.closing-cta h2 {
  margin-bottom: 2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 42rem;
}

.site-footer p + p {
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
}

.copyright {
  margin-top: 1.5rem;
}

/* Privacy page */

.prose {
  padding: 2rem 0 5rem;
}

.prose h1 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.prose .effective-date {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.prose h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 1rem;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 46rem;
}

.prose p strong {
  color: var(--text);
}

.prose address {
  color: var(--text-muted);
  font-style: normal;
}

/* Mobile */

@media (max-width: 960px) {
  .bento {
    grid-template-areas:
      "media media"
      "display display"
      "location menu"
      "concept pos"
      "signl signl";
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  /* Phones get the poster image, not the video (main.js also removes it). */
  .hero-video {
    display: none;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  section {
    padding: 3rem 0;
  }

  .value-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-areas:
      "media"
      "display"
      "location"
      "menu"
      "concept"
      "pos"
      "signl";
    grid-template-columns: 1fr;
  }

  .bento-media {
    aspect-ratio: 4 / 3;
  }

  .steps {
    gap: 2rem;
  }
}

/* Reduced motion: poster instead of video, no animation anywhere */

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero h1,
  .hero .subheadline,
  .hero .cta-row,
  .steps li::before,
  .is-live .dot {
    animation: none;
  }

  .reveal,
  .divider {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary {
    transition: none;
  }
}
