:root {
  color-scheme: light dark;
  --bg: #f7f8fc;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #ffffff;
  --text: #171821;
  --muted: #666a78;
  --line: rgba(34, 39, 58, 0.11);
  --accent: #6657ec;
  --accent-deep: #4d3fd0;
  --accent-soft: #ebe9ff;
  --blue: #3079e8;
  --shadow: 0 32px 80px rgba(37, 39, 67, 0.17), 0 4px 12px rgba(37, 39, 67, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 52% 15%, rgba(204, 213, 255, 0.72), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1228px, calc(100% - 24px));
  min-height: 64px;
  margin: 12px auto 0;
  padding: 9px 12px 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(247, 248, 252, 0.7);
  box-shadow: 0 8px 30px rgba(31, 34, 52, 0.06);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.wordmark { display: flex; align-items: center; gap: 9px; font-weight: 670; letter-spacing: -0.02em; }
.wordmark img { border-radius: 9px; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 550; }
.site-header nav a:hover, .site-header nav a:focus-visible { background: var(--surface); color: var(--text); }
.site-header .github-link { border: 1px solid var(--line); background: var(--surface); color: var(--text); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); align-items: center; gap: 84px; min-height: 660px; padding-block: 76px 88px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 14px; color: var(--accent-deep); font-size: 13px; font-weight: 720; letter-spacing: 0.1em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 620px; margin: 0; font-size: clamp(52px, 5vw, 74px); line-height: 0.98; letter-spacing: -0.058em; }
h1 span { color: var(--accent); }
.hero-summary { max-width: 520px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.58; letter-spacing: -0.012em; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.primary-button { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 212px; padding: 13px 19px 12px; border: 1px solid rgba(255,255,255,.26); border-radius: 14px; background: linear-gradient(180deg, #7466f2, #5848df); box-shadow: 0 10px 24px rgba(81, 66, 209, .28), inset 0 1px rgba(255,255,255,.2); color: white; font-size: 15px; font-weight: 670; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button small { margin-top: 2px; color: rgba(255,255,255,.76); font-size: 11px; font-weight: 520; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(81, 66, 209, .35), inset 0 1px rgba(255,255,255,.2); }
.text-link { color: var(--accent-deep); font-size: 15px; font-weight: 650; }
.release-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; }
.hero-art { position: relative; display: grid; place-items: center; justify-self: end; width: min(100%, 390px); }
.hero-art img { position: relative; z-index: 2; width: 100%; border-radius: 28%; filter: drop-shadow(0 36px 40px rgba(42, 43, 78, .24)); }
.ambient-orb { position: absolute; border-radius: 999px; filter: blur(2px); }
.orb-one { top: -13%; right: -12%; width: 76%; aspect-ratio: 1; background: rgba(114, 163, 255, .24); }
.orb-two { bottom: -15%; left: -12%; width: 68%; aspect-ratio: 1; background: rgba(193, 117, 255, .16); }

.proof-strip { display: flex; justify-content: center; gap: clamp(24px, 6vw, 74px); padding: 22px 24px; border-block: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 620; }
.proof-strip span::before { content: "✓"; margin-right: 7px; color: var(--accent); }

.feature-section { padding-block: 132px; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
h2 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.03; letter-spacing: -0.048em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-card { min-height: 310px; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 50px rgba(31, 34, 52, .055); }
.feature-card-wide { grid-column: 1 / -1; min-height: 340px; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(238,240,255,.88)); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 42px; border: 1px solid rgba(103,86,236,.18); border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); font-size: 24px; }
.feature-card h3 { max-width: 560px; margin: 0 0 12px; font-size: 26px; letter-spacing: -0.035em; }
.feature-card p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.62; }
.capability-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.capability-cloud span { padding: 7px 10px; border: 1px solid rgba(103,86,236,.12); border-radius: 8px; background: rgba(255,255,255,.64); color: var(--accent-deep); font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }

