:root {
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.012 264);
  --ink: oklch(0.18 0.025 264);
  --muted: oklch(0.44 0.025 264);
  --primary: oklch(0.72 0.14 264);
  --primary-dark: oklch(0.36 0.16 264);
  --accent: oklch(0.51 0.23 264);
  --line: oklch(0.88 0.018 264);
  --white: oklch(1 0 0);
  --black: oklch(0.08 0 0);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --shell: min(1240px, calc(100% - 48px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scrollbar-gutter: stable;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: oklch(0.72 0.14 264 / 0.35); color: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out-quart);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: oklch(1 0 0 / 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.brand-logo { width: 170px; height: auto; flex: 0 0 auto; }
.brand-product {
  padding-left: 11px;
  border-left: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 14px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: transform 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart);
}

.header-cta:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface); }
.header-cta:active { transform: translateY(0); }

.hero-v2 {
  position: relative;
  overflow: clip;
  background: linear-gradient(135deg, var(--ink) 0%, oklch(0.23 0.075 264) 100%);
  color: var(--white);
}

.hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(470px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 5vw, 80px);
  padding-block: clamp(78px, 8vw, 105px) clamp(90px, 9vw, 125px);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px oklch(0.51 0.23 264 / 0.13);
}

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

h1 {
  margin: 0;
  font-size: clamp(3rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1 em { color: var(--primary-dark); font-style: normal; }

.hero-intro {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms var(--ease-out-quart), box-shadow 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart);
}

.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(1px) scale(0.99); }
.button-primary { background: var(--accent); color: var(--white); box-shadow: 0 12px 26px oklch(0.51 0.23 264 / 0.24); }
.button-primary:hover { box-shadow: 0 16px 34px oklch(0.51 0.23 264 / 0.32); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--primary-dark); box-shadow: 0 14px 28px oklch(0.36 0.16 264 / 0.22); }

.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; border-bottom: 1px solid var(--line); }
.text-link span { display: inline-block; transition: transform 180ms var(--ease-out-quart); }
.text-link:hover span { transform: translate(3px, -3px); }
.text-link:active { color: var(--primary-dark); }

.hero-v2 .eyebrow { color: oklch(0.84 0.075 264); }
.hero-v2 .eyebrow span {
  background: var(--primary);
  box-shadow: 0 0 0 7px oklch(0.72 0.14 264 / 0.15);
}
.hero-v2 h1 em { color: var(--primary); }
.hero-v2 .hero-intro { color: oklch(0.86 0.015 264); }
.hero-v2 .button-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 12px 26px oklch(0.08 0 0 / 0.2);
}
.hero-v2 .button-primary:hover {
  background: var(--primary);
  color: var(--ink);
  box-shadow: 0 16px 34px oklch(0.08 0 0 / 0.28);
}
.hero-v2 .text-link {
  border-color: oklch(1 0 0 / 0.26);
  color: var(--white);
}
.hero-v2 .text-link:active { color: var(--primary); }

.hero-visual {
  min-width: 0;
}

.tool-deck {
  width: 100%;
  max-width: 680px;
}

.tool-deck-preview {
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.24);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 6px 8px oklch(0.08 0 0 / 0.3);
}

.tool-deck-window-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.tool-deck-window-bar > [data-tool-preview-category] {
  margin-left: auto;
  color: var(--primary-dark);
}

.tool-deck-window-dots {
  display: inline-flex;
  gap: 5px;
}

.tool-deck-window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.tool-deck-window-dots i:first-child { background: var(--accent); }

.tool-deck-preview-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tool-deck-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}

.tool-deck-option {
  min-height: 44px;
  display: grid;
  gap: 7px;
  padding: 6px;
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: var(--radius-sm);
  background: oklch(1 0 0 / 0.06);
  color: var(--white);
  transition: border-color 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart), box-shadow 180ms var(--ease-out-quart);
}

