/*!
 * Harmony OS landing — command-center aesthetic
 */
:root {
  --bg-deep: #070b0f;
  --bg-panel: #0f161c;
  --bg-elevated: #152029;
  --ink: #e7eef3;
  --ink-muted: #8fa3b0;
  --accent: #3aa8b5;
  --accent-soft: #7fd0d9;
  --accent-dim: rgba(58, 168, 181, 0.14);
  --accent-glow: rgba(58, 168, 181, 0.28);
  --line: rgba(231, 238, 243, 0.1);
  --line-strong: rgba(127, 208, 217, 0.35);
  --warn: #d0b06a;
  --danger: #c46b6b;
  --ok: #5fbf8f;
  --ai: #8eb4ff;
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-cta:hover {
  border-color: var(--line-strong);
  color: var(--accent-soft);
  background: var(--accent-dim);
  text-decoration: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 55% 50% at 78% 42%, rgba(58, 168, 181, 0.2), transparent 60%),
    radial-gradient(ellipse 40% 35% at 12% 80%, rgba(142, 180, 255, 0.06), transparent 55%),
    linear-gradient(180deg, #0a1016 0%, #070b0f 55%, #05080b 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 3.5rem;
}

.hero-layout {
  flex: 1;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    padding-top: 1rem;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding-bottom: 1rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-brand em {
  font-style: italic;
  color: var(--accent-soft);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 400;
  margin: 0 0 1.1rem;
  color: var(--ink);
  line-height: 1.2;
}

.hero-sub {
  margin: 0 0 1.9rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  max-width: 32rem;
}

.hero-stage {
  display: none;
  position: relative;
  min-height: 28rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 960px) {
  .hero-stage {
    display: grid;
  }
}

.hero-building {
  position: absolute;
  inset: 8% 18% 10% 8%;
  z-index: 0;
}

.building-glow {
  position: absolute;
  inset: 10% 5% 5%;
  background: radial-gradient(ellipse at 50% 40%, rgba(58, 168, 181, 0.35), transparent 65%);
  filter: blur(18px);
  animation: glowPulse 5.5s ease-in-out infinite;
}

.building-silhouette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 11, 15, 0.55) 0%, transparent 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 560' fill='none'%3E%3Crect x='70' y='40' width='280' height='460' fill='%23111b24' stroke='%233aa8b5' stroke-opacity='0.45' stroke-width='1.5'/%3E%3Cg fill='%233aa8b5'%3E%3Crect x='95' y='70' width='42' height='28' fill-opacity='0.12'/%3E%3Crect x='150' y='70' width='42' height='28' fill-opacity='0.22'/%3E%3Crect x='205' y='70' width='42' height='28' fill-opacity='0.1'/%3E%3Crect x='260' y='70' width='42' height='28' fill-opacity='0.18'/%3E%3Crect x='95' y='120' width='42' height='28' fill-opacity='0.2'/%3E%3Crect x='150' y='120' width='42' height='28' fill-opacity='0.08'/%3E%3Crect x='205' y='120' width='42' height='28' fill-opacity='0.26'/%3E%3Crect x='260' y='120' width='42' height='28' fill-opacity='0.12'/%3E%3Crect x='95' y='170' width='42' height='28' fill-opacity='0.1'/%3E%3Crect x='150' y='170' width='42' height='28' fill-opacity='0.24'/%3E%3Crect x='205' y='170' width='42' height='28' fill-opacity='0.14'/%3E%3Crect x='260' y='170' width='42' height='28' fill-opacity='0.2'/%3E%3Crect x='95' y='220' width='42' height='28' fill-opacity='0.18'/%3E%3Crect x='150' y='220' width='42' height='28' fill-opacity='0.1'/%3E%3Crect x='205' y='220' width='42' height='28' fill-opacity='0.22'/%3E%3Crect x='260' y='220' width='42' height='28' fill-opacity='0.08'/%3E%3Crect x='95' y='270' width='42' height='28' fill-opacity='0.12'/%3E%3Crect x='150' y='270' width='42' height='28' fill-opacity='0.2'/%3E%3Crect x='205' y='270' width='42' height='28' fill-opacity='0.1'/%3E%3Crect x='260' y='270' width='42' height='28' fill-opacity='0.28'/%3E%3Crect x='95' y='320' width='42' height='28' fill-opacity='0.22'/%3E%3Crect x='150' y='320' width='42' height='28' fill-opacity='0.1'/%3E%3Crect x='205' y='320' width='42' height='28' fill-opacity='0.16'/%3E%3Crect x='260' y='320' width='42' height='28' fill-opacity='0.12'/%3E%3Crect x='95' y='370' width='42' height='28' fill-opacity='0.08'/%3E%3Crect x='150' y='370' width='42' height='28' fill-opacity='0.18'/%3E%3Crect x='205' y='370' width='42' height='28' fill-opacity='0.24'/%3E%3Crect x='260' y='370' width='42' height='28' fill-opacity='0.1'/%3E%3C/g%3E%3Crect x='160' y='430' width='100' height='70' fill='%23070b0f' stroke='%233aa8b5' stroke-opacity='0.55'/%3E%3Cpath d='M40 510 H380' stroke='%233aa8b5' stroke-opacity='0.2'/%3E%3C/svg%3E")
      center / contain no-repeat;
  opacity: 0.95;
}

