/* Flatland3 marketing landing */

html.landing-page {
  scroll-padding-top: 4.75rem;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.45rem 1.5rem;
  min-height: var(--landing-nav-height);
  background: rgba(7, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.landing-nav .brand {
  font-size: 0.95rem;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav__link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.landing-nav__link:hover,
.landing-nav__link.is-active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.landing-nav__link--accent {
  color: #c4b5fd !important;
}

.landing-nav__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 0.15rem;
}

.landing-nav__badge {
  font-size: 0.73rem;
  padding: 0.2rem 0.6rem;
  background: rgba(91, 33, 182, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  color: var(--brand-muted);
  font-weight: 600;
  flex-shrink: 0;
}

details.landing-nav__dropdown {
  position: relative;
}

details.landing-nav__dropdown > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

details.landing-nav__dropdown > summary::-webkit-details-marker {
  display: none;
}

.landing-nav__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 14rem;
  max-width: min(20rem, calc(100vw - 2.5rem));
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  padding: 0.4rem;
  background: rgba(18, 16, 26, 0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 120;
}

.landing-nav__panel a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
}

.landing-nav__panel a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(91, 33, 182, 0.15);
  top: 10%;
  left: -10%;
  animation: drift1 12s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(167, 139, 250, 0.1);
  top: 20%;
  right: -8%;
  animation: drift2 15s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(34, 211, 238, 0.06);
  bottom: 15%;
  left: 30%;
  animation: drift3 10s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  color: var(--brand-muted);
  background: rgba(91, 33, 182, 0.12);
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 1.2rem;
}

.hero-title .line-1 {
  display: block;
  color: white;
}

.hero-title .line-2 {
  display: block;
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.metric-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 100px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.metric-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
  background: var(--card-hover);
}

.metric-pill .val {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-pill .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
}

.scroll-arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent);
}

.landing-section {
  padding: 5rem 1.5rem;
}

.landing-section--surface {
  background: var(--surface);
}

.landing-container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: white;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.spec-section-block {
  margin-bottom: 3rem;
}

.spec-section-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.spec-section-block__head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
}

.spec-section-block__head p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.spec-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.spec-link-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.spec-link-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.spec-link-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
}

.spec-link-card p {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.spec-link-card__cta {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
}

.landing-footer {
  border-top: 1px solid var(--border);
  background: var(--page-footer);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.landing-footer strong {
  color: white;
}

.landing-footer a {
  color: var(--brand-muted);
  text-decoration: none;
  font-weight: 600;
}

.landing-footer a:hover {
  text-decoration: underline;
}

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

html.doc-page .sidebar {
  top: var(--landing-nav-height);
  height: calc(100vh - var(--landing-nav-height));
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .landing-nav__badge {
    display: none;
  }
}

@media (max-width: 600px) {
  .landing-nav {
    padding: 0.45rem 1rem;
  }
}

/* Client download panel */
.download-panel {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  background: rgba(12, 10, 20, 0.55);
}

.download-version {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.download-one-liners {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.download-cmd-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.download-cmd-label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.download-cmd {
  display: block;
  overflow-x: auto;
  padding: 0.65rem 0.8rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: #e2e8f0;
  background: #0b0914;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(7, 6, 12, 0.65);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.download-card:hover {
  border-color: #a78bfa;
  transform: translateY(-1px);
}

.download-card strong {
  font-size: 0.95rem;
}

.download-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-note,
.download-empty {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.download-empty code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .download-cmd-block {
    grid-template-columns: 1fr;
  }
}
