:root {
  --canvas: #f5f5f0;
  --paper: #ffffff;
  --ink: #14213d;
  --ink-2: #25324b;
  --muted: #677186;
  --line: #dcded9;
  --line-dark: #c8cbc4;
  --blue: #2f6fed;
  --blue-dark: #1854ca;
  --blue-soft: #e8efff;
  --violet: #7857df;
  --violet-soft: #eeeafd;
  --green: #269b66;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 70px rgba(20, 33, 61, .10);
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(20, 33, 61, .04) .7px, transparent .7px); background-size: 18px 18px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.skip-link { position: fixed; left: 14px; top: 10px; z-index: 99; transform: translateY(-150%); padding: 9px 13px; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.site-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand, .footer-brand { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -.07em; }
.brand-symbol, .footer-brand span { color: var(--blue); }
.site-header nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.site-header nav a { padding: 9px 13px; border-radius: 999px; color: var(--muted); transition: color .2s ease, background .2s ease; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.72); }
.site-header nav .nav-feedback { margin-left: 10px; padding-inline: 16px; color: white; background: var(--ink); }
.site-header nav .nav-feedback:hover { color: white; background: var(--ink-2); }
.nav-toggle { display: none; padding: 8px 13px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }

h1, h2, h3 { margin-top: 0; font-family: var(--font-display); line-height: 1.05; letter-spacing: -.045em; }
h1 { margin-bottom: 26px; font-size: clamp(54px, 8vw, 104px); }
h1 span { color: var(--blue); }
h2 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 58px); }
h3 { font-size: 22px; }
p { margin-top: 0; }
.eyebrow { margin-bottom: 16px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(38,155,102,.12); vertical-align: 1px; }
.hero-lead { max-width: 730px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.7; }
.hero-lead strong { color: var(--ink); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; min-height: 50px; max-width: 100%; align-items: center; justify-content: center; gap: 9px; padding: 10px 19px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; line-height: 1.2; text-align: center; white-space: normal; overflow-wrap: anywhere; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--blue); color: white; box-shadow: 0 12px 24px rgba(47,111,237,.18); }
.button--primary:hover { background: var(--blue-dark); box-shadow: 0 16px 30px rgba(47,111,237,.25); }
.button--quiet { border-color: var(--line-dark); background: rgba(255,255,255,.35); }
.button--quiet:hover { background: white; }
.button--light { background: white; color: var(--ink); }
.button--outline-light { border-color: rgba(255,255,255,.35); color: white; }
.microcopy { margin: 17px 0 0; color: var(--muted); font-size: 13px; }

