:root {
  color-scheme: light;
  --ink: oklch(17% 0.014 85);
  --ink-soft: oklch(36% 0.018 85);
  --muted: oklch(56% 0.018 85);
  --paper: oklch(97% 0.014 86);
  --paper-deep: oklch(92% 0.02 86);
  --surface: oklch(99% 0.009 86);
  --line: oklch(82% 0.026 86);
  --accent: oklch(54% 0.112 75);
  --accent-dark: oklch(31% 0.074 75);
  --green: oklch(48% 0.102 155);
  --shadow: 0 20px 50px rgb(57 45 21 / 12%);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --hero-y: clamp(64px, 5vw, 84px);
  --section-y: clamp(52px, 6vw, 82px);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(41 31 12 / 4%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(41 31 12 / 4%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 46px);
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  box-shadow: 0 1px 0 rgb(57 45 21 / 10%);
  backdrop-filter: blur(16px);
}

.wordmark,
.header-action,
.nav-links a,
.button {
  min-height: 40px;
  touch-action: manipulation;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  text-decoration: none;
  font-weight: 760;
}

.brand-symbol {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a,
.header-action {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-action {
  justify-self: end;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.header-tools {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.lang-option {
  min-width: 44px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  touch-action: manipulation;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-option[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1680px;
  margin: 0 auto;
  padding: var(--hero-y) clamp(18px, 5vw, 76px);
}

.hero-copy {
  max-width: 650px;
  animation: rise-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  max-width: 100%;
  font-size: clamp(58px, 7vw, 98px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  max-width: 780px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.38;
  letter-spacing: 0;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease, color 180ms ease;
}

.button:active {
  transform: scale(0.97);
}

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

.button-ghost {
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 580px;
  margin: 0;
}

.hero-facts div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.hero-media {
  margin: 0;
  justify-self: end;
  width: min(620px, 100%);
  animation: image-in 900ms 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-media img,
.workflow-media img,
.habit-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  outline: 1px solid rgb(57 45 21 / 10%);
  outline-offset: -1px;
}

.section {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: clamp(22px, 4.4vw, 58px);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) clamp(18px, 4vw, 36px);
}

.section-label {
  display: none;
}

.section,
.compare,
.stages,
.habit,
.install,
.privacy {
  position: relative;
}

.section::before,
.compare::before,
.stages::before,
.habit::before,
.install::before,
.privacy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.intro {
  display: block;
  max-width: 1040px;
  text-align: center;
}

.intro .section-label {
  margin-bottom: 14px;
}

.intro .section-copy {
  max-width: 900px;
  margin: 0 auto;
}

.intro h2,
.intro .section-copy p {
  margin-right: auto;
  margin-left: auto;
}

.intro .section-copy p {
  max-width: 760px;
}

.section-copy p,
.install > div > p,
.privacy-copy p {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.52;
  text-wrap: pretty;
}

.compare {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) clamp(18px, 4vw, 36px);
}

.compare-column {
  min-height: 260px;
  padding: clamp(24px, 4vw, 44px);
}

.compare-column.muted {
  background: var(--paper-deep);
  color: var(--ink-soft);
}

.compare-column.strong {
  background: var(--ink);
  color: var(--paper);
}

.compare-column ul,
.stages p,
.install p,
.site-footer p {
  margin: 0;
}

.compare-column li {
  margin-bottom: 14px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.36;
}

.workflow-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  align-items: center;
}

.workflow-media {
  margin: 0;
}

.stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) clamp(18px, 4vw, 36px);
}

.stages article {
  min-height: 148px;
  padding: 18px 16px;
}

.stages span {
  display: block;
  margin-bottom: 30px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.stages p {
  color: var(--ink-soft);
  line-height: 1.38;
}

.habit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 4.6vw, 60px);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) clamp(18px, 4vw, 36px);
}

.habit-copy p {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.52;
  text-wrap: pretty;
}

.habit-command {
  display: grid;
  gap: 10px;
  margin: 24px 0 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.habit-command span {
  color: color-mix(in oklch, var(--paper) 68%, transparent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.habit-command code {
  padding: 0;
  background: transparent;
  color: var(--paper);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.habit-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: habit-step;
}

.habit-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 720;
  line-height: 1.35;
  counter-increment: habit-step;
}

.habit-steps li::before {
  content: counter(habit-step, decimal-leading-zero);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.habit-media {
  margin: 0;
}

.install {
  display: grid;
  grid-template-columns: 0.44fr 0.56fr;
  gap: clamp(28px, 4.6vw, 60px);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) clamp(18px, 4vw, 36px);
}

.install-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.install-list article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 22px;
  background: var(--surface);
}

.install-list img {
  grid-row: span 3;
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.install-list h3 {
  margin: 0;
}

code {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  overflow-wrap: anywhere;
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
  color: var(--accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
}

.install-list p {
  color: var(--ink-soft);
  line-height: 1.42;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: clamp(28px, 4.6vw, 60px);
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) clamp(18px, 4vw, 36px);
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  line-height: 1.58;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 46px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  margin-bottom: 6px;
}

.copyright {
  margin-bottom: 0;
  color: color-mix(in oklch, var(--ink-soft) 78%, var(--paper-deep));
  font-size: 13px;
}

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

  .lang-option:hover {
    transform: translateY(-1px);
  }

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .hero,
  .section,
  .workflow-section,
  .habit,
  .install,
  .privacy {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .stages {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .language-switch {
    min-height: 36px;
  }

  .lang-option {
    min-width: 38px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .header-action {
    min-height: 36px;
    padding: 0 13px;
  }

  .brand-symbol {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding-top: clamp(46px, 12vw, 58px);
    padding-bottom: clamp(46px, 12vw, 58px);
  }

  h1 {
    font-size: clamp(48px, 13.4vw, 62px);
  }

  .hero-actions,
  .hero-facts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .compare-column {
    min-height: 0;
  }

  .compare-column ul {
    padding-left: 22px;
  }

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

  .install-list article {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
  }

  .install-list img {
    width: 38px;
    height: 38px;
  }

  .habit-command {
    padding: 16px;
  }

  .privacy {
    padding-bottom: 80px;
  }

  .site-footer {
    display: grid;
  }
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes image-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
