/* Shared Omarchy palette: Tokyo Night. */
:root {
  color-scheme: dark;
  --bg: #1a1b26;
  --surface: #202230;
  --deep: #151620;
  --text: #c0caf5;
  --muted: #929bbd;
  --line: #383d54;
  --accent: #b2d984;
  --blue: #92b4ff;
  --orange: #e0af68;
  --purple: #bb9af7;
  --shadow: #10111a;
  --display: #626b88;
  --font: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

button {
  font: inherit;
  cursor: pointer;
}

button,
a,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

#main:focus {
  outline: none;
}

::selection {
  background: var(--accent);
  color: var(--deep);
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1248px;
  margin: auto;
  padding: 0 40px;
}

.accent {
  color: var(--accent);
}


.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  z-index: 10;
  background: var(--accent);
  color: var(--deep);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 72px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.hero h1 {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -2px;
  margin: 20px 0;
}

.hero-copy {
  max-width: 490px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 26px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 10px 22px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--deep);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  transition: color 0.15s ease;
}

.text-link:hover {
  color: var(--accent);
}

.compat {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.file-pill {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--blue);
  background: var(--surface);
}

.file-pill.sheet {
  color: var(--accent);
}

.file-pill.slides {
  color: var(--orange);
}

.small-note,
.preview-caption {
  color: var(--muted);
  font-size: 11px;
}

.small-note {
  margin: 16px 0 0;
}

.preview-caption {
  text-align: center;
  margin: 16px 0 0;
}

/* Desktop Preview Window */
.preview {
  position: relative;
}

.desktop {
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 var(--shadow);
  background: var(--deep);
  overflow: hidden;
}

.desktop-bar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  padding: 0 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.workspace-number {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 6px 5px;
}

.desktop-wallpaper {
  position: absolute;
  inset: 32px 0 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.2;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.desktop-wallpaper span {
  font-size: 340px;
  line-height: 1;
  color: var(--accent);
  transform: rotate(12deg);
  user-select: none;
}

.app-window {
  position: relative;
  margin: 16px 14px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--blue);
  box-shadow: 6px 6px 0 var(--shadow);
}

.app-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 12px;
}

.window-mark {
  color: var(--blue);
  margin-right: 6px;
}

.preview-badge {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
}

/* Tabs */
.demo-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  overflow-x: auto;
}

.demo-tabs button {
  flex: 1;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.demo-tabs button:hover {
  color: var(--text);
}

.demo-tabs button[aria-selected="true"] {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--surface);
}

.demo-panel {
  min-height: 480px;
  height: 480px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.demo-panel > * {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* 1. Authentic Qt GUI Client View (mailbox-gui) */
.gui-client-mockup {
  background: #151722;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.gui-client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.gui-client-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gui-squircle-icon {
  width: 26px;
  height: 26px;
  background: #24283b;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--blue);
}

.gui-squircle-icon svg {
  width: 16px;
  height: 16px;
}

.gui-client-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.gui-search-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #24283b;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
}

.gui-compose-btn {
  background: var(--blue);
  color: #151620;
  font-weight: 700;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 18px;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gui-section-pill {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: var(--muted);
  text-transform: uppercase;
  background: #1f2335;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
}

.gui-mail-card {
  background: #1f2335;
  border: 1px solid #2f344d;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.gui-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0af68;
  color: #151620;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}


.gui-card-body {
  flex: 1;
  min-width: 0;
}

.gui-card-line1 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gui-card-line2 {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.gui-card-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
}

.gui-client-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.gui-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.gui-bottom-stacks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gui-stack-icon {
  width: 28px;
  height: 28px;
  background: #1f2335;
  border: 1px solid #2f344d;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}

.gui-stack-card {
  background: #1f2335;
  border: 1px solid #2f344d;
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
}

.gui-stack-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0af68;
  color: #151620;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* 2. Authentic Calendar Widget View (mailbox.clock) */
.clock-widget-mockup {
  background: #151722;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  gap: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

.clock-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
  flex: 0 0 auto;
}

.clock-top-left {
  color: var(--text);
  font-weight: 600;
}

.clock-header {
  margin-bottom: 4px;
  flex: 0 0 auto;
}

.clock-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.clock-title-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.clock-cal-icon {
  font-size: 16px;
}

.clock-nav-btns {
  display: flex;
  gap: 6px;
}

.clock-nav-btns span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #1f2335;
  color: var(--muted);
  font-size: 12px;
}

.clock-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.clock-progress-bar {
  flex: 1;
  height: 4px;
  background: #24283b;
  border-radius: 2px;
  overflow: hidden;
}

.clock-progress-fill {
  width: 67%;
  height: 100%;
  background: var(--blue);
}

.clock-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: 16px repeat(6, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
  font-size: 11px;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.clock-cell {
  min-height: 0;
  height: 100%;
  padding: 2px 1px 6px;
  border-radius: 5px;
  color: var(--text);
  position: relative;
  background: #1a1e2e;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 10px;
}

.clock-cell.header {
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--display);
  background: transparent;
  min-height: 0;
  height: 16px;
  padding: 0;
  align-items: center;
}

.clock-cell.muted-day {
  color: var(--display);
  background: transparent;
}

.clock-cell.current-day {
  border: 1px solid var(--accent);
  color: var(--text);
  font-weight: 700;
  background: rgba(178, 217, 132, 0.08);
}

.clock-cell.has-dot::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue);
}

.clock-events-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 4px;
  flex: 0 0 auto;
  min-height: 0;
}

