:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --page: #f6f7ef;
  --main: #edf3e8;
  --ink: #18251e;
  --muted: #465c4d;
  --accent: #315b24;
  --on-accent: #fff;
  --accent-hover: #274b1f;
  --line: #cad8c8;
  --control-line: #829786;
  --panel: #fffef8;
  --panel-tint: #e8efdf;
  --panel-alert: #eef1dd;
  --alert-line: #a5ac84;
  --warning-bg: #eee5b9;
  --warning-ink: #654c1b;
  --grid: #719a691f;
  --glow: #bbd4ad;
  --shadow: #1d39221f;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #131e18;
  --main: #101916;
  --ink: #f5f8ef;
  --muted: #b8cbbf;
  --accent: #c9f88b;
  --on-accent: #1b301c;
  --accent-hover: #e0ffb5;
  --line: #34453b;
  --control-line: #657e6e;
  --panel: #18271f;
  --panel-tint: #203128;
  --panel-alert: #2b3928;
  --alert-line: #687751;
  --warning-bg: #47452d;
  --warning-ink: #f5dc98;
  --grid: #90ba8718;
  --glow: #355d37;
  --shadow: #050c0766;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
body, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1152px, calc(100% - 112px)); margin-inline: auto; }
.main-surface { background: var(--main); }

.site-header, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 760; letter-spacing: -.035em; white-space: nowrap; }
.brand-icon { display: block; flex: none; }
.bell { position: relative; width: 12px; height: 11px; margin-top: -2px; border: 1.7px solid currentColor; border-bottom-width: 2px; border-radius: 8px 8px 2px 2px; }
.bell::after { content: ""; position: absolute; top: 100%; left: 50%; width: 5px; height: 4px; translate: -50% 1px; border-bottom: 1.7px solid currentColor; border-radius: 50%; }
.header-actions, .site-header nav { display: flex; align-items: center; }
.header-actions { gap: 21px; }
.site-header nav { gap: 20px; font-size: .88rem; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.nav-download { padding: 9px 14px; border: 1px solid var(--control-line); border-radius: 8px; color: var(--ink); }
.nav-download:hover { background: var(--panel-tint); }
.nav-coffee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding-inline: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.coffee-icon {
  position: relative;
  width: 11px;
  height: 9px;
  margin-right: 4px;
  margin-bottom: 2px;
  border: 1.3px solid currentColor;
  border-radius: 2px 2px 4px 4px;
}
.coffee-icon::before, .coffee-icon::after { content: ""; position: absolute; }
.coffee-icon::before {
  top: 0;
  left: 100%;
  width: 4px;
  height: 5px;
  border: 1.3px solid currentColor;
  border-left: 0;
  border-radius: 0 3px 3px 0;
}
.coffee-icon::after {
  top: calc(100% + 2px);
  left: -2px;
  width: 13px;
  border-bottom: 1.3px solid currentColor;
}
.site-preferences { display: flex; align-items: center; gap: 8px; }
.language-picker { position: relative; }
.language-picker summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding-inline: 8px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .045em;
  list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  rotate: 45deg;
}
.language-picker[open] summary, .language-picker summary:hover {
  background: var(--panel-tint);
  color: var(--ink);
}
.language-options {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 8px) 0 auto auto;
  min-width: 148px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 10px 25px var(--shadow);
  font-size: .85rem;
}
.language-options label { position: relative; display: block; cursor: pointer; }
.language-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.language-options span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.language-options label:hover span, .language-options input:checked + span { background: var(--panel-tint); }
.language-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.language-options input:checked + span::after {
  content: "";
  width: 7px;
  height: 4px;
  border: solid var(--accent);
  border-width: 0 0 1.5px 1.5px;
  rotate: -45deg;
}
.theme-toggle {
  --theme-slot: 26px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, var(--theme-slot));
  place-items: center;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--control-line); }