.settings-section { padding-block: 120px; background: #13131a; color: #f7f7fb; }
.settings-layout { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 76px; }
.settings-copy h2 { max-width: 460px; font-size: clamp(40px, 4vw, 54px); }
.settings-copy > p:not(.eyebrow) { color: #a7a7b1; font-size: 17px; line-height: 1.6; }
.settings-copy .eyebrow { color: #a69cff; }
.style-picker { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.07); }
.style-option { padding: 8px 15px; border: 0; border-radius: 8px; background: transparent; color: #a7a7b1; cursor: pointer; }
.style-option.is-active { background: #6657ec; color: white; box-shadow: 0 4px 16px rgba(72,56,205,.4); }
.settings-card { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 19px; background: rgba(38,38,47,.94); box-shadow: 0 32px 70px rgba(0,0,0,.35); }
.settings-toolbar { position: relative; display: grid; place-items: center; height: 50px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.traffic-lights { position: absolute; left: 16px; display: flex; gap: 7px; }
.traffic-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }
.settings-body { display: grid; grid-template-columns: 152px 1fr; min-height: 350px; }
.settings-sidebar { display: flex; flex-direction: column; gap: 4px; padding: 18px 10px; border-right: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: #a8a8b2; font-size: 12px; }
.settings-sidebar span { padding: 8px 10px; border-radius: 7px; }
.settings-sidebar .selected { background: #6657ec; color: white; }
.settings-panel { padding: 28px; }
.settings-label { margin: 0 0 14px; color: #aaaab5; font-size: 12px; font-weight: 650; }
.chat-preview { min-height: 148px; margin-bottom: 22px; padding: 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #202029; transition: background .2s ease; }
.chat-line { display: grid; grid-template-columns: 38px 50px 1fr; gap: 8px; margin: 9px 0; color: #e4e4e9; font-size: 12px; line-height: 1.45; }
.chat-line time { color: #73737e; }.chat-line b { text-align: right; }.nick-one { color: #b89cff; }.nick-two { color: #6fb4ff; }
.bubbles-preview .chat-line { display: block; width: fit-content; max-width: 85%; margin: 8px 0; padding: 7px 10px; border-radius: 12px 12px 12px 4px; background: #363640; }
.bubbles-preview .chat-line:nth-child(2) { margin-left: auto; border-radius: 12px 12px 4px 12px; background: #6555df; }
.bubbles-preview time { display: none; }
.bubbles-preview b { display: block; margin-bottom: 2px; text-align: left; font-size: 10px; }
.bubbles-preview .chat-line:nth-child(2) b { color: rgba(255,255,255,.76); }
.bubbles-preview .chat-line span { display: block; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-top: 1px solid rgba(255,255,255,.07); color: #d4d4db; font-size: 12px; }
.switch { position: relative; width: 29px; height: 17px; border-radius: 999px; background: #50505a; }.switch::after { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: white; content: ""; }.switch.is-on { background: #6657ec; }.switch.is-on::after { left: 14px; }

.screenshot-section { padding-block: 132px 100px; }
.screenshot-heading { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; }
.appearance-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); color: var(--text); cursor: pointer; }
.screenshot-grid { display: grid; grid-template-columns: minmax(0, 800px) minmax(0, 340px); align-items: end; justify-content: space-between; gap: 24px; }
figure { margin: 0; }
.screenshot-grid figure { position: relative; }
.screenshot-grid img { width: 100%; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.main-shot { width: min(100%, 800px); }
.welcome-shot { width: min(100%, 340px); }
.screenshot-grid .dark-shot { display: none; }
.screenshot-grid[data-appearance="dark"] .light-shot { display: none; }
.screenshot-grid[data-appearance="dark"] .dark-shot { display: block; }
.screenshot-grid figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; }
.privacy-note { margin: 48px auto 0; color: var(--muted); font-size: 12px; text-align: center; }

.download-section { display: flex; flex-direction: column; align-items: center; padding: 96px 24px 120px; border-top: 1px solid var(--line); text-align: center; }
.download-section img { margin-bottom: 24px; border-radius: 26px; filter: drop-shadow(0 18px 22px rgba(40,43,75,.2)); }
.download-section h2 { font-size: clamp(42px, 6vw, 68px); }
.download-section > p:not(.eyebrow) { margin: 15px 0 28px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 26px max(24px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer > div { display: flex; flex-direction: column; gap: 4px; }
.site-footer nav a { padding: 5px; }.site-footer a:hover { color: var(--text); }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 75%, white); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 74px; }
  .hero-art { justify-self: center; width: min(72vw, 390px); }
  .settings-layout { grid-template-columns: 1fr; gap: 54px; }
  .screenshot-grid { grid-template-columns: 1fr; }.welcome-shot { width: min(72%, 340px); }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 58px; }.site-header nav a:not(.github-link) { display: none; }
  .hero { min-height: auto; padding-block: 70px; }.hero-summary { font-size: 17px; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .proof-strip { flex-wrap: wrap; justify-content: flex-start; gap: 15px 28px; }
  .feature-section, .screenshot-section { padding-block: 90px; }.feature-grid { grid-template-columns: 1fr; }.feature-card-wide { grid-column: auto; }.feature-card { min-height: auto; padding: 26px; }.feature-icon { margin-bottom: 30px; }
  .settings-section { padding-block: 88px; }.settings-body { grid-template-columns: 1fr; }.settings-sidebar { display: none; }.settings-panel { padding: 20px; }
  .screenshot-heading { align-items: flex-start; flex-direction: column; gap: 24px; }.welcome-shot { width: min(85%, 340px); }.site-footer { flex-direction: column; }.site-footer nav { flex-wrap: wrap; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0b10; --surface: rgba(28,29,37,.74); --surface-solid: #1b1c23; --text: #f2f2f5; --muted: #a3a5b0; --line: rgba(255,255,255,.1); --accent: #9589ff; --accent-deep: #aa9fff; --accent-soft: rgba(120,101,255,.16); --shadow: 0 32px 80px rgba(0,0,0,.38), 0 4px 12px rgba(0,0,0,.2); }
  body { background: radial-gradient(circle at 52% 15%, rgba(76, 80, 141, .35), transparent 32rem), var(--bg); }
  .site-header { border-color: rgba(255,255,255,.1); background: rgba(14,15,21,.7); }
  .feature-card-wide { background: linear-gradient(135deg, rgba(32,33,43,.94), rgba(32,30,53,.9)); }
  .capability-cloud span { background: rgba(255,255,255,.05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
