/* Atlas landing — Zoey-OS-style structure, adapted: Atlas branding, German copy,
   own visuals (canvas particle orbs, perspective grid floor, ghost marquee).
   Scoped under body.landing so all other routes keep the classic layout. */

/* body is a grid (auto 1fr auto rows) with an implicit auto-sized column: without
   this clamp the max-content marquee track would stretch the whole column. */
body.landing {
  grid-template-columns: minmax(0, 100%);
}

body.landing main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

body.landing .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 48px);
  background: linear-gradient(rgba(8, 8, 9, 0.88), rgba(8, 8, 9, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
}

body.landing footer {
  position: relative;
  z-index: 5;
  background: #0a0a0b;
}

.ld-root {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ---- perspective grid floor (fixed, behind everything) ------------------ */

.ld-floor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ld-floor::before {
  content: "";
  position: absolute;
  left: -60%;
  right: -60%;
  top: 52%;
  bottom: -85%;
  transform: perspective(620px) rotateX(63deg);
  transform-origin: 50% 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 109, 0, 0.13) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(0deg, rgba(255, 109, 0, 0.13) 0 1px, transparent 1px 110px);
  mask-image: linear-gradient(rgba(0, 0, 0, 0.55), transparent 78%);
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0.55), transparent 78%);
}

/* ---- shared section shell ----------------------------------------------- */

.ld-section {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(90px, 12vh, 150px) 0;
}

.ld-eyebrow {
  font: 600 11px/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ff9957;
}

.ld-h {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 18px 0 22px;
  font-weight: 700;
}

.ld-h .hl {
  color: var(--accent);
  text-shadow: 0 0 42px rgba(255, 109, 0, 0.35);
}

.ld-copy {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

/* scroll reveal */
.ld-r {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.ld-r.in {
  opacity: 1;
  transform: none;
}

/* the scroll-world canvas: every orb, link and star renders here */
#ld-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ld-section, .ld-marquee {
  position: relative;
  z-index: 2;
}

/* orb anchors only reserve layout space — the drawing happens on #ld-canvas */
[data-orb] {
  pointer-events: none;
}

/* ---- 1 · hero ------------------------------------------------------------ */

.ld-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
}

.ld-hero h1 {
  font-size: clamp(56px, 8.6vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 30px;
  max-width: 900px;
}

.ld-hero h1 .hl {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(255, 109, 0, 0.4);
}

.ld-hero .ld-copy {
  max-width: 520px;
}

.ld-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
}

.ld-cta-ghost {
  display: inline-block;
  font: 700 13px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent) !important;
  border: 1px solid rgba(255, 109, 0, 0.55);
  border-radius: 8px;
  padding: 18px 26px;
  background: rgba(255, 109, 0, 0.05);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.ld-cta-ghost:hover {
  background: rgba(255, 109, 0, 0.14);
  box-shadow: 0 0 34px rgba(255, 109, 0, 0.25);
}

.ld-cta-text {
  font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8d3cc !important;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.ld-cta-text:hover { color: #fff !important; }

.ld-hero-orb {
  position: absolute;
  right: -6%;
  top: 12%;
  opacity: 0.9;
}

/* ghost word marquee */
.ld-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 26px 0 40px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ld-marquee-track {
  display: flex;
  gap: 70px;
  width: max-content;
  animation: ld-marquee 48s linear infinite;
  font: 700 clamp(38px, 5vw, 62px)/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.07);
  text-transform: uppercase;
  white-space: nowrap;
}

.ld-marquee-track .sep { color: rgba(255, 109, 0, 0.2); }

@keyframes ld-marquee { to { transform: translateX(-50%); } }

/* ---- 2 · built different (orb + numbered cards) -------------------------- */

.ld-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.ld-split.rev { grid-template-columns: 1.05fr 1fr; }

.ld-orbwrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.ld-cards {
  display: grid;
  gap: 16px;
}

.ld-ncard {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(16, 15, 15, 0.78);
  backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 22px 24px;
}

.ld-ncard::before,
.ld-ncard::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 109, 0, 0.6);
  border-style: solid;
}

.ld-ncard::before {
  top: 8px;
  left: 8px;
  border-width: 1.5px 0 0 1.5px;
}