.theme-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-start: 3px;
  width: var(--theme-slot);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--panel-tint);
  transition: transform 160ms ease;
}
.theme-toggle[aria-checked="true"]::before { transform: translateX(var(--theme-slot)); }
.theme-toggle[aria-checked="false"] .theme-sun,
.theme-toggle[aria-checked="true"] .theme-moon { color: var(--accent); }
.theme-sun {
  position: relative;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center top / 1px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 1px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 2px 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 2px 1px no-repeat;
}
.theme-sun::before, .theme-sun::after { content: ""; position: absolute; }
.theme-sun::before { inset: 4px; border: 1px solid currentColor; border-radius: 50%; }
.theme-sun::after { inset: 0; rotate: 45deg; background: inherit; }
.theme-moon { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 3.5px -3px currentColor; rotate: -12deg; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1.11fr; gap: 48px; align-items: center; min-height: 590px; padding-block: 70px 92px; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -35px 0 40%;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 29px, var(--grid) 29px 30px), repeating-linear-gradient(90deg, transparent 0 29px, var(--grid) 29px 30px), radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 71%);
}
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); font-size: .88rem; font-weight: 700; }
.eyebrow-line { width: 23px; height: 1px; background: currentColor; }
h1 { margin-top: 19px; font-size: clamp(2.75rem, 5.2vw, 4.65rem); letter-spacing: -.081em; line-height: 1.11; font-weight: 820; word-break: keep-all; }
h1 em { color: var(--accent); font-style: normal; }
.hero h1:lang(en) {
  font-size: clamp(2.125rem, 4.65vw, 4.1rem);
  letter-spacing: -.025em;
  word-spacing: .05em;
  line-height: 1.14;
}
.intro { max-width: 365px; margin-top: 24px; color: var(--muted); font-size: 1.03rem; line-height: 1.8; word-break: keep-all; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-top: 29px; }
.hero-actions > span { color: var(--muted); font-size: .875rem; }
.primary-button { display: inline-flex; align-items: center; gap: 10px; min-height: 49px; padding: 11px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: .94rem; font-weight: 780; }
.primary-button:hover { background: var(--accent-hover); }
.download-icon { position: relative; width: 15px; height: 15px; border-bottom: 2px solid currentColor; border-radius: 2px; }
.download-icon::before { content: ""; position: absolute; top: 0; left: 7px; height: 9px; border-left: 1.7px solid currentColor; }
.download-icon::after { content: ""; position: absolute; top: 4px; left: 5px; width: 6px; height: 6px; rotate: 45deg; border: solid currentColor; border-width: 0 1.7px 1.7px 0; }

