@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
  --ink: #102721;
  --muted: #5f726c;
  --green: #01a960;
  --green-deep: #087347;
  --ivory: #f8faf4;
  --paper: #fffefa;
  --line: #dbe6df;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(1, 169, 96, .35);
  outline-offset: 4px;
}

.landing {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px 24px 88px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.96) 0 18%, rgba(236,247,238,.72) 46%, transparent 72%),
    var(--ivory);
}

.orbit,
.orbit::before {
  position: absolute;
  border: 1px solid rgba(1, 169, 96, .14);
  border-radius: 50%;
  pointer-events: none;
}

.orbit {
  width: min(72vw, 780px);
  aspect-ratio: 1;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-16deg);
  border-left-color: transparent;
  animation: drift 18s ease-in-out infinite alternate;
}

.orbit::before {
  content: "";
  inset: 12%;
  border-right-color: transparent;
}

.cross-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  right: 17%;
  top: 23%;
  opacity: .65;
  animation: float 6s ease-in-out infinite;
}

.cross-mark::before,
.cross-mark::after {
  content: "";
  position: absolute;
  background: var(--green);
  border-radius: 2px;
}

.cross-mark::before { width: 22px; height: 7px; top: 7px; }
.cross-mark::after { width: 7px; height: 22px; left: 7px; }

.landing-main {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  animation: rise .8s cubic-bezier(.22,.75,.24,1) both;
}

.esper-logo { width: clamp(210px, 34vw, 320px); height: auto; }

.eyebrow {
  margin: 38px 0 15px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
}

.landing h1 {
  margin: 0;
  font: 500 clamp(64px, 9vw, 108px)/.95 var(--serif);
  letter-spacing: -.045em;
}

.intro {
  max-width: 650px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 11px 0 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s, gap .2s;
}

.text-link:hover { color: var(--green-deep); gap: 17px; }
.text-link span { color: var(--green); font-size: 19px; line-height: 1; }

.landing-footer {
  position: absolute;
  bottom: 28px;
  color: #71817c;
  font-size: 12px;
  letter-spacing: .05em;
}

/* Documentation */
.docs-body { background: var(--paper); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 10px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .94);
  backdrop-filter: blur(12px);
}

.soleo-logo { display: block; width: 124px; height: 61px; object-fit: contain; }

.contact {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
}

.contact-label { font-weight: 500; }
.contact-divider { width: 1px; height: 22px; background: var(--line); }
.mail-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mail-link svg { color: var(--green-deep); }
.mail-link:hover { color: var(--green-deep); }

.docs-hero {
  padding: 72px clamp(24px, 5vw, 72px) 50px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 30%, rgba(1,185,105,.09), transparent 24%),
    linear-gradient(110deg, #f4f8f1, #fbfcf8 70%);
}

.docs-hero .kicker { margin: 0 0 10px; color: var(--green-deep); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.docs-hero h1 { margin: 0; font: 500 clamp(48px, 6vw, 72px)/1 var(--serif); letter-spacing: -.035em; }
.docs-hero p { max-width: 580px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 800px);
  gap: clamp(48px, 7vw, 100px);
  max-width: 1190px;
  margin: 0 auto;
  padding: 68px 30px 100px;
}

.side-nav { position: sticky; top: 118px; align-self: start; }
.side-nav p { margin: 0 0 16px; color: #81908b; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.side-nav a { position: relative; display: block; padding: 12px 16px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s, border-color .2s, background .2s; }
.side-nav a:hover { color: var(--ink); background: #f5f9f4; }
.side-nav a.active { color: var(--ink); border-left-color: var(--green); background: linear-gradient(90deg, rgba(1,185,105,.08), transparent); font-weight: 600; }

.doc-section { scroll-margin-top: 116px; }
.doc-section + .doc-section { margin-top: 84px; padding-top: 68px; border-top: 1px solid var(--line); }
.section-number { display: inline-block; margin-bottom: 14px; color: var(--green-deep); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.doc-section h2 { margin: 0; font: 500 clamp(38px, 5vw, 54px)/1.08 var(--serif); letter-spacing: -.025em; }
.lede { max-width: 690px; margin: 18px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }

.steps { list-style: none; counter-reset: steps; margin: 8px 0 36px; padding: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: steps; display: grid; grid-template-columns: 42px 1fr; align-items: center; min-height: 70px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.steps li::before { content: "0" counter(steps); color: var(--green-deep); font: 500 14px var(--serif); }

.note {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 22px 24px;
  border-left: 3px solid var(--green);
  background: #f0f7f0;
  color: #3f5a51;
  font-size: 14px;
  line-height: 1.65;
}
.note svg { color: var(--green-deep); margin-top: 1px; }

.progress-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 17px 20px;
  border: 1px solid #cbdcff;
  border-left: 3px solid #1746e8;
  background: #f2f6ff;
  color: #24365f;
}

.progress-note-bubble {
  width: 20px;
  height: 20px;
  border: 5px solid #1746e8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 70, 232, .1);
}

.progress-note-copy {
  display: grid;
  gap: 2px;
  font-size: 14px;
  line-height: 1.55;
}

.progress-note-copy strong {
  color: #12318e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.arcade-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: calc(55.614% + 41px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef3ef;
  box-shadow: 0 20px 60px rgba(16,39,33,.09);
}
.arcade-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; color-scheme: light; }

.docs-footer { padding: 28px clamp(24px, 5vw, 72px); border-top: 1px solid var(--line); color: #71817c; font-size: 12px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-12px) rotate(5deg); } }
@keyframes drift { to { transform: translate(-50%, -50%) rotate(-10deg) scale(1.035); } }

@media (max-width: 720px) {
  .orbit { width: 125vw; }
  .cross-mark { right: 12%; top: 18%; }
  .landing { padding-bottom: 76px; }
  .esper-logo { width: 228px; }
  .eyebrow { margin-top: 30px; }

  .site-header { min-height: 72px; padding: 8px 20px; }
  .soleo-logo { width: 96px; height: 48px; }
  .contact { gap: 9px; }
  .contact-label, .contact-divider { display: none; }
  .mail-link { font-size: 12px; }
  .docs-hero { padding: 48px 22px 38px; }

  .docs-layout { display: block; padding: 0 22px 72px; }
  .side-nav { position: sticky; top: 72px; z-index: 8; display: flex; margin: 0 -22px 46px; padding: 0 22px; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(255,254,250,.96); backdrop-filter: blur(10px); }
  .side-nav p { display: none; }
  .side-nav a { flex: 0 0 auto; padding: 17px 4px 14px; border-left: 0; border-bottom: 2px solid transparent; }
  .side-nav a + a { margin-left: 28px; }
  .side-nav a.active { border-bottom-color: var(--green); background: transparent; }
  .doc-section { scroll-margin-top: 148px; }
  .doc-section + .doc-section { margin-top: 64px; padding-top: 54px; }
  .lede { font-size: 16px; }
  .steps li { grid-template-columns: 38px 1fr; padding: 11px 0; }
  .note { padding: 19px 18px; }
  .progress-note { align-items: start; gap: 12px; padding: 16px; }
  .progress-note-bubble { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
