:root {
  color-scheme: dark;
  --dark: #151613;
  --darker: #10110f;
  --white: #f6f3ec;
  --muted: #c3bfb5;
  --paper: #f0ede5;
  --ink: #20211d;
  --paper-muted: #514f46;
  --accent: #eddab6;
  --rule: #ffffff26;
  --paper-rule: #26201932;
  --gutter: clamp(20px, 5.5vw, 92px);
  --shell: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  background: var(--dark);
  font: 400 16px/1.55 "Inter", "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button { font: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid #f4c28a;
  outline-offset: 5px;
}

h1, h2, h3, p { margin: 0; }

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 2;
  background: var(--darker);
  border-bottom: 1px solid var(--rule);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img { object-fit: contain; }

.arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}

.arrow::before, .arrow::after {
  position: absolute;
  content: "";
}

.arrow::before {
  top: 6px;
  left: 0;
  width: 11px;
  border-top: 1.5px solid currentColor;
}

.arrow::after {
  top: 3px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.arrow--out { transform: rotate(-45deg); }
.arrow--down { transform: rotate(90deg); }
.arrow--left { transform: rotate(180deg); }

.site-nav, .footer-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 42px);
}

.site-nav a, .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover, .footer-links a:hover { color: var(--white); }

.site-nav .nav-marketplace {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--white);
}

.site-nav .nav-marketplace:hover { border-color: var(--muted); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 48vw, 735px);
  isolation: isolate;
  background: var(--darker);
}

.hero-visual {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 36%;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 47%;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--darker), #10110fcf 12%, #10110f47 29%, transparent 49%),
    linear-gradient(0deg, #10110f4d, transparent 35%);
}

.hero-inner { padding-block: 80px; }

.hero-copy { max-width: 560px; }

.product-name {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 670;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(62px, 7vw, 110px);
  font-weight: 610;
  line-height: .98;
  letter-spacing: -.078em;
}

.hero-lead {
  max-width: 365px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 30px;
}

.button, .hero-secondary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.button {
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background .16s ease;
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-primary:hover { background: #f9e9ca; }

.hero-secondary { color: var(--white); }

.hero-secondary:hover { text-decoration: underline; }

.cases, .workspace { padding-block: clamp(58px, 7.3vw, 112px); }

.cases {
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
}

.cases :focus-visible { outline-color: #79532b; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 44px;
  margin-bottom: clamp(26px, 3.5vw, 52px);
}

.section-heading h2, .closing h2 {
  font-size: clamp(34px, 4.25vw, 65px);
  font-weight: 610;
  line-height: 1.06;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.section-heading p {
  max-width: 32ch;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
}

.cases .section-heading p, .case p { color: var(--paper-muted); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.65vw, 38px);
}

.case { display: flex; flex-direction: column; }

.case > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  background: #d5cabb;
}

.case-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 21px;
}

.case h3 {
  font-size: clamp(22px, 2.15vw, 31px);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.044em;
  text-wrap: balance;
}

.case p {
  flex: 1;
  margin-block: 11px 13px;
  line-height: 1.6;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid var(--paper-rule);
  font-size: 14px;
  font-weight: 670;
  text-decoration: none;
}

.case-link:hover { border-color: var(--ink); }

.workspace { background: var(--dark); }

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 78px);
}

.workspace-capture { margin: 0; }

.capture-frame {
  display: block;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #252620;
  transition: border-color .16s ease;
}

.capture-frame:hover { border-color: var(--muted); }

.capture-frame img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.workspace-capture figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.module-list { margin: 0; padding: 0; list-style: none; }

.module-list li { border-top: 1px solid var(--rule); }

.module-list li:last-child { border-bottom: 1px solid var(--rule); }

.module-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 0;
  text-decoration: none;
}

.module-list strong, .module-list small { display: block; }

.module-list strong { font-size: 17px; font-weight: 640; letter-spacing: -.02em; }

.module-list small { margin-top: 2px; color: var(--muted); font-size: 13px; }

.module-arrow { color: var(--muted); }

.module-list a:hover .module-arrow, .module-list a:hover strong { color: var(--accent); }

.closing { background: #21221d; }

.closing-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5.2vw, 74px);
  padding-block: clamp(42px, 5.2vw, 74px);
}

.closing-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.closing-section + .closing-section {
  padding-left: clamp(28px, 5.2vw, 74px);
  border-left: 1px solid var(--rule);
}

.closing h2 { font-size: clamp(31px, 3.2vw, 48px); text-wrap: initial; }

.closing p {
  max-width: 49ch;
  margin-block: 13px 22px;
  color: var(--muted);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: auto;
}

.button-outline {
  border-color: #eddab66b;
  color: var(--accent);
}

.button-outline:hover { background: #eddab619; }

.site-footer { border-top: 1px solid var(--rule); background: var(--darker); }

.site-footer .brand { font-size: 11px; }

.site-footer .footer-inner { min-height: 82px; }

dialog {
  width: min(var(--preview-width, 720px), 1120px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  color: var(--white);
  border: 1px solid #ffffff40;
  border-radius: 8px;
  background: var(--dark);
}

dialog::backdrop { background: #070807db; }

body:has(dialog[open]) { overflow: hidden; }

.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
}

.preview-bar h2 { font-size: 15px; font-weight: 620; line-height: 1.3; }

.preview-controls { display: flex; gap: 5px; }

.preview-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.preview-controls button:hover { background: #ffffff18; }

.preview-image img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 136px);
  margin-inline: auto;
  object-fit: contain;
}

#preview-original {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--muted);
  font-size: 13px;
  text-underline-offset: 3px;
}

@media (max-width: 970px) {
  .hero-visual { left: 33%; }

  .hero-visual::after {
    background: linear-gradient(90deg, var(--darker), #10110fe5 13%, #10110f40 36%, transparent 65%);
  }

  .case h3 { text-wrap: initial; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 66px; }

  .site-nav .nav-marketplace { display: none; }

  .closing-inner { grid-template-columns: 1fr; }

  .closing-section + .closing-section {
    padding: 28px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }

  .hero-visual { position: relative; z-index: 0; inset: auto; }

  .hero-visual img { height: auto; aspect-ratio: 1.62; object-position: 50% 49%; }

  .hero-visual::after { background: linear-gradient(0deg, #10110f59, transparent 36%); }

  .hero-inner { padding-block: 28px 44px; }

  .product-name { margin-bottom: 13px; }

  h1 { font-size: clamp(54px, 10vw, 76px); }

  h1 br { display: none; }

  .hero-lead { margin-top: 16px; }

  .hero-actions { margin-top: 21px; }

  .section-heading { align-items: flex-start; flex-direction: column; }

  .section-heading h2, .closing h2 { text-wrap: initial; }

  .section-heading p { max-width: 42ch; }

  .case-grid { grid-template-columns: 1fr; gap: 36px; }

  .case-copy { padding-top: 16px; }

  .case p { margin-block: 9px 4px; max-width: 54ch; }

  .workspace-layout { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 480px) {
  .header-inner, .footer-inner { gap: 10px; }

  .brand { gap: 7px; font-size: 11px; letter-spacing: .1em; }

  .brand img { width: 32px; }

  .site-nav a, .footer-links a { font-size: 12px; }

  .site-nav, .footer-links { gap: 14px; }

  .site-footer .footer-inner { flex-wrap: wrap; gap: 0 12px; padding-block: 9px; }

  .site-nav .nav-workspace { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
