/* Spatial Taskbar — story-led landing page */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #252526;
  --border: #333;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --accent: #4fc1ff;
  --accent-dim: #264f78;
  --accent-warm: #ce9178;
  --link: #4fc1ff;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "IBM Plex Serif", Georgia, serif;
  --font-mono: "Cascadia Code", "Segoe UI Mono", ui-monospace, monospace;
  --max: 1080px;
  --story: 40rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.landing {
  min-height: 100dvh;
}

/* ——— Header ——— */
.landing__header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.landing__logo:hover {
  text-decoration: none;
  color: #fff;
}

.landing__mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}

.landing__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing__nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.landing__nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: clamp(0.5rem, 1.5vw, 0.85rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 3.5rem);
  overflow: visible;
}

.hero__glow {
  position: absolute;
  inset: -20% 0 auto;
  height: 70%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(38, 79, 120, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(79, 193, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__copy .section__label {
  margin-bottom: 0.65rem;
}

@media (min-width: 900px) {
  .panel-mock {
    position: sticky;
    top: 5rem;
  }
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  font-size: 1.15rem;
  color: #c8c8c8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent-dim);
  border-color: #3a6a9a;
  color: #fff;
}

.btn--primary:hover {
  background: #2f5f8f;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.hero__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero__note kbd {
  padding: 0.1em 0.45em;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.hero__video-wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  background: #000;
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
}

/* ——— Panel mock ——— */
.panel-mock {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  animation: mock-in 0.8s var(--ease) both;
}

@keyframes mock-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-mock__bar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
}

.panel-mock__search {
  flex: 1;
  height: 24px;
  padding: 0 8px;
  border-radius: 2px;
  background: #252526;
  border: 1px solid #3c3c3c;
  color: #858585;
  display: flex;
  align-items: center;
}

.panel-mock__btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 2px;
  background: #303033;
  border: 1px solid #3c3c3c;
  color: #d4d4d4;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.panel-mock__list {
  padding: 0;
  max-height: none;
  overflow: visible;
}

.panel-mock__sec {
  background: #2d2d30;
  padding: 6px 10px;
  font-weight: 600;
  color: #ccc;
  border-bottom: 1px solid #252526;
}

.panel-mock__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  color: #ccc;
  border-bottom: 1px solid #1e1e1e;
  min-height: 32px;
}

.panel-mock__row.is-sel {
  background: #264f78;
}

.panel-mock__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-ico {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.panel-mock__caption {
  padding: 8px 10px;
  background: #1e1e1e;
  border-top: 1px solid #2a2a2a;
  color: #858585;
  font-size: 11px;
  text-align: right;
}

/* ——— Sections ——— */
.section {
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--story);
}

.section__label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section__lede {
  margin: -0.5rem 0 2rem;
  max-width: 52ch;
  color: var(--muted);
}

.section__aside {
  margin: 1.75rem 0 0;
  max-width: 58ch;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Story ——— */
.section--story {
  background:
    linear-gradient(180deg, rgba(38, 79, 120, 0.07), transparent 45%),
    var(--bg);
}

.story p {
  margin: 0 0 1.2rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: #c8c8c8;
}

.story p:last-child {
  margin-bottom: 0;
}

.story strong {
  color: #fff;
  font-weight: 600;
}

.story em {
  font-style: italic;
  color: #ddd;
}

.story__more {
  margin-top: 1.75rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
}

.story__more a {
  color: var(--accent);
}

/* ——— Three pillars ——— */
.pillars {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillar {
  padding: 0;
  border: 0;
  background: transparent;
}

.pillar h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.pillar p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #b5b5b5;
}

/* ——— Emergent proof ——— */
.section--after {
  background: rgba(255, 255, 255, 0.015);
}

.proof {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.proof li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.35rem;
}

.proof strong {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}

.proof span {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #b0b0b0;
}

.section--after .story__more {
  margin-top: 1.5rem !important;
}

/* ——— Get it ——— */
.section--get {
  border-top: none;
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.1rem);
}

.section--get .section__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.85rem;
}

.section--get .hero__actions {
  margin-bottom: 0;
}

/* ——— Footer ——— */
.landing__footer {
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
}

.landing__footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.landing__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing__footer-links a {
  color: var(--muted);
}

.landing__footer-links a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .landing__nav a:not(.btn) {
    display: none;
  }

  .hero__title {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .story p {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .panel-mock {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