.product { position: relative; min-width: 0; padding: 0 24px 36px 0; }
.app-window { overflow: hidden; border: 1px solid var(--control-line); border-radius: 18px; background: var(--panel); box-shadow: 0 28px 70px var(--shadow); }
.app-bar, .app-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-bar { min-height: 59px; padding-inline: 20px; background: var(--panel-tint); border-bottom: 1px solid var(--line); }
.app-brand { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; }
.sample-tag { padding: 3px 8px; border: 1px solid var(--control-line); border-radius: 5px; color: var(--muted); font-size: .76rem; }
.app-content { padding: 20px 20px 35px; }
.app-title { margin-bottom: 14px; font-size: 1.22rem; font-weight: 740; letter-spacing: -.04em; }
.app-count { color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: 0; }
.apps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.app-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 63px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-tint); }
.app-row-alert { border-color: var(--alert-line); background: var(--panel-alert); }
.app-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-weight: 800; }
.app-chrome { background: #f3f4ed; }
.app-chrome > span { display: grid; place-items: center; width: 22px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 35deg, #eec448 0 120deg, #4ca364 120deg 240deg, #d95b50 240deg); }
.app-chrome > span::after { content: ""; width: 11px; aspect-ratio: 1; background: #5b8de3; border: 1.5px solid #f3f4ed; border-radius: 50%; }
.app-code { background: #253d4a; color: #a9dcff; font-family: ui-monospace, monospace; font-size: .75rem; }
.app-zoom { background: #2e51d0; color: white; }
.app-zoom > span { position: relative; width: 13px; height: 10px; margin-left: -5px; border-radius: 2px; background: currentColor; }
.app-zoom > span::after { content: ""; position: absolute; left: 100%; top: 0; width: 7px; height: 10px; background: currentColor; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%); }
.app-name { font-size: .88rem; font-weight: 690; line-height: 1.25; }
.app-name small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; font-weight: 500; }
.app-status { font-size: .735rem; text-align: end; }
.urgent { padding: 5px 7px; border-radius: 5px; background: var(--warning-bg); color: var(--warning-ink); font-weight: 700; }
.quiet { color: var(--muted); }
.notification { position: absolute; right: 0; bottom: 0; display: flex; align-items: flex-start; gap: 11px; width: min(345px, 100%); padding: 14px; border: 1px solid var(--control-line); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: 0 16px 42px var(--shadow); }
.notification-title, .notification-copy, .notification-action { display: block; }
.notification-title { font-size: .875rem; font-weight: 800; }
.notification-copy { margin-top: 4px; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.notification-action { margin-top: 6px; color: var(--accent); font-size: .76rem; font-weight: 750; }

.how { padding-block: 26px 43px; border-top: 1px solid var(--line); }
.how h2 { font-size: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 20px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 13px; }
.steps h3 { margin-bottom: 5px; font-size: 1rem; }
.steps p { color: var(--muted); font-size: .9rem; line-height: 1.55; word-break: keep-all; }
.step-icon { position: relative; display: grid; place-items: center; width: 37px; height: 37px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-tint); color: var(--accent); }
.add::before, .add::after { content: ""; position: absolute; width: 13px; border-top: 1.7px solid currentColor; }
.add::after { rotate: 90deg; }
.check::before { content: ""; width: 12px; height: 7px; margin-top: -3px; rotate: -45deg; border: solid currentColor; border-width: 0 0 1.7px 1.7px; }

.download { scroll-margin-top: 20px; }
.download-inner { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 54px; padding-block: 79px; }
.download-copy h2 { font-size: clamp(2rem, 4vw, 3.05rem); letter-spacing: -.08em; line-height: 1.14; word-break: keep-all; }
.download-copy p { margin-top: 11px; color: var(--muted); font-size: 1rem; line-height: 1.65; word-break: keep-all; }
.platforms { display: grid; gap: 10px; }
.platform { display: flex; align-items: center; gap: 13px; padding: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; }
.platform-icon { display: grid; place-items: center; flex: none; width: 41px; height: 41px; border-radius: 8px; background: var(--panel-tint); color: var(--accent); }
.platform h3 { font-size: 1.04rem; }
.platform-status { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.windows-icon { display: grid; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 2px; }
.windows-icon i { background: currentColor; }
.mac-icon { position: relative; width: 18px; height: 12px; margin-bottom: 3px; border: 1.6px solid currentColor; border-radius: 2px; }
.mac-icon::after { content: ""; position: absolute; top: 100%; left: 50%; width: 22px; border-bottom: 1.6px solid currentColor; translate: -50% 3px; }
.platform-download { margin-inline-start: auto; padding: 8px 10px; border: 1px solid var(--control-line); border-radius: 6px; color: var(--accent); font-size: .87rem; font-weight: 740; }
.platform-download:hover { background: var(--panel-tint); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 72px; padding-block: 16px; font-size: .875rem; color: var(--muted); }
.footer-inner .brand { font-size: 1rem; color: var(--ink); }
.footer-project { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer-credit a { color: var(--ink); font-weight: 650; }
.footer-details { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 16px; }
#analytics-settings { border: 0; padding: 3px 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.footer-credit a:hover, .footer-details a:hover, #analytics-settings:hover { text-decoration: underline; text-underline-offset: .2em; }
.analytics-choice {
  position: fixed;
  z-index: 3;
  inset: auto 16px 16px auto;
  width: min(360px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 28px var(--shadow);
}
.analytics-choice h2 { font-size: .95rem; }
.analytics-choice p { margin-top: 6px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.analytics-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.analytics-actions button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
}
.analytics-actions button:hover { background: var(--panel-tint); }

@media (max-width: 930px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 29px; min-height: 520px; }
  .product { padding-right: 11px; }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 66px; }
  .header-actions { gap: 10px; }
  .site-header nav { gap: 13px; }
  .nav-download { padding: 7px 9px; }
  .nav-coffee { min-width: 36px; }
  .nav-coffee [data-i18n] { display: none; }
  .hero { grid-template-columns: 1fr; gap: 35px; min-height: 0; padding-block: 45px 44px; }
  .hero::before { inset: 38% 0 0; }
  h1 { font-size: clamp(2.65rem, 9vw, 4rem); }
  .hero h1:lang(en) { font-size: clamp(2rem, 8.8vw, 3.7rem); }
  .product { width: 100%; max-width: 500px; }
  .how { padding-block: 23px 35px; }
  .steps { grid-template-columns: 1fr; gap: 19px; }
  .download-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 51px; }
}

@media (max-width: 550px) {
  .site-header { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-details { justify-content: flex-start; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  .site-header { gap: 10px; }
  .site-header nav { gap: 8px; }
  .brand { font-size: 1.06rem; }
  .app-bar, .app-content { padding-inline: 12px; }
  .app-row { gap: 7px; padding-inline: 8px; }
  .app-icon { width: 29px; height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme-toggle::before { transition: none; }
}