.clock-events-label {
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--display);
  margin-top: 2px;
}

.clock-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #1f2335;
  border: 1px solid #2f344d;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
}

.clock-event-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.clock-event-time {
  color: var(--blue);
  font-weight: 600;
  font-size: 10px;
  flex-shrink: 0;
}

.clock-event-title {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clock-join-btn {
  background: #24283b;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.clock-todo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  padding: 2px 2px;
}

.clock-todo-row input {
  accent-color: var(--accent);
}

.clock-todo-row label.done {
  text-decoration: line-through;
  opacity: 0.7;
}

/* 3. Authentic Event Add View */
.quick-add-mockup {
  background: #151722;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.quick-add-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.quick-add-tabs {
  display: flex;
  gap: 12px;
  font-weight: 700;
  color: var(--blue);
}

.quick-add-input {
  background: #1f2335;
  border: 1px solid #2f344d;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-add-card {
  background: #1f2335;
  border: 1px solid #2f344d;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.quick-add-card strong {
  display: block;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 4px;
}

.quick-add-card-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.quick-add-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.quick-add-pill {
  background: #24283b;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.quick-add-submit {
  background: #24283b;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  margin-top: auto;
}

/* 4. Authentic Mail Notification Panel View (mailbox.email) */
.email-panel-mockup {
  background: #151722;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.email-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.email-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-panel-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(146, 180, 255, 0.12);
  border: 1px solid rgba(146, 180, 255, 0.35);
  color: var(--blue);
  font-size: 14px;
}

.email-panel-title strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  line-height: 1.2;
}

.email-panel-title .email-status-live {
  display: inline-block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--accent);
  background: rgba(178, 217, 132, 0.12);
  border: 1px solid rgba(178, 217, 132, 0.35);
  border-radius: 999px;
  padding: 1px 7px;
}

.email-panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8b93a8;
}

.email-action-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #8b93a8;
}

.email-action-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}


.email-mail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.email-mail-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  background: #1f2335;
  border: 1px solid #2f344d;
  border-radius: 8px;
  padding: 10px;
}

.email-mail-row.unread {
  border-color: rgba(146, 180, 255, 0.35);
  box-shadow: inset 2px 0 0 var(--blue);
}

.email-mail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: #24283b;
  color: var(--blue);
  border: 1px solid var(--line);
}

.email-mail-avatar.cx {
  color: var(--orange);
}

.email-mail-body {
  min-width: 0;
}

.email-mail-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 2px;
}

.email-mail-top strong {
  color: var(--text);
}

.email-mail-top span {
  color: var(--muted);
  font-size: 10px;
  flex-shrink: 0;
}

.email-mail-subject {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-mail-preview {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}


.email-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--blue);
}

.email-hide-note {
  color: var(--muted);
}

