:root {
  color-scheme: dark;
  --bg: #101423;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #fffaf2;
  --muted: rgba(255, 250, 242, 0.82);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #df7147;
  --accent-2: #7aa7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);

  --max: 1440px;
  --page-gutter: 28px;

  --cyrus-header-border: var(--line);
  --cyrus-header-primary: var(--accent-2);
  --mt-text-secondary: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3e7e1;
  --surface: rgba(255, 255, 255, 0.5);
  --surface-2: rgba(255, 255, 255, 0.72);
  --text: #111827;
  --muted: rgba(17, 24, 39, 0.72);
  --line: rgba(17, 24, 39, 0.11);
  --shadow: 0 24px 70px rgba(30, 41, 59, 0.13);
  --cyrus-header-border: var(--line);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

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

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

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(620px, 1.08fr) minmax(460px, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: calc(var(--header-height) + 42px) 0 58px;
}

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

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

h1 {
  max-width: 21.5ch;
  margin-bottom: 30px;
  color: var(--text);
  font-size: clamp(38px, 2.95vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

html[dir="rtl"] h1 {
  max-width: 820px;
  font-size: clamp(42px, 3.15vw, 58px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0;
  text-transform: none;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.hero-text,
.workflow-copy p,
.sample-note p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 28px 0 0;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid transparent;
  text-transform: uppercase;
}

.primary-button {
  background: #df7147;
  color: #fff;
}

.secondary-button {
  background: transparent;
  color: var(--text);
  border-color: #7aa7ff;
}

.hero-note {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

.hero-media {
  position: relative;
  align-self: center;
  justify-self: stretch;
  min-width: 0;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 5% 3%;
  background: rgba(255, 255, 255, 0.045);
  filter: blur(34px);
  opacity: 0.9;
  pointer-events: none;
}

:root[data-theme="light"] .hero-media::before {
  background: rgba(255, 255, 255, 0.38);
}

.hero-illustration {
  position: relative;
  width: min(100%, 640px);
  margin-inline-start: auto;
  overflow: visible;
  transform: translate(-35px, -25px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.samples-section,
.workflow-section {
  padding: clamp(56px, 7vh, 82px) 0;
}

.samples-section {
  width: min(var(--max), calc(100% - calc(var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-top: clamp(34px, 5vh, 64px);
  padding-bottom: clamp(24px, 4vh, 40px);
}

.samples-kicker {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.sample-stage {
  max-width: 1440px;
  margin: 0 auto;
}

.compare {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  min-height: 440px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
}

html[dir="rtl"] .compare-before-wrap {
  inset: 0 0 0 auto;
}

.compare-before-wrap img {
  width: 100%;
  min-width: min(var(--max), calc(100vw - calc(var(--page-gutter) * 2)));
  max-width: none;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  pointer-events: none;
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f5ca39;
  border: 4px solid rgba(16, 20, 35, 0.5);
  transform: translate(-50%, -50%);
}

.compare-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.compare-label.before {
  left: 16px;
}

.compare-label.after {
  right: 16px;
}

.sample-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.sample-nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.sample-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sample-dot {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 999px;
  background: rgba(4, 8, 20, 0.62);
  cursor: pointer;
}

.sample-dot.is-active {
  background: #f5ca39;
}

.sample-details {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
  margin-top: 62px;
}

/* .sample-details h2 {
  max-width: 580px;
  margin-bottom: 0;
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
} */


.sample-details h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sample-copy {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.sample-copy p {
  margin-bottom: 16px;
}

.sample-copy p:last-child {
  margin-bottom: 0;
}

.sample-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 26px;
}

.sample-card,
.step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px;
}

.sample-card {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
  text-align: center;
}

.sample-card-title {
  margin: 0 12px 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.sample-card-meta {
  margin: 0 12px 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.sample-card-media {
  display: block;
  width: 100%;
  height: 280px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(4, 8, 20, 0.44);
}

.sample-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.sample-card-media:hover img,
.sample-card-media:focus-visible img {
  transform: scale(1.03);
}

.sample-card-media:focus-visible {
  outline: 3px solid rgba(20, 121, 214, 0.45);
  outline-offset: -3px;
}

.sample-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(5, 9, 20, 0.78);
}

.sample-lightbox[hidden] {
  display: none;
}

.sample-lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.sample-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #101423;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(122, 167, 255, 0.17);
  color: var(--accent-2);
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .sample-details,
html[dir="rtl"] .sample-copy,
html[dir="rtl"] .step {
  text-align: right;
}

html[dir="rtl"] .hero-illustration {
  margin-inline: 0 auto;
  /* transform: translate(35px, -25px); */
  transform: translate(0, -25px);
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + 54px);
  }

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

  .hero-illustration {
    margin: 0 auto;
    transform: none;
  }

  .sample-details {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sample-details h2 {
    max-width: 720px;
  }
}

@media (max-width: 820px) {

  .section,
  .samples-section {
    width: min(var(--max), calc(100% - calc(var(--page-gutter) * 2)));
  }

  h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.14;
  }

  .hero {
    gap: 28px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .compare {
    min-height: 0;
  }

  .sample-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 46px;
  }

  h1 {
    margin-bottom: 24px;
    font-size: 32px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    font-size: 16px;
  }

  .hero-note {
    font-size: 14px;
  }

  .samples-section,
  .workflow-section {
    padding: 56px 0;
  }

  .compare {
    min-height: 260px;
  }

  .sample-details {
    margin-top: 46px;
  }

  .sample-details h2 {
    font-size: 26px;
  }

  .sample-controls {
    gap: 12px;
  }

  .sample-dots {
    gap: 9px;
  }

  .sample-dot {
    width: 14px;
    height: 14px;
  }
}