.tool-deck-option:hover {
  border-color: oklch(0.72 0.14 264 / 0.72);
  background: oklch(1 0 0 / 0.1);
}

.tool-deck-option.is-active {
  border-color: var(--primary);
  background: oklch(0.51 0.23 264 / 0.22);
  box-shadow: inset 0 0 0 1px oklch(0.72 0.14 264 / 0.24);
}

.tool-deck-option:focus-visible {
  outline-color: var(--primary);
  outline-offset: 3px;
}

.tool-deck-option img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  background: var(--white);
}

.tool-deck-option span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding-inline: 2px;
  line-height: 1.2;
}

.tool-deck-option strong { font-size: 11px; }
.tool-deck-option small { color: oklch(0.82 0.025 264); font-size: 9px; font-weight: 500; }
.tool-deck-option.is-active small { color: oklch(0.92 0.02 264); }

.tool-strip { border-block: 1px solid var(--line); background: var(--surface); }
.tool-strip-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.tool-strip-inner > p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.quick-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: clamp(20px, 4vw, 54px); }
.quick-links a { min-height: 44px; display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; font-weight: 700; }
.quick-links a strong { color: var(--ink); font-size: 15px; line-height: 1.15; }
.quick-links a span { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.15; }
.quick-links a:hover { color: var(--accent); }
.quick-links a:hover strong { color: var(--accent); }
.quick-links a:active { opacity: 0.72; }

.toolbox { padding-block: clamp(32px, 4vw, 56px) clamp(92px, 11vw, 148px); }

.closing h2 { margin: 0; font-size: clamp(2.1rem, 3.7vw, 3.4rem); line-height: 1.06; letter-spacing: -0.032em; }

.tool-row {
  --tool-tint: oklch(0.94 0.05 145);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(48px, 5vw, 76px);
  padding-block: clamp(58px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.tool-row:last-child { border-bottom: 1px solid var(--line); }
.tool-row-reverse { grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); }
.tool-row-reverse .tool-copy { order: 2; }
.tool-row-reverse .screenshot-wrap { order: 1; }
.tool-csv { --tool-tint: oklch(0.94 0.05 145); }
.tool-vat { --tool-tint: oklch(0.93 0.045 250); }
.tool-qr { --tool-tint: oklch(0.92 0.055 195); }
.tool-clock { --tool-tint: oklch(0.91 0.012 220); }

.tool-category { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--primary-dark); font-size: 13px; font-weight: 700; }
.tool-category::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px oklch(0.51 0.23 264 / 0.1); }
.tool-copy h3 { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.55rem); line-height: 1.1; letter-spacing: -0.028em; }
.tool-copy > p { max-width: 46ch; margin: 23px 0; color: var(--muted); font-size: 17px; }

.feature-list { display: grid; gap: 9px; margin: 0 0 30px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-list li::before { content: '✓'; color: var(--primary-dark); font-weight: 800; }

.screenshot-wrap {
  position: relative;
  display: block;
  width: min(100%, 620px);
  justify-self: end;
  padding: clamp(12px, 1.7vw, 22px);
  border-radius: var(--radius-lg);
  background: var(--tool-tint);
  transition: background-color 220ms var(--ease-out-quart), box-shadow 220ms var(--ease-out-quart);
}

.tool-row-reverse .screenshot-wrap { justify-self: start; }
.screenshot-wrap:hover { background: color-mix(in oklch, var(--tool-tint) 84%, var(--accent)); box-shadow: 0 18px 44px oklch(0.18 0.025 264 / 0.1); }
.screenshot-wrap:active { box-shadow: 0 8px 20px oklch(0.18 0.025 264 / 0.08); }
.screenshot-wrap img { width: 100%; height: auto; object-fit: contain; border: 1px solid oklch(0.82 0.02 264); border-radius: 10px; box-shadow: 0 5px 8px oklch(0.18 0.025 264 / 0.1); }

.screenshot-label {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 3vw, 38px);
  bottom: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px 8px 0 0;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}