.ld-ncard::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1.5px 1.5px 0;
}

.ld-ncard .num {
  font: 700 20px/1 "JetBrains Mono", ui-monospace, monospace;
  color: rgba(255, 153, 87, 0.5);
  padding-top: 3px;
}

.ld-ncard h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.ld-ncard p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---- 3 · companions grid ------------------------------------------------- */

.ld-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ld-ccard {
  border: 1px solid var(--line);
  background: rgba(16, 15, 15, 0.72);
  backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.ld-ccard:hover {
  border-color: rgba(255, 140, 64, 0.4);
  transform: translateY(-3px);
}

.ld-ccard .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.ld-ccard h3 {
  margin: 0 0 9px;
  font-size: 16.5px;
}

.ld-ccard p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.ld-ccard.custom {
  border-color: rgba(255, 140, 64, 0.4);
  background: linear-gradient(160deg, rgba(255, 109, 0, 0.08), rgba(16, 15, 15, 0.72) 55%);
}

.ld-ccard.custom h3 { color: #ffb27d; }

.ld-note {
  margin-top: 26px;
  font-size: 15px;
  color: var(--muted);
}

.ld-note b {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--accent);
  font-weight: 700;
}

/* ---- 4 · orchestration steps + context card ------------------------------ */

.ld-steps { display: grid; gap: 16px; }

.ld-wide-card {
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
  margin-left: auto;
  max-width: 560px;
  border: 1px solid var(--line);
  background: rgba(16, 15, 15, 0.82);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 26px 30px;
}

.ld-wide-card::before {
  content: "⊕";
  display: block;
  color: #ff9957;
  margin-bottom: 10px;
  font-size: 15px;
}

.ld-wide-card h3 { margin: 0 0 8px; font-size: 16.5px; }

.ld-wide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.ld-orbs-cluster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ld-orbs-cluster .ld-orb { position: absolute; }

/* ---- 5 · integrations ---------------------------------------------------- */

.ld-integrations { text-align: center; }

.ld-integrations .ld-h { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; }

.ld-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 40px auto 18px;
  max-width: 760px;
}

.ld-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(20, 19, 18, 0.85);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ld-logo:hover { transform: translateY(-3px); border-color: rgba(255, 140, 64, 0.45); }

.ld-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ld-disclaimer {
  font-size: 11.5px;
  color: rgba(167, 163, 157, 0.6);
  margin-top: 20px;
}

/* ---- 6 · pricing teaser --------------------------------------------------- */

.ld-pricing { text-align: center; }

.ld-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
  text-align: left;
}

.ld-tier {
  border: 1px solid var(--line);
  background: rgba(16, 15, 15, 0.8);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.ld-tier.featured {
  border-color: rgba(255, 140, 64, 0.55);
  box-shadow: 0 0 60px rgba(255, 109, 0, 0.12);
}

.ld-tier .name {
  font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff9957;
}

.ld-tier .price {
  font-size: 44px;
  letter-spacing: -0.05em;
  margin: 20px 0 4px;
  font-weight: 700;
}

.ld-tier .price small {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}

.ld-tier ul {
  padding-left: 18px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  flex: 1;
}

.ld-tier .ld-cta-ghost { text-align: center; }

.ld-fineprint {
  margin-top: 26px;
  font-size: 12px;
  color: rgba(167, 163, 157, 0.65);
}

/* ---- 7 · final CTA --------------------------------------------------------- */

.ld-final {
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ld-final .ld-copy { margin: 0 auto; }

.ld-final .ld-hero-actions {
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.ld-final-note {
  margin-top: 30px;
  font-size: 13px;
  color: rgba(167, 163, 157, 0.7);
}

/* ---- responsive / reduced motion ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .ld-r { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ld-marquee-track { animation: none; }
}

@media (max-width: 900px) {
  .ld-split, .ld-split.rev { grid-template-columns: 1fr; }
  .ld-team-grid { grid-template-columns: 1fr; }
  .ld-tiers { grid-template-columns: 1fr; }
  .ld-hero { min-height: 80vh; }
  .ld-hero-orb { display: none; }
  .ld-orbwrap { min-height: 300px; }
  .ld-wide-card { margin-left: 0; }
}