.building-scan {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 18%;
  top: 12%;
  background: linear-gradient(180deg, transparent, rgba(127, 208, 217, 0.12), transparent);
  animation: scanMove 7s var(--ease) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes scanMove {
  0% { top: 12%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 70%; opacity: 0; }
}

.ops-panel {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(280px, 100%);
  margin-top: 1.5rem;
  padding: 0.85rem 0.95rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(18, 32, 40, 0.88), rgba(10, 16, 22, 0.72));
  box-shadow:
    0 0 0 1px rgba(7, 11, 15, 0.5) inset,
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(58, 168, 181, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(12px);
  animation: panelIn 0.9s var(--ease) 0.25s forwards;
}

@keyframes panelIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.ops-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}

.ops-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(95, 191, 143, 0.5);
  animation: liveBeat 2s ease-out infinite;
}

@keyframes liveBeat {
  0% { box-shadow: 0 0 0 0 rgba(95, 191, 143, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(95, 191, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 191, 143, 0); }
}

.ops-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.ops-list li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.42rem 0.2rem;
  border-bottom: 1px solid rgba(231, 238, 243, 0.05);
  opacity: 0;
  transform: translateX(8px);
  animation: rowIn 0.55s var(--ease) forwards;
}

.ops-list li:last-child {
  border-bottom: 0;
}

.ops-list li:nth-child(1) { animation-delay: 0.35s; }
.ops-list li:nth-child(2) { animation-delay: 0.42s; }
.ops-list li:nth-child(3) { animation-delay: 0.49s; }
.ops-list li:nth-child(4) { animation-delay: 0.56s; }
.ops-list li:nth-child(5) { animation-delay: 0.63s; }
.ops-list li:nth-child(6) { animation-delay: 0.7s; }
.ops-list li:nth-child(7) { animation-delay: 0.77s; }
.ops-list li:nth-child(8) { animation-delay: 0.84s; }

@keyframes rowIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ops-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
  justify-self: center;
}

.ops-dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(95, 191, 143, 0.35); }
.ops-dot.warn { background: var(--warn); box-shadow: 0 0 10px rgba(208, 176, 106, 0.35); }
.ops-dot.ai { background: var(--ai); box-shadow: 0 0 10px rgba(142, 180, 255, 0.4); }
.ops-dot.pulse {
  background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgba(127, 208, 217, 0.5);
  animation: liveBeat 1.6s ease-out infinite;
}

.ops-label {
  font-size: 0.86rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.ops-val {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #041014;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-glow);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--ink-muted);
  max-width: 40rem;
}

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 28rem;
}

.problem-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-muted);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--danger);
  opacity: 0.85;
}

.results {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
}

.results p {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--bg-panel);
  border-left: 2px solid var(--danger);
  color: var(--ink-muted);
}

.merge {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .merge {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.scatter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scatter span {
  padding: 0.45rem 0.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.3s, color 0.3s;
}

.scatter.is-inview span {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--line-strong);
  color: var(--ink);
}

.scatter.is-inview span:nth-child(1) { transition-delay: 0.05s; }
.scatter.is-inview span:nth-child(2) { transition-delay: 0.1s; }
.scatter.is-inview span:nth-child(3) { transition-delay: 0.15s; }
.scatter.is-inview span:nth-child(4) { transition-delay: 0.2s; }
.scatter.is-inview span:nth-child(5) { transition-delay: 0.25s; }
.scatter.is-inview span:nth-child(6) { transition-delay: 0.3s; }
.scatter.is-inview span:nth-child(7) { transition-delay: 0.35s; }
.scatter.is-inview span:nth-child(8) { transition-delay: 0.4s; }

.merge-core {
  display: grid;
  place-items: center;
  min-height: 12rem;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 65%),
    var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  padding: 2rem;
}

.merge-core strong {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
}

.merge-core small {
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.know-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .know-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.know-grid li {
  padding: 1rem 1.1rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

.know-grid li::before {
  content: "— ";
  color: var(--accent);
}

.cap-stack {
  display: grid;
  gap: 0;
}

.cap-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .cap-row {
    grid-template-columns: 10rem 1fr;
    align-items: baseline;
  }
}

.cap-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.cap-row p {
  margin: 0;
  color: var(--ink-muted);
}

.day-track {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--accent);
  margin-left: 0.35rem;
}

.day-track li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.day-track.is-inview li {
  opacity: 1;
  transform: translateX(0);
}

.day-track.is-inview li:nth-child(1) { transition-delay: 0.05s; }
.day-track.is-inview li:nth-child(2) { transition-delay: 0.12s; }
.day-track.is-inview li:nth-child(3) { transition-delay: 0.19s; }
.day-track.is-inview li:nth-child(4) { transition-delay: 0.26s; }
.day-track.is-inview li:nth-child(5) { transition-delay: 0.33s; }
.day-track.is-inview li:nth-child(6) { transition-delay: 0.4s; }

.day-track li::before {
  content: "";
  position: absolute;
  left: -0.3rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
}

.day-track time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  margin-bottom: 0.25rem;
}

.day-close {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.stats {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding: 1.5rem 0;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stat .before,
.stat .after {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-top: 0.35rem;
}

.stat .before {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  font-size: 1.1rem;
}

.stat .after {
  color: var(--accent-soft);
}

.stat .note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--warn);
}

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience li {
  padding: 0.55rem 0.95rem;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  font-size: 0.95rem;
}

.integ-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .integ-list {
    grid-template-columns: 1fr 1fr;
  }
}

.integ-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.integ-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.integ-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.pilot {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(58, 168, 181, 0.12), transparent 60%),
    var(--bg-deep);
}

.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

@media (min-width: 600px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-full {
  grid-column: 1 / -1;
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.page-simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.page-simple h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0 0 0.75rem;
}

.page-simple p {
  color: var(--ink-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}