.closing {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-block: clamp(90px, 12vw, 150px);
}

.closing p { margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 800; }

footer { background: var(--ink); color: var(--white); }
.footer-grid { min-height: 210px; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: center; gap: 28px; }
.powered-by {
  width: fit-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 5px 8px oklch(0.08 0 0 / 0.22);
  transition: transform 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart), box-shadow 180ms var(--ease-out-quart);
}
.powered-by:hover { transform: translateY(-2px); background: var(--surface); box-shadow: 0 7px 8px oklch(0.08 0 0 / 0.28); }
.powered-by:active { transform: translateY(0); }
.powered-label { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }
.powered-logo { width: 142px; height: auto; }
.powered-arrow { color: var(--accent); font-weight: 800; transition: transform 180ms var(--ease-out-quart); }
.powered-by:hover .powered-arrow { transform: translate(2px, -2px); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; font-weight: 600; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: oklch(0.86 0.015 264); }
.footer-links a:hover { color: var(--primary); }
.footer-links a:active { color: var(--white); }
.footer-grid > p { grid-column: 1 / -1; margin: 0; color: oklch(0.68 0.018 264); font-size: 12px; }

.noscript { margin: 0; padding: 12px; background: var(--accent); color: var(--white); text-align: center; font-weight: 700; }

.motion-ready [data-reveal] { transform: translateY(14px); transition: transform 480ms var(--ease-out-quart); }
.motion-ready [data-reveal].is-visible { transform: none; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr); gap: 44px; }
}

@media (max-width: 959px) {
  :root { --shell: min(100% - 40px, 760px); }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; padding-block: 82px 128px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(680px, 100%); margin: 20px auto 0; }
  .tool-deck { max-width: none; }
  .tool-strip-inner { padding-block: 24px; align-items: flex-start; }
  .quick-links { justify-content: flex-start; gap: 24px 34px; }
  .tool-row, .tool-row-reverse { grid-template-columns: 1fr; gap: 50px; }
  .tool-row-reverse .tool-copy, .tool-row-reverse .screenshot-wrap { order: initial; }
  .tool-copy { max-width: 620px; }
  .screenshot-wrap, .tool-row-reverse .screenshot-wrap { justify-self: start; }
  .closing { align-items: flex-start; flex-direction: column; min-height: 0; }
}

@media (max-width: 639px) {
  :root { --shell: calc(100% - 40px); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand-logo { width: 138px; }
  .site-header .brand-product { display: none; }
  .header-cta { padding: 9px 12px; font-size: 13px; white-space: nowrap; }
  .hero-inner { gap: 42px; padding-block: 68px 104px; }
  h1 { font-size: clamp(2.65rem, 12.8vw, 3.45rem); }
  .hero-intro { font-size: 1.05rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .hero-visual { width: 100%; }
  .tool-deck-window-bar { font-size: 9px; }
  .tool-deck-options {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    padding: 0 2px 10px;
    scrollbar-color: oklch(0.72 0.14 264 / 0.6) transparent;
  }
  .tool-deck-option { flex: 0 0 min(136px, 42vw); scroll-snap-align: start; }
  .tool-strip-inner { display: block; }
  .tool-strip-inner > p { margin-bottom: 16px; }
  .quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
  .toolbox { padding-block: 32px 80px; }
  .tool-row { padding-block: 58px; gap: 34px; }
  .tool-copy > p { font-size: 16px; }
  .screenshot-wrap { padding: 9px; }
  .screenshot-label { right: 16px; font-size: 11px; }
  .closing h2 { font-size: 2.15rem; }
  .footer-grid { grid-template-columns: 1fr; padding-block: 62px; }
  .footer-links { justify-content: flex-start; }
  .footer-grid > p { grid-column: auto; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .motion-ready [data-reveal] { transform: none; }
}
