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

:root {
  --bg: oklch(99% 0.002 240);
  --surface: oklch(100% 0 0);
  --fg: oklch(18% 0.012 250);
  --muted: oklch(54% 0.012 250);
  --border: oklch(92% 0.005 250);
  --accent: oklch(58% 0.18 255);
  --nav-bg: oklch(99% 0.002 240 / 0.85);
  --card-bg: var(--surface);
  --green: oklch(65% 0.18 145);
  --yellow: oklch(75% 0.18 80);
  --red: oklch(55% 0.22 25);
  --orange: oklch(65% 0.18 50);
  --code-bg: oklch(97% 0.003 250);
  --code-border: oklch(89% 0.006 250);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: oklch(12% 0.012 250);
  --surface: oklch(16% 0.012 250);
  --fg: oklch(93% 0.005 240);
  --muted: oklch(60% 0.012 250);
  --border: oklch(24% 0.012 250);
  --accent: oklch(68% 0.18 255);
  --nav-bg: oklch(12% 0.012 250 / 0.85);
  --card-bg: oklch(18% 0.012 250);
  --code-bg: oklch(14% 0.012 250);
  --code-border: oklch(22% 0.012 250);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  max-width: 1100px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__brand,
.header__actions,
.header__badge,
.header__github-btn,
.theme-toggle,
.btn {
  display: inline-flex;
  align-items: center;
}

.header__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.header__subtitle {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header__actions { gap: 10px; }

.header__badge {
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid oklch(65% 0.18 145 / 0.25);
  border-radius: 100px;
  color: var(--green);
  background: oklch(65% 0.18 145 / 0.1);
  font-size: 0.75rem;
  font-weight: 500;
}

.header__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.header__github-btn {
  gap: 6px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.header__github-btn:hover,
.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--muted);
  background: var(--surface);
}

.theme-toggle {
  justify-content: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: none;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero { padding: 56px 0 40px; }

.hero__content {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__text,
.hero__visual,
.panel,
.stat-card,
.code-card,
.feature-card {
  min-width: 0;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid oklch(58% 0.18 255 / 0.15);
  border-radius: 100px;
  color: var(--accent);
  background: oklch(58% 0.18 255 / 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__heading {
  margin-bottom: 1rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), oklch(68% 0.18 290));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  max-width: 590px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero__tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition), border-color var(--transition);
}

.tech-pill:hover {
  color: var(--accent);
  border-color: oklch(58% 0.18 255 / 0.4);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  min-width: 0;
}

.flow-node {
  display: flex;
  min-width: 88px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.flow-node:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.flow-node__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.flow-node__icon svg { width: 28px; height: 28px; display: block; }
.flow-node__icon--text { width: auto; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--orange); }
.flow-arrow svg { width: 42px; height: 24px; }

.flow-sinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.flow-sinks span {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--card-bg);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.controls {
  margin-bottom: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.controls__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.controls__title {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.controls__desc {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.controls__right { display: flex; gap: 10px; }

.btn {
  gap: 8px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn__icon { font-size: 1rem; }

.btn--primary {
  border-color: oklch(58% 0.18 255 / 0.3);
  color: oklch(99% 0.002 240);
  background: linear-gradient(135deg, var(--accent), oklch(52% 0.2 280));
  box-shadow: 0 4px 16px oklch(58% 0.18 255 / 0.25);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px oklch(58% 0.18 255 / 0.38);
}

.btn--secondary {
  border-color: var(--border);
  color: var(--muted);
  background: var(--surface);
}

.btn--secondary:hover:not(:disabled) {
  color: var(--fg);
  border-color: var(--muted);
}

.dashboard { padding: 24px 0 48px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  box-shadow: 0 4px 24px oklch(18% 0.012 250 / 0.08);
}

.stat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card__label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.stat-card__icon { font-size: 1.2rem; }

.stat-card__value {
  margin-bottom: 8px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-card__footer {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: var(--border);
}

.stat-card__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card__bar--total::after { background: linear-gradient(90deg, var(--accent), oklch(68% 0.18 290)); }
.stat-card__bar--sent::after { background: linear-gradient(90deg, var(--green), oklch(72% 0.18 145)); }
.stat-card__bar--skipped::after { background: linear-gradient(90deg, var(--yellow), oklch(82% 0.18 80)); }
.stat-card__bar--failed::after { background: linear-gradient(90deg, var(--red), oklch(65% 0.22 25)); }
.stat-card.active .stat-card__bar--total::after { width: 100%; }
.stat-card.active .stat-card__bar--sent::after { width: 90%; }
.stat-card.active .stat-card__bar--skipped::after { width: 45%; }
.stat-card.active .stat-card__bar--failed::after { width: 18%; }

.dashboard__columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 24px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: border-color var(--transition);
}

.panel:hover { border-color: var(--muted); }

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.panel__title {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.panel__badge {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  background: var(--bg);
  font-size: 0.7rem;
  font-weight: 500;
}

.panel__badge--active {
  color: var(--green);
  background: oklch(65% 0.18 145 / 0.1);
  border-color: oklch(65% 0.18 145 / 0.25);
  font-weight: 700;
}

.panel__body {
  min-height: 200px;
  padding: 16px 20px;
}

.console-output {
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.8;
}

.console-line {
  padding: 2px 0;
  animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.console-line--info { color: var(--muted); }
.console-line--success { color: var(--green); }
.console-line--warning { color: var(--orange); }
.console-line--error { color: var(--red); }
.console-line--header { color: var(--accent); font-weight: 600; }
.console-line--result { color: var(--fg); font-weight: 600; }

.telegram-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.telegram-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.6;
  box-shadow: 0 1px 3px oklch(18% 0.012 250 / 0.06);
  overflow-wrap: anywhere;
}

.telegram-bubble--user {
  justify-self: start;
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 3px;
  background: var(--surface);
}

.telegram-bubble--bot {
  justify-self: end;
  border: 1px solid oklch(80% 0.08 145);
  border-radius: 10px 10px 3px 10px;
  color: oklch(20% 0.02 145);
  background: oklch(88% 0.06 145);
}

[data-theme="dark"] .telegram-bubble--bot {
  color: oklch(90% 0.02 145);
  background: oklch(28% 0.04 145);
  border-color: oklch(35% 0.05 145);
}

.telegram-bubble__meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.65rem;
}

.chat-rule {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: oklch(65% 0.18 145 / 0.05);
}

.chat-rule strong {
  display: block;
  margin-bottom: 3px;
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 700;
}

.chat-rule span {
  color: var(--muted);
  font-size: 0.72rem;
}

.table-wrapper { overflow-x: auto; }

.expense-table,
.comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.expense-table th,
.comparison__table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison__table th { background: var(--bg); padding: 12px 16px; }

.expense-table td,
.comparison__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}

.comparison__table td { padding: 13px 16px; }
.expense-table tbody tr:last-child td,
.comparison__table tbody tr:last-child td { border-bottom: none; }
.expense-table tbody tr:hover,
.comparison__table tbody tr:hover { background: oklch(58% 0.18 255 / 0.04); }

.result-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-badge--pending { border: 1px solid var(--border); color: var(--muted); background: var(--bg); }
.result-badge--parsed { color: var(--green); background: oklch(65% 0.18 145 / 0.12); }
.result-badge--drive { color: oklch(55% 0.15 80); background: oklch(75% 0.18 80 / 0.15); }
.result-badge--blocked { color: var(--red); background: oklch(55% 0.22 25 / 0.12); }

.code-section,
.features,
.screenshots,
.comparison {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.code-section__header {
  margin-bottom: 28px;
  text-align: center;
}

.code-section__title,
.features__title,
.screenshots__title,
.comparison__title {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
}

.code-section__desc,
.screenshots__subtitle,
.comparison__subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.comparison__subtitle {
  max-width: 620px;
  margin: 8px auto 32px;
}

.screenshots__header {
  margin-bottom: 28px;
  text-align: center;
}

.screenshots__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.screenshot-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.screenshot-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  box-shadow: 0 8px 32px oklch(18% 0.012 250 / 0.08);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--border);
}

.screenshot-card--tall img {
  height: 460px;
}

.screenshot-card--wide {
  grid-column: 1 / -1;
}

.screenshot-card--wide img {
  height: 300px;
}

.screenshot-card figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.screenshot-card figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.code-cards,
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.features__grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

.code-card,
.feature-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card {
  padding: 24px;
  text-align: center;
}

.code-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.feature-card:hover {
  border-color: var(--muted);
  box-shadow: 0 8px 32px oklch(18% 0.012 250 / 0.08);
}

.code-card__label {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  background: var(--card-bg);
  font-size: 0.75rem;
  font-weight: 600;
}

.code-card__pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: none;
  color: var(--muted);
  background: var(--code-bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
}

.feature-card__icon {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
}

.feature-card h4 {
  margin-bottom: 8px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.comparison__highlight {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid oklch(65% 0.18 145 / 0.3);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.comparison__highlight::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), oklch(72% 0.18 145));
}

.comparison__highlight-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: oklch(65% 0.18 145 / 0.1);
  font-size: 2rem;
}

.comparison__highlight-text h4 {
  margin-bottom: 8px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.comparison__highlight-text p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.comparison__panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.comparison__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.comparison__panel-title {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.comparison__panel-badge {
  padding: 3px 10px;
  border: 1px solid oklch(65% 0.18 145 / 0.25);
  border-radius: 100px;
  color: var(--green);
  background: oklch(65% 0.18 145 / 0.1);
  font-size: 0.7rem;
  font-weight: 500;
}

.comparison__table-wrapper { overflow-x: auto; }
.comparison__row--highlight { background: oklch(65% 0.18 145 / 0.04); }
.comparison__check { color: var(--green); font-size: 0.75rem; font-weight: 600; }
.comparison__warn { color: oklch(55% 0.15 80); font-size: 0.75rem; font-weight: 500; }

.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer__text {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer__note {
  color: oklch(70% 0.008 250);
  font-size: 0.75rem;
}

@media (max-width: 1024px) {
  .hero__content,
  .dashboard__columns { grid-template-columns: 1fr; }
  .stats-grid,
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots__grid { grid-template-columns: 1fr; }
  .screenshot-card--wide { grid-column: auto; }
  .code-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__inner { height: auto; flex-wrap: wrap; padding: 12px 0; }
  .header__actions { flex-wrap: wrap; justify-content: flex-start; }
  .hero__heading {
    max-width: calc(100vw - 2.5rem);
    font-size: 1.55rem;
  }
  .hero__description {
    max-width: calc(100vw - 2.5rem);
  }
  .controls__inner { flex-direction: column; text-align: center; }
  .controls__right { justify-content: center; }
  .flow-diagram {
    display: grid;
    grid-template-columns: 52px 18px 52px 18px 52px;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    overflow: hidden;
  }
  .flow-node {
    width: 52px;
    height: 46px;
    min-width: 0;
    justify-content: center;
    gap: 0;
    padding: 10px 4px;
    font-size: 0.62rem;
  }
  .flow-node span {
    display: none;
  }
  .flow-node__icon,
  .flow-node__icon svg {
    width: 20px;
    height: 20px;
  }
  .flow-node__icon--text {
    font-size: 1rem;
  }
  .flow-arrow {
    align-self: center;
    transform: none;
  }
  .flow-arrow svg {
    width: 18px;
    height: 16px;
  }
  .flow-sinks,
  .stats-grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-card img,
  .screenshot-card--tall img,
  .screenshot-card--wide img {
    height: auto;
    max-height: none;
  }
  .comparison__highlight { flex-direction: column; }
}

@media (max-width: 480px) {
  .main,
  .header { padding: 0 1.25rem; }
  .hero__heading,
  .hero__description {
    max-width: 340px;
  }
  .hero { padding: 36px 0 28px; }
  .controls__right { width: 100%; flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .dashboard { padding: 16px 0 32px; }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }
  .stat-card {
    padding: 14px 14px;
    border-radius: 12px;
  }
  .stat-card__header {
    margin-bottom: 8px;
  }
  .stat-card__label {
    font-size: 0.75rem;
  }
  .stat-card__icon {
    font-size: 1rem;
  }
  .stat-card__value {
    margin-bottom: 6px;
    font-size: 1.65rem;
  }
  .stat-card__footer {
    font-size: 0.58rem;
    line-height: 1.3;
  }
  .header__github-btn,
  .header__badge {
    font-size: 0.75rem;
  }
  .hero__visual {
    width: 100%;
  }
  .feature-card {
    padding: 16px 12px;
  }
  .feature-card__icon {
    margin-bottom: 8px;
    font-size: 1.45rem;
  }
  .feature-card h4 {
    font-size: 0.78rem;
  }
  .feature-card p {
    font-size: 0.7rem;
    line-height: 1.45;
  }
}
