:root {
  --ink: #142018;
  --ink-soft: #3a4a40;
  --paper: #eef4f0;
  --paper-deep: #dce8e1;
  --line: rgba(20, 32, 24, 0.12);
  --brand-a: #1b6cff;
  --brand-b: #12c4a8;
  --brand-c: #8dff3a;
  --shell: #0f1712;
  --shell-panel: #18241c;
  --shell-muted: #8aa193;
  --shell-text: #e7f2eb;
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Newsreader", "Times New Roman", serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.brand,
.brand-mark,
.btn,
.eyebrow,
.pane__label,
.topbar__nav,
.keys,
.triad strong,
.pillars strong,
.download__mark + h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 14ch;
}

h2 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  max-width: 18ch;
}

p {
  margin: 0;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(27, 108, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 88% 8%, rgba(141, 255, 58, 0.16), transparent 55%),
    linear-gradient(165deg, #f5faf7 0%, #e7f0ea 42%, #d9e8e0 100%);
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere__orb--a {
  width: 42vw;
  height: 42vw;
  left: -8vw;
  top: 18vh;
  background: rgba(18, 196, 168, 0.28);
}

.atmosphere__orb--b {
  width: 36vw;
  height: 36vw;
  right: -10vw;
  top: 48vh;
  background: rgba(27, 108, 255, 0.22);
  animation-delay: -6s;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 32, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 24, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.7;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, -3vh, 0) scale(1.08);
  }
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(238, 244, 240, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(238, 244, 240, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.topbar__nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
}

.topbar__nav a {
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.topbar__nav a:hover {
  opacity: 1;
}

.topbar .btn--small {
  margin-left: auto;
}

@media (min-width: 760px) {
  .topbar__nav {
    display: flex;
  }

  .topbar .btn--small {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #04110a;
  font-size: 0.98rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b) 48%, var(--brand-c));
  box-shadow: 0 10px 28px rgba(18, 120, 90, 0.18);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.btn--small {
  min-height: 2.25rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(20, 32, 24, 0.22);
  box-shadow: none;
  color: var(--ink);
}

.btn--ghost:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.45);
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.72;
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 2.5rem) 3rem;
  max-width: calc(var(--max) + 8rem);
  margin: 0 auto;
}

.brand-mark {
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  background: linear-gradient(115deg, var(--brand-a), var(--brand-b) 45%, var(--brand-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-sheen 7s ease-in-out infinite;
  background-size: 180% 180%;
}

@keyframes brand-sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero__lead {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero__stage {
  min-width: 0;
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    align-items: end;
    gap: 2rem;
    min-height: calc(100vh - 4.5rem);
    padding-bottom: 4rem;
  }

  .hero__copy {
    padding-bottom: 1.5rem;
  }
}

/* App shell mock */
.app-shell {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--shell);
  color: var(--shell-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(16, 40, 28, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.5s ease;
}

.hero__stage:hover .app-shell {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}

.app-shell__chrome {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #0b120e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-shell__chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4d42;
}

.app-shell__chrome span:nth-child(1) {
  background: #ff7a6a;
}
.app-shell__chrome span:nth-child(2) {
  background: #f0c14a;
}
.app-shell__chrome span:nth-child(3) {
  background: #59d27b;
}

.app-shell__title {
  justify-self: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-muted);
  letter-spacing: 0.02em;
}

.app-shell__body {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1fr;
  min-height: 320px;
  background: linear-gradient(180deg, #121b15, #0f1712);
}

.pane {
  padding: 0.85rem 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

.pane:last-child {
  border-right: 0;
}

.pane__label {
  margin-bottom: 0.7rem;
  color: var(--shell-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pane--lists ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.pane--lists li {
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  color: #c5d7cb;
}

.pane--lists li.is-active {
  background: rgba(18, 196, 168, 0.16);
  color: #fff;
}

.pane__tools {
  margin-top: 1.4rem;
  color: var(--shell-muted);
  font-size: 0.68rem;
}

.pane--table table {
  width: 100%;
  border-collapse: collapse;
}

.pane--table th,
.pane--table td {
  text-align: left;
  padding: 0.38rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.pane--table th {
  color: var(--shell-muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
}

.pane--table tr.is-selected td {
  background: rgba(27, 108, 255, 0.18);
}

.indent-1 {
  padding-left: 1rem !important;
}

.pane--detail h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.note {
  display: grid;
  gap: 0.35rem;
  color: #b7c9bd;
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  .app-shell {
    transform: none;
  }

  .app-shell__body {
    grid-template-columns: 1fr;
  }

  .pane--lists,
  .pane--detail {
    display: none;
  }
}

/* Content blocks */
.block,
.split,
.download {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem clamp(1.2rem, 4vw, 2.5rem);
}

.eyebrow {
  margin: 0;
  color: #1f7a62;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.block__text {
  max-width: 38rem;
  color: var(--ink-soft);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

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

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .split--reverse .split__copy {
    order: 2;
  }

  .split--reverse .split__visual {
    order: 1;
  }
}

.split__copy p:not(.eyebrow) {
  color: var(--ink-soft);
  max-width: 34rem;
}

.triad,
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.triad > div,
.pillars > li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.triad > div:last-child,
.pillars > li:last-child {
  border-bottom: 1px solid var(--line);
}

.triad strong,
.pillars strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.triad span,
.pillars span {
  color: var(--ink-soft);
  font-size: 1rem;
}

.pillars {
  margin-top: 2rem;
}

.mindmap {
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  padding: 1.5rem 0;
}

.mindmap__node {
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 32, 24, 0.16);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.mindmap__node--root {
  color: #04110a;
  border: none;
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b) 50%, var(--brand-c));
}

.mindmap__branch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  position: relative;
  padding-top: 0.6rem;
}

.mindmap__branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(70%, 280px);
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.download {
  text-align: center;
  padding-bottom: 5rem;
}

.download__mark {
  margin: 0 auto 1rem;
  border-radius: 16px;
}

.download h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.download p {
  max-width: 28rem;
  margin: 0 auto 1.4rem;
  color: var(--ink-soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .atmosphere__orb,
  .brand-mark,
  .hero__stage,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
