:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: light-dark(#f8f9fd, #10121b);
  --surface: light-dark(#fff, #171b2a);
  --soft: light-dark(#eff1fa, #171b2a);
  --text: light-dark(#151a2d, #f2f3ff);
  --muted: light-dark(#505975, #bcc3df);
  --border: light-dark(#dce1ef, #30364c);
  --accent: light-dark(#4744bd, #aeb4ff);
  --accent-hover: light-dark(#38359f, #ccd0ff);
  --status: light-dark(#15805b, #75d7b0);
  --capture-shadow: drop-shadow(0 12px 22px light-dark(rgb(0 0 0 / 16%), rgb(0 0 0 / 38%)));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
.landing {
  --header-height: 72px;
  scroll-padding-top: calc(var(--header-height) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  .landing { scroll-behavior: smooth; }
  .landing .section:target h2 { animation: section-arrival 440ms ease-out 120ms both; }
}
@keyframes section-arrival {
  from { opacity: .5; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
body { margin: 0; background: var(--background); color: var(--text); }
a { color: var(--accent); text-underline-offset: .2em; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.65; }
img { display: block; max-width: 100%; }
svg { display: block; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 3;
  padding: 10px 14px; background: var(--surface); border-radius: 8px;
}

.header { border-bottom: 1px solid var(--border); }
.landing .header {
  position: sticky; top: 0; z-index: 2;
  background: var(--background);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
@media (prefers-reduced-transparency: reduce) {
  .landing .header { background: var(--background); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.landing .nav { min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; white-space: nowrap; }
.brand img { flex: none; }
.nav nav, .footer nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.nav nav { margin-inline-start: auto; }
.nav nav a, .nav nav button, .footer a { color: var(--muted); text-decoration: none; font-size: .91rem; }
.nav nav button { background: transparent; border: 0; padding: 0; }
.nav nav a:hover, .nav nav button:hover, .footer a:hover, .footer [aria-current="page"] { color: var(--accent); }
.theme-toggle, .about-close {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text);
}
.theme-toggle svg, .about-close svg, .button svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .sun, .theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }

.about-dialog {
  width: min(420px, calc(100% - 36px)); padding: 0; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 20px 64px rgb(0 0 0 / 24%);
}
.about-dialog::backdrop, .chat-dialog::backdrop { background: rgb(14 17 30 / 38%); backdrop-filter: blur(9px); }
body:has(.about-dialog[open], .chat-dialog[open]) { overflow: hidden; }
.about-content { position: relative; padding: 36px 24px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.about-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; }
.about-close:hover { color: var(--accent); }
.about-avatar { border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.about-content h2 { font-size: 1.4rem; letter-spacing: -.035em; }
.about-content p { color: var(--muted); }
.about-content a { font-weight: 700; }

.chat-dialog {
  width: min(860px, calc(100% - 32px)); height: min(750px, calc(100dvh - 32px));
  max-width: none; max-height: none; padding: 0; overflow: hidden;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 20px 64px rgb(0 0 0 / 24%);
}
.chat-dialog-content { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.chat-dialog-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px 8px 18px; border-bottom: 1px solid var(--border);
}
.chat-dialog-bar h2 { font-size: .95rem; }
.chat-dialog-bar .about-close { position: static; }
.chat-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }

.hero {
  display: grid; grid-template-columns: 1fr minmax(0, 1fr); align-items: center;
  gap: clamp(36px, 6vw, 84px); padding-block: clamp(56px, 7vw, 98px) clamp(64px, 8vw, 110px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .73rem;
  font-weight: 800; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.hero .eyebrow { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 7px 11px; }
.status-dot, .terminal-dot { width: 7px; height: 7px; flex: none; display: inline-block; border-radius: 50%; background: var(--status); }
h1 { font-size: clamp(3.6rem, 7.4vw, 7rem); line-height: .96; letter-spacing: -.078em; }
.hero h1 { margin-block: 22px 23px; }
.hero h1 span { color: var(--accent); }
.lede { font-size: clamp(1.14rem, 1.8vw, 1.45rem); line-height: 1.46; max-width: 34ch; }
.hero-privacy { margin-top: 15px; color: var(--muted); max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 16px; min-height: 46px; border-radius: 12px; font-size: .89rem; font-weight: 700; text-decoration: none;
}
.primary { background: var(--accent); color: light-dark(#fff, #141627); border: 1px solid transparent; }
.primary[href]:hover { background: var(--accent-hover); }
.button[aria-disabled="true"] { cursor: default; }
.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.secondary:hover { border-color: var(--accent); }
.requirements { font-size: .83rem; color: var(--muted); margin-top: 14px; }

.hero-visual {
  display: grid; justify-self: center; width: min(100%, 380px); gap: 18px;
}
.visual-label {
  display: inline-flex; align-items: center; justify-self: start; gap: 8px;
  border: 1px solid var(--border); border-radius: 99px; padding: 7px 10px;
  color: var(--muted); background: var(--surface); font-size: .75rem; font-weight: 680;
}
.hero-visual img, .gallery img { width: 100%; height: auto; filter: var(--capture-shadow); }
.hero-visual figcaption { justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .84rem; }
.hero-visual figcaption span, .feature-number { color: var(--accent); font: 700 .77rem ui-monospace, SFMono-Regular, Consolas, monospace; }

.section { padding-block: clamp(56px, 7vw, 96px); }
.product { border-top: 1px solid var(--border); }
.section h2, .legal-body h2 { font-size: clamp(2.2rem, 4.8vw, 3.75rem); line-height: 1.03; letter-spacing: -.062em; }
.section h2 { margin-top: 10px; }
.section-intro { max-width: 62ch; color: var(--muted); margin-top: 17px; font-size: 1.075rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.feature { padding: 25px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.feature h3 { margin-block: 19px 9px; font-size: 1.26rem; letter-spacing: -.024em; }
.feature p, .note { color: var(--muted); }
.developers { background: var(--soft); border-block: 1px solid var(--border); }
.developer-grid, .support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 65px); align-items: start; }
.developer-grid { margin-top: 10px; }
.developer-grid h2 { margin-top: 0; }
.note { margin-top: 18px; font-size: .92rem; padding-left: 14px; border-left: 2px solid var(--accent); }
.terminal { min-width: 0; background: #141827; color: #f1f3ff; border-radius: 18px; border: 1px solid #32394e; overflow: hidden; }
.terminal-bar {
  display: flex; align-items: center; justify-content: space-between; min-height: 51px;
  padding: 8px 14px; background: #1c2334; border-bottom: 1px solid #32394e; font-size: .82rem;
}
.terminal-bar span { display: inline-flex; align-items: center; gap: 8px; }
.terminal-dot { background: #a9aefe; }
.terminal button { border: 1px solid #4a5473; border-radius: 7px; background: #2b3247; color: #f1f3ff; font-size: .8rem; padding: 5px 9px; }
.terminal button:hover { background: #3b4460; }
.terminal :focus-visible { outline-color: #bfc5ff; outline-offset: -3px; }
pre { overflow: auto; margin: 0; padding: 18px; font: .83rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
code { font: inherit; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.gallery figure {
  display: grid; justify-items: center; align-content: start; gap: 20px;
}
.gallery img { max-width: 310px; }
.gallery figcaption { display: grid; gap: 5px; text-align: center; }
.gallery figcaption span { font-size: .92rem; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.support .text-link { margin-top: 18px; }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details:first-child { padding-top: 0; }
summary { cursor: pointer; font-weight: 680; padding-block: 6px; }
details p { color: var(--muted); padding-top: 8px; }
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 24px; }
.footer .brand { color: var(--text); }
.footer p { color: var(--muted); font-size: .88rem; }
.footer p a { text-decoration: underline; }

.legal { padding-block: 58px 85px; }
.legal-heading { padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.legal h1 { margin-top: 22px; font-size: clamp(2.9rem, 6vw, 5rem); line-height: 1; }
.legal-layout { display: grid; grid-template-columns: minmax(180px, 235px) minmax(0, 700px); gap: clamp(28px, 6vw, 74px); margin-top: 36px; align-items: start; }
.contents { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; }
.contents a { font-size: .9rem; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.legal-body { display: grid; gap: 30px; }
.legal-body h2 { font-size: 1.62rem; letter-spacing: -.035em; line-height: 1.2; }
.legal-body p { margin-top: 9px; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 850px) {
  .hero { gap: 30px; }
  .feature { padding: 20px; }
}
@media (max-width: 700px) {
  .landing { --header-height: 62px; }
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 62px; gap: 12px; }
  .nav nav { gap: 14px; }
  .hero, .developer-grid, .support, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 48px 54px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { gap: 24px; }
  .legal { padding-block: 40px 60px; }
}
@media (max-width: 450px) {
  .nav nav a:not(:last-of-type) { display: none; }
  .landing { --header-height: 96px; }
  .landing .nav {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px; padding-block: 8px;
  }
  .landing .nav nav { grid-column: 1 / -1; grid-row: 2; margin-inline-start: 0; }
  .landing .nav nav a { display: inline; }
  .landing .theme-toggle { grid-column: 2; grid-row: 1; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  .chat-dialog { width: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 16px; }
}
