:root {
  color-scheme: light;
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-soft: #f2f1ec;
  --ink: #111111;
  --muted: #5e5a54;
  --line: rgba(17, 17, 17, 0.12);
  --blue: #2f76ff;
  --blue-deep: #215ddd;
  --shadow: 0 30px 80px rgba(17, 17, 17, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(47, 118, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #fcfbf8 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

.page-shell {
  overflow: clip;
}

.site-header,
.section-shell,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  background: rgba(248, 247, 244, 0.75);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brandmark img {
  border-radius: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.header-cta,
.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 30px rgba(47, 118, 255, 0.22);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero {
  padding-top: 2.5rem;
}

.hero-inner {
  width: min(calc(100% - 2rem), 1320px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 35rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.detail-copy h2,
.download-copy h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(4.2rem, 12vw, 8rem);
}

.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 15ch;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-body,
.support-copy p,
.workflow-list span,
.download-copy p,
.download-note,
.faq-list p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.012em;
}

.hero-body {
  margin-top: 1.2rem;
  max-width: 37rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.hero-footnote {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.hero-stage {
  position: relative;
  min-height: 40rem;
}

.stage-note {
  position: absolute;
  z-index: 3;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.09);
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.07);
  font-size: 0.92rem;
  font-weight: 700;
}

.stage-note-left {
  top: 1.8rem;
  left: 0.8rem;
  animation: floatSoft 8s ease-in-out infinite;
}

.stage-note-right {
  right: 1rem;
  bottom: 1.4rem;
  animation: floatSoft 9s ease-in-out infinite reverse;
}

.workspace-stack {
  position: absolute;
  inset: 1.5rem 0 0;
}

.workspace-card {
  position: absolute;
  border-radius: var(--radius-xl);
}

.workspace-card-back {
  inset: 2.8rem 3.6rem 1rem 2.6rem;
  background: linear-gradient(180deg, #edeae1, #f4f1ea);
  transform: rotate(-4deg);
}

.workspace-card-front {
  inset: 0.5rem 0 0.8rem 1rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  transition: transform 240ms ease;
}

.workspace-card-front:hover {
  transform: rotate(1.2deg) translateY(-2px);
}

.window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.window-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #ded9d0;
}

.window-bar span:first-child {
  background: #ff6157;
}

.window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.window-bar span:nth-child(3) {
  background: #28c840;
}

.workspace-body {
  display: grid;
  grid-template-columns: 12rem 1fr;
  min-height: 31rem;
}

.workspace-sidebar {
  padding: 1.25rem;
  background: #fbfaf6;
  border-right: 1px solid rgba(17, 17, 17, 0.06);
}

.sidebar-logo {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.sidebar-logo img {
  border-radius: 16px;
}

.sidebar-lines {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.sidebar-lines span {
  height: 0.8rem;
  border-radius: 999px;
  background: #e5e0d6;
}

.sidebar-lines .active {
  background: rgba(47, 118, 255, 0.95);
}

.workspace-main {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.main-card,
.note-sheet,
.terminal-sheet,
.detail-frame {
  border: 1px solid rgba(17, 17, 17, 0.07);
}

.main-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: #fbfaf7;
}

.mini-label {
  margin: 0 0 0.8rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-title-line,
.main-text-lines span,
.note-sheet span,
.detail-column span {
  display: block;
  border-radius: 999px;
  background: #dfdbd2;
}

.main-title-line {
  width: 68%;
  height: 1.9rem;
}

.main-text-lines,
.note-sheet,
.detail-column,
.terminal-lines {
  display: grid;
  gap: 0.65rem;
}

.main-text-lines {
  margin-top: 1rem;
}

.main-text-lines span {
  height: 0.85rem;
}

.main-text-lines span:first-child {
  width: 78%;
}

.main-text-lines span:nth-child(2) {
  width: 92%;
}

.main-text-lines span:nth-child(3) {
  width: 55%;
}

.main-lower {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.note-sheet {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: #fffef9;
}

.note-sheet span {
  height: 0.85rem;
}

.note-sheet span:first-child {
  width: 82%;
}

.note-sheet span:nth-child(2) {
  width: 90%;
}

.note-sheet span:nth-child(3) {
  width: 58%;
}

.terminal-sheet {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: #171717;
}

.terminal-sheet .mini-label {
  color: #8fb0ff;
}

.terminal-lines span {
  color: rgba(255, 255, 255, 0.84);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
}

.terminal-lines span:first-child {
  color: #d4e0ff;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.detail-copy h2,
.download-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}

.support-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.support-copy {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.support-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.detail-frame {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fefcf8, #f2efe6);
  box-shadow: 0 24px 50px rgba(17, 17, 17, 0.06);
}

.detail-column {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
}

.detail-column span {
  height: 0.85rem;
}

.detail-column span:first-of-type {
  width: 76%;
}

.detail-column span:nth-of-type(2) {
  width: 90%;
}

.detail-column span:nth-of-type(3) {
  width: 60%;
}

.detail-column.is-terminal {
  background: #171717;
}

.detail-column.is-terminal .mini-label {
  color: #8fb0ff;
}

.detail-column.is-terminal span {
  background: rgba(255, 255, 255, 0.16);
}

.workflow-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 1.9rem 0 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.workflow-list strong {
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}

.download-panel {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.06);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.download-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.08);
}

.download-panel-top {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.download-panel-top img {
  border-radius: 16px;
}

.download-panel-top strong {
  display: block;
}

.download-panel-top p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.download-facts {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.2rem 0;
  list-style: none;
}

.download-facts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.download-facts span {
  color: var(--muted);
}

.button-full {
  width: 100%;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  padding-top: 0.8rem;
}

.site-footer {
  padding: 0 0 2.2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero-inner,
  .detail-layout,
  .download-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-heading h2,
  .detail-copy h2,
  .download-copy h2 {
    max-width: none;
  }

  .hero-stage {
    min-height: 35rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .top-nav {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-inner {
    width: min(calc(100% - 1rem), 1320px);
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 24vw, 5.8rem);
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .workspace-card-back {
    inset: 2.3rem 2rem 0.8rem 1.2rem;
  }

  .workspace-card-front {
    inset: 0 0 0.5rem 0;
  }

  .workspace-body,
  .main-lower,
  .detail-frame,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    display: none;
  }

  .hero-stage {
    min-height: 31rem;
  }
}