/* 5. Authentic Standalone CLI View */
.cli-preview-mockup {
  background: #151722;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.65;
  min-height: 100%;
  overflow-x: auto;
}

.cli-prompt-sym {
  color: #7dcfff;
  font-weight: 700;
}

.cli-cmd {
  color: var(--text);
}

.cli-out {
  color: var(--muted);
  margin: 3px 0 10px;
  white-space: pre;
}

/* Principles Band */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.principles > span:last-child {
  text-align: right;
}

.principles b {
  color: var(--accent);
  font-weight: 500;
  margin-right: 8px;
}

/* Core Sections */
.section {
  padding: 80px 0;
}

.section-heading {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.section-number {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 0;
  font-weight: 600;
}

.section-heading p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 20px;
  min-width: 0;
}

.feature-mark {
  display: block;
  color: var(--blue);
  height: 44px;
  margin-bottom: 8px;
}

.feature-mark svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.feature-grid article:nth-child(2) .feature-mark {
  color: var(--accent);
}

.feature-grid article:nth-child(3) .feature-mark {
  color: var(--orange);
}

.feature-grid article:nth-child(4) .feature-mark {
  color: var(--purple);
}

.feature-grid h3 {
  font-size: 16px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  font-weight: 600;
}

.feature-grid p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 14px;
  flex: 1;
}

/* Inline code — shared treatment everywhere (feature cards, FAQ, install, prose) */
code {
  font-family: var(--font);
  font-size: 0.92em;
  color: var(--blue);
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}

.feature-grid article > code {
  font-size: 11px;
  color: var(--blue);
  background: var(--deep);
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
  overflow-wrap: anywhere;
}

.feature-grid p code,
.install-steps code,
.release-note code,
.faq-list code {
  font-size: 0.92em;
  display: inline;
  padding: 1px 6px;
  border-radius: 4px;
}


/* Flow Diagram */
.flow-diagram {
  margin-top: 36px;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 16px;
  border: 1px dashed var(--line);
  background: var(--surface);
}

.flow-row.second-hop {
  border-top: 0;
}

.flow-node {
  flex: 1;
  font-size: 12px;
  text-align: center;
}

.flow-node strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 2px;
}

.flow-node span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.flow-arrow {
  color: var(--accent);
  font-size: 22px;
  text-align: center;
  user-select: none;
}

.flow-caption {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}

/* Install Section */
.install {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.install-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.install-grid > *,
.faq-grid > * {
  min-width: 0;
}

.install-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.terminal {
  border: 1px solid var(--line);
  background: var(--deep);
  box-shadow: 6px 6px 0 var(--shadow);
}

.terminal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}

.terminal-title::before {
  content: "● ● ●";
  color: var(--display);
  letter-spacing: 3px;
  font-size: 8px;
}

.command-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 16px;
  min-width: 0;
}

.command-row code {
  min-width: 0;
  font: 12px/1.8 var(--font);
  overflow-wrap: anywhere;
  flex: 1;
  user-select: all;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
}

.copy-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  min-width: 64px;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 11px;
  transition: all 0.15s ease;
}

.copy-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-feedback {
  font-size: 11px;
  color: var(--accent);
  margin: 0;
  padding: 0 16px 14px;
  min-height: 16px;
}

.install-steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}

.install-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
  font-size: 11px;
}

.install-steps strong {
  color: var(--text);
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.release-note {
  color: var(--muted);
  font-size: 11px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin-top: 20px;
  line-height: 1.7;
}

/* FAQ */
.faq {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 20px;
  transition: border-color 0.15s ease;
}

.faq-list details[open] {
  border-color: var(--blue);
}

.faq-list summary {
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 16px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0 0;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: var(--deep);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-bottom a {
  color: var(--accent);
}

.footer-wordmark {
  font-size: clamp(60px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: -6px;
  color: var(--surface);
  line-height: 0.9;
  margin-top: 36px;
  user-select: none;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles > span:last-child {
    text-align: left;
  }
  .feature-grid,
  .feature-grid.four-col {
    grid-template-columns: 1fr;
  }
  .install-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .site-nav {
    gap: 14px;
  }
  .desktop-link {
    display: none !important;
  }
  .flow-row {
    flex-direction: column;
    text-align: center;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}