.home-hero { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); align-items: center; gap: 90px; padding: 80px 0 92px; }
.home-hero .hero-lead { margin-bottom: 30px; }
.hero-note { align-self: end; margin-bottom: 35px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.56); box-shadow: 0 18px 50px rgba(20,33,61,.06); }
.hero-note > p { margin-bottom: 22px; font-family: var(--font-display); font-weight: 700; }
.hero-note ul { margin: 0; padding: 0; list-style: none; }
.hero-note li { display: flex; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.hero-note li span { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .1em; }

.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); align-items: end; gap: 80px; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.72); }
.product-card__visual { min-height: 300px; display: flex; position: relative; align-items: flex-end; justify-content: center; overflow: hidden; padding: 70px 28px 0; background: var(--blue-soft); }
.product-card--violet .product-card__visual { background: var(--violet-soft); }
.product-card__visual::before { content: ""; position: absolute; width: 420px; height: 420px; top: -250px; right: -170px; border: 1px solid rgba(47,111,237,.22); border-radius: 50%; box-shadow: 0 0 0 50px rgba(47,111,237,.03), 0 0 0 100px rgba(47,111,237,.025); }
.product-card__visual img { position: relative; width: 92%; max-height: 235px; object-fit: cover; object-position: top; border: 7px solid rgba(255,255,255,.72); border-bottom: 0; border-radius: 13px 13px 0 0; box-shadow: 0 22px 40px rgba(20,33,61,.18); transition: transform .35s ease; }
.product-card__visual:hover img { transform: translateY(-5px); }
.product-card__label { position: absolute; top: 22px; left: 24px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--blue-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card__body { padding: 32px; }
.product-card__body h3 { margin-bottom: 12px; font-size: 42px; }
.product-card__body > p:not(.eyebrow) { min-height: 78px; color: var(--muted); line-height: 1.7; }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--blue); font-weight: 700; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.approach { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 110px 0; border-top: 1px solid var(--line); }
.approach-intro > p:last-child { max-width: 460px; color: var(--muted); font-size: 17px; }
.principles article { position: relative; padding: 26px 42px 26px 70px; border-top: 1px solid var(--line); }
.principles article:last-child { border-bottom: 1px solid var(--line); }
.principles article > span { position: absolute; left: 0; top: 29px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.principles h3 { margin-bottom: 8px; }
.principles p { margin-bottom: 0; color: var(--muted); }
.feedback-band, .download-band { display: flex; justify-content: space-between; align-items: center; gap: 50px; margin: 24px 0 100px; padding: 46px 50px; border-radius: var(--radius-lg); background: var(--ink); color: white; }
.feedback-band .eyebrow, .download-band .eyebrow { color: #90b7ff; }
.feedback-band h2, .download-band h2 { max-width: 700px; margin-bottom: 0; font-size: clamp(30px, 4vw, 46px); }

.tool-hero { min-height: 650px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 75px; padding: 85px 0 72px; }
.tool-hero--copy-only { min-height: 570px; grid-template-columns: 1fr; }
.tool-hero--copy-only .tool-hero__copy { max-width: 920px; }
.tool-hero h1 { font-size: clamp(54px, 7.3vw, 88px); }
.tool-hero .hero-lead { margin-bottom: 28px; }
.tool-hero--violet h1 span { color: var(--violet); }
.tool-hero--violet .eyebrow { color: var(--violet); }
.app-preview { overflow: hidden; margin: 0; padding: 10px 10px 16px; border: 1px solid #cbd8f0; border-radius: 20px; background: #dfe9fa; box-shadow: var(--shadow); transform: rotate(1deg); }
.app-preview--violet { border-color: #d7ceed; background: #e5dff7; transform: rotate(-1deg); }
.app-preview__top { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 5px; }
.app-preview__top span { width: 8px; height: 8px; border-radius: 50%; background: rgba(20,33,61,.2); }
.app-preview__top b { margin-left: auto; color: var(--ink-2); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.app-preview img { display: block; width: 100%; aspect-ratio: 1.65 / 1; object-fit: cover; object-position: top; border-radius: 11px; background: white; }
.app-preview figcaption { padding: 13px 8px 0; color: #56627a; font-size: 12px; }
.page-nav { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 5px; position: sticky; top: 0; z-index: 15; border-block: 1px solid var(--line); background: rgba(245,245,240,.9); backdrop-filter: blur(14px); }
.page-nav a { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.page-nav a:hover { background: white; color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 230px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article > span { display: block; margin-bottom: 45px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.tool-hero--violet ~ .page-nav + .section .feature-grid article > span { color: var(--violet); }
.feature-grid h3 { margin-bottom: 11px; }
.feature-grid p { margin-bottom: 0; color: var(--muted); }
.content-section { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 90px; min-width: 0; padding: 105px 0; border-top: 1px solid var(--line); }
.content-section > *, .setup-panels, .setup-panels > details, .setup-body, .release-card, .faq-list { min-width: 0; }
.content-section p, .content-section li, .content-section small, .release-card, .faq-list { overflow-wrap: anywhere; }
.content-section__intro { position: sticky; top: 94px; align-self: start; }
.content-section__intro > p:last-child { color: var(--muted); font-size: 17px; }
.steps > ol { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 20px; padding: 23px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-weight: 700; }
.steps li strong { font-family: var(--font-display); font-size: 19px; }
.steps li p { margin: 4px 0 0; color: var(--muted); }
.steps a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.setup-panels { border-top: 1px solid var(--line); }
.setup-panels > details { border-bottom: 1px solid var(--line); }
.setup-panels > details > summary { display: flex; gap: 18px; align-items: center; padding: 24px 2px; list-style: none; cursor: pointer; }
.setup-panels > details > summary::-webkit-details-marker { display: none; }
.setup-panels > details > summary > span { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.setup-panels summary div { display: grid; min-width: 0; }
.setup-panels summary strong { font-family: var(--font-display); font-size: 19px; }
.setup-panels summary small { color: var(--muted); }
.setup-panels > details > summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 400; }
.setup-panels > details[open] > summary::after { content: "−"; }
.setup-body { padding: 4px 0 38px 35px; }
.instruction-list { margin: 0 0 28px; padding-left: 22px; color: var(--muted); }
.instruction-list li { margin: 10px 0; padding-left: 5px; }
.instruction-list strong { color: var(--ink); }
.setup-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.setup-gallery figure { margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.setup-gallery img { display: block; width: 100%; height: 120px; border-radius: 7px; object-fit: cover; object-position: top; }
.setup-gallery figcaption { padding: 8px 2px 2px; color: var(--muted); font-size: 11px; }
.screenshot-hint { display: flex; max-width: 100%; align-items: flex-start; gap: 8px; margin: 4px 0 14px; color: var(--blue); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.screenshot-hint span { width: 24px; height: 24px; display: grid; flex: 0 0 24px; place-items: center; border-radius: 50%; background: var(--blue-soft); }
.screenshot-trigger { display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; position: relative; border: 0; border-radius: 7px; background: transparent; cursor: zoom-in; }
.screenshot-trigger::after { content: "Enlarge"; display: block; width: max-content; margin: 8px 0 0 auto; padding: 5px 9px; border-radius: 7px; background: var(--ink); color: white; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.screenshot-trigger:focus-visible { outline: 3px solid rgba(47,111,237,.35); outline-offset: 3px; }
.screenshot-trigger img { transition: transform .25s ease; }
.screenshot-trigger:hover img { transform: scale(1.025); }
.screenshot-showcase { margin-top: 42px; }
.screenshot-showcase figure { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 16px 40px rgba(20,33,61,.07); }
.screenshot-showcase .screenshot-trigger { border-radius: 12px; }
.screenshot-showcase img { display: block; width: 100%; height: auto; border-radius: 12px; }
.screenshot-showcase figcaption { padding: 10px 4px 2px; color: var(--muted); font-size: 12px; }
.command-box { margin: 18px 0; padding: 16px; border-radius: var(--radius-sm); background: var(--ink); color: white; }
.command-box span { display: block; margin-bottom: 9px; color: #90b7ff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.command-box code { display: block; max-width: 100%; color: #dce7ff; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.note { padding: 14px 16px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: var(--ink-2); font-size: 14px; }
.troubleshooting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.troubleshooting-grid article { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.65); }
.troubleshooting-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.release-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding: 105px 0; border-top: 1px solid var(--line); }
.release-section > div:first-child > p:last-child { max-width: 440px; color: var(--muted); }
.release-card { padding: 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.6); }
.release-card__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.release-card__head b { color: var(--green); }
.release-card > p { display: grid; grid-template-columns: 75px 1fr; gap: 20px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.release-card > p strong { color: var(--ink); }
.hash-details { padding: 18px 0; }
.hash-details summary { cursor: pointer; font-weight: 700; }
.hash-details p { display: grid; gap: 8px; color: var(--muted); }
.hash-details code { display: block; padding: 10px 12px; border-radius: 8px; background: #edf0f5; color: var(--ink-2); overflow-wrap: anywhere; }
.faq-section { padding: 105px 0; border-top: 1px solid var(--line); }
.faq-section .section-heading { grid-template-columns: 1fr; margin-bottom: 32px; }
.faq-list { max-width: 850px; margin-left: auto; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 45px 22px 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 7px; top: 19px; font-size: 22px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 700px; padding: 0 50px 20px 0; color: var(--muted); }
.faq-list code { padding: 2px 5px; border-radius: 5px; background: #e8ebef; }
.license-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; padding: 105px 0; border-top: 1px solid var(--line); }
.license-section > div:first-child > p:last-child { color: var(--muted); }
.license-list { border-top: 1px solid var(--line); }
.license-list a { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line); }
.license-list span { font-family: var(--font-display); font-weight: 700; }
.license-list small { color: var(--muted); }
.license-list b { color: var(--blue); }
.download-band--violet { background: #29213e; }
.download-band--violet .eyebrow { color: #c5b6ff; }

.site-footer { display: grid; grid-template-columns: .4fr 1fr auto; gap: 30px; align-items: start; padding: 48px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--ink); }
.site-footer p { margin-bottom: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--blue); }
.copyright { grid-column: 2 / -1; padding-top: 22px; border-top: 1px solid var(--line); }
.image-viewer { width: min(1100px, calc(100vw - 36px)); max-height: calc(100vh - 36px); margin: auto; padding: 12px; overflow: auto; border: 0; border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.image-viewer::backdrop { background: rgba(9,16,31,.78); backdrop-filter: blur(4px); }
.image-viewer form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.image-viewer__close { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; }
.image-viewer__close span { font-size: 20px; font-weight: 400; }
.image-viewer > img { display: block; width: 100%; max-width: none; height: auto; max-height: calc(100vh - 125px); margin: 0 auto; border-radius: 10px; object-fit: contain; }
.image-viewer > p { margin: 10px 6px 2px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 960px) {
  .home-hero, .tool-hero, .approach, .content-section, .release-section, .license-section { grid-template-columns: 1fr; gap: 48px; }
  .home-hero { min-height: auto; padding: 90px 0; }
  .hero-note { width: min(100%, 520px); margin: 0; }
  .tool-hero { padding-top: 70px; }
  .app-preview { width: min(100%, 680px); margin-inline: auto; }
  .content-section__intro { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feedback-band, .download-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 740px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .site-header { height: 72px; }
  .nav-toggle { display: block; }
  .site-header nav { display: none; position: absolute; top: 63px; right: 0; left: 0; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
  .site-header nav.open { display: flex; }
  .site-header nav .nav-feedback { margin: 4px 0 0; text-align: center; }
  h1 { font-size: clamp(48px, 15vw, 70px); }
  .home-hero, .tool-hero { padding: 65px 0; }
  .section, .approach, .content-section, .release-section, .faq-section, .license-section { padding: 75px 0; }
  .section-heading, .product-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-card__visual { min-height: 250px; }
  .product-card__body > p:not(.eyebrow) { min-height: 0; }
  .page-nav { justify-content: flex-start; overflow-x: auto; padding: 0 8px; }
  .page-nav a { white-space: nowrap; }
  .tool-hero .button-row { align-items: stretch; flex-direction: column; }
  .tool-hero .button-row .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; }
  .feature-grid article > span { margin-bottom: 28px; }
  .setup-body { padding-left: 0; }
  .setup-gallery, .troubleshooting-grid { grid-template-columns: 1fr; }
  .setup-gallery img { height: auto; }
  .screenshot-trigger::after { opacity: 1; transform: none; }
  .image-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 8px; border-radius: 12px; }
  .image-viewer > img { width: 100%; max-height: none; }
  .release-card { padding-inline: 18px; }
  .release-card > p { grid-template-columns: 58px 1fr; gap: 12px; }
  .license-list a { grid-template-columns: 1fr auto; }
  .license-list small { grid-column: 1; }
  .license-list b { grid-column: 2; grid-row: 1 / span 2; }
  .feedback-band, .download-band { margin-bottom: 70px; padding: 32px 24px; }
  .site-footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}

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