:root {
  color-scheme: light;
  --ink: #111316;
  --ink-soft: #3f444b;
  --paper: #f7f8f5;
  --porcelain: #ffffff;
  --mist: #dbe5df;
  --chrome: #c4c9cd;
  --lacquer: #b5163f;
  --lacquer-dark: #7e102c;
  --line: rgba(17, 19, 22, 0.14);
  --line-strong: rgba(17, 19, 22, 0.28);
  --shadow: 0 24px 80px rgba(17, 19, 22, 0.14);
  --radius: 18px;
  --max: 1180px;
  font-family: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

body.is-legal {
  background:
    linear-gradient(90deg, rgba(196, 201, 205, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(196, 201, 205, 0.16) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(181, 22, 63, 0.34);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.78);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.site-header.legal-header {
  position: sticky;
  background: rgba(247, 248, 245, 0.86);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: currentColor;
}

.nav-links a {
  opacity: 0.82;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.lang-toggle {
  min-width: 56px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: currentColor;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.legal-header .lang-toggle {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}

.lang-toggle:hover {
  background: var(--porcelain);
}

.legal-header .lang-toggle:hover {
  background: var(--porcelain);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-cta {
  background: var(--porcelain);
  color: var(--ink);
  border-color: transparent;
}

.button {
  background: var(--lacquer);
  color: var(--porcelain);
  border-color: var(--lacquer);
  box-shadow: 0 16px 42px rgba(181, 22, 63, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.light-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button:active,
.nav-cta:active,
.lang-toggle:active {
  transform: translateY(1px);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(247, 248, 245, 0.98) 0%, rgba(247, 248, 245, 0.9) 38%, rgba(247, 248, 245, 0.48) 66%, rgba(247, 248, 245, 0.82) 100%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(17, 19, 22, 0.06), transparent 34%),
    linear-gradient(90deg, rgba(247, 248, 245, 0.98), rgba(247, 248, 245, 0.34) 74%);
  pointer-events: none;
}

.hero-visuals {
  position: absolute;
  inset: 72px 0 0;
  pointer-events: none;
}

.hero-screen {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: 32px;
  background: var(--porcelain);
  box-shadow: 0 28px 90px rgba(17, 19, 22, 0.18);
  object-fit: cover;
}

.hero-screen-main {
  right: 18%;
  bottom: -12%;
  width: min(32vw, 390px);
  aspect-ratio: 642 / 920;
  transform: rotate(-5deg);
}

.hero-screen-detail {
  right: 2%;
  bottom: 6%;
  width: min(30vw, 360px);
  aspect-ratio: 642 / 920;
  transform: rotate(5deg);
}

.hero-screen-tryon {
  right: 34%;
  top: 5%;
  width: min(23vw, 280px);
  aspect-ratio: 642 / 920;
  transform: rotate(6deg);
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 64px;
}

.hero-kicker {
  max-width: 520px;
  margin: 0 0 18px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--lacquer-dark);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(68px, 13vw, 156px);
  line-height: 0.9;
  font-weight: 900;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section.tight {
  padding: 56px 0;
}

.section-title {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
}

.section-copy {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
}

.proof-item span {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 14px;
}

.atelier {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: center;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 0.84fr);
  gap: 64px;
  align-items: center;
}

.atelier-visual {
  position: relative;
  min-height: 620px;
}

.story-gallery {
  position: relative;
  min-height: 690px;
}

.screenshot-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: 30px;
  background: var(--porcelain);
  box-shadow: 0 24px 80px rgba(17, 19, 22, 0.12);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-gallery .screenshot-card.primary {
  width: min(76%, 430px);
  margin-left: 4%;
  transform: rotate(-2deg);
}

.story-gallery .screenshot-card.overlap {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: min(58%, 320px);
  transform: rotate(4deg);
}

.screen-grid-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
  padding-top: 36px;
}

.screen-feature {
  display: grid;
  gap: 18px;
  align-content: start;
}

.screen-feature.featured {
  margin-top: 46px;
}

.screen-feature .screenshot-card {
  border-radius: 28px;
}

.screen-feature h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.screen-feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.product-phone {
  width: min(92%, 390px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 22, 0.16);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 245, 0.98)),
    var(--porcelain);
  box-shadow: var(--shadow);
  padding: 18px;
}

.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.product-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--mist);
  aspect-ratio: 3 / 4;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 42%;
}

.product-items {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--porcelain);
  padding: 13px 14px;
}

.product-item.active {
  border-color: rgba(181, 22, 63, 0.26);
  background: rgba(181, 22, 63, 0.06);
}

.product-item strong {
  font-size: 15px;
  line-height: 1.15;
}

.product-item span {
  color: var(--ink-soft);
  font-size: 12px;
}

.phone-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 22, 0.2);
  border-radius: 34px;
  background: var(--porcelain);
  box-shadow: var(--shadow);
}

.phone-frame.main {
  width: min(72%, 360px);
  left: 16%;
  top: 0;
  transform: rotate(-3deg);
}

.phone-frame.side {
  width: min(54%, 270px);
  right: 0;
  bottom: 24px;
  transform: rotate(6deg);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.feature-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.feature-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

.feature-row h3 {
  margin: 0;
  font-size: 22px;
}

.feature-row p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.split-band {
  width: 100%;
  background: var(--ink);
  color: var(--porcelain);
  overflow: hidden;
}

.split-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 54px;
  align-items: center;
  padding: 86px 0;
}

.split-inner .section-copy {
  color: rgba(255, 255, 255, 0.72);
}

.poster-stack {
  position: relative;
  min-height: 540px;
}

.poster {
  position: absolute;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

.poster.one {
  inset: 0 auto auto 0;
  width: 58%;
  transform: rotate(-4deg);
}

.poster.two {
  right: 0;
  bottom: 0;
  width: 56%;
  transform: rotate(5deg);
}

.commitments {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

.commitment-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  padding: 30px;
}

.commitment-panel h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.commitment-panel p,
.commitment-panel li {
  color: var(--ink-soft);
}

.commitment-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.legal-links {
  display: grid;
  gap: 12px;
}

.legal-link {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.legal-link span {
  color: var(--lacquer);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-hero {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 42px;
}

.legal-hero p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 18px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
}

.legal-meta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--lacquer-dark);
  font-size: 13px;
}

.legal-doc {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 60px rgba(17, 19, 22, 0.08);
  padding: clamp(24px, 5vw, 56px);
}

.legal-doc h2 {
  margin: 42px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 28px;
}

.legal-doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink-soft);
}

.legal-doc a {
  color: var(--lacquer-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-doc ul {
  padding-left: 22px;
}

.callout {
  border-left: 4px solid var(--lacquer);
  background: rgba(181, 22, 63, 0.07);
  padding: 18px 20px;
  border-radius: 0 14px 14px 0;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  padding: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--chrome);
}

.status-pill.ok .status-dot {
  background: #347a5b;
}

.status-pill.warn .status-dot {
  background: var(--lacquer);
}

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

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-visuals {
    inset: 64px 0 0;
    opacity: 0.42;
  }

  .hero-screen-main {
    right: -14%;
    bottom: 18%;
    width: min(68vw, 320px);
    transform: rotate(-6deg);
  }

  .hero-screen-detail,
  .hero-screen-tryon {
    display: none;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 110px);
  }

  .proof-strip,
  .atelier,
  .product-story,
  .screen-grid-section,
  .split-inner,
  .commitments,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .atelier-visual,
  .poster-stack {
    min-height: auto;
  }

  .story-gallery {
    min-height: 620px;
  }

  .screen-feature.featured {
    margin-top: 0;
  }

  .split-inner {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-inner,
  .section,
  .split-inner,
  .footer-inner,
  .legal-hero,
  .legal-doc {
    width: min(100% - 28px, var(--max));
  }

  .site-header,
  .nav {
    height: 64px;
  }

  .brand {
    font-size: 16px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .nav-actions {
    gap: 8px;
  }

  .lang-toggle {
    min-width: 50px;
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero-inner {
    padding-bottom: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .atelier-visual,
  .poster-stack {
    min-height: auto;
  }

  .product-story {
    gap: 36px;
  }

  .story-gallery {
    min-height: 520px;
  }

  .story-gallery .screenshot-card.primary {
    width: 78%;
    margin-left: 0;
  }

  .story-gallery .screenshot-card.overlap {
    width: 58%;
    bottom: 0;
  }

  .screen-grid-section {
    gap: 40px;
    padding-top: 8px;
  }

  .product-phone {
    width: 100%;
    border-radius: 30px;
    padding: 14px;
  }

  .poster.one,
  .poster.two {
    width: 66%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
