:root {
  --ink: #151716;
  --muted: #65706c;
  --soft: #f6f8f5;
  --paper: #ffffff;
  --line: #dfe6e1;
  --green: #f15f3a;
  --green-2: #fff0e8;
  --teal: #6f45d7;
  --amber: #f59b3a;
  --rose: #d44f3a;
  --shadow: 0 22px 70px rgba(29, 45, 38, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

kbd,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

kbd {
  display: inline-block;
  padding: 0.08rem 0.36rem;
  border: 1px solid #cfd8d2;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font-size: 0.88em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem max(1.25rem, calc((100vw - 1180px) / 2));
  background: rgba(246, 248, 245, 0.9);
  border-bottom: 1px solid rgba(21, 23, 22, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(111, 69, 215, 0.18);
}

.top-nav,
.header-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.top-nav {
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.header-actions {
  font-weight: 700;
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(241, 95, 58, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #d94e2d;
  box-shadow: 0 16px 34px rgba(241, 95, 58, 0.24);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.small {
  min-height: 36px;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

.section,
.section-band,
.cta-band,
.site-footer {
  width: min(1180px, calc(100vw - 2.5rem));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3.2rem, 7vw, 6.5rem) 0 4rem;
}

.hero h1,
.section-heading h2,
.split h2,
.cta-band h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.lead {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1.5rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-row li {
  padding: 0.42rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #43504a;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-visual {
  position: relative;
  display: grid;
  gap: 1rem;
}

.window-frame,
.console-strip,
.feature-grid article,
.proof-list div,
.privacy-grid article,
.language-table,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.window-frame {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.85rem 1rem;
  background: #edf2ee;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--rose);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.typing-demo {
  min-height: 330px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background:
    linear-gradient(90deg, rgba(111, 69, 215, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(111, 69, 215, 0.055) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.typing-demo p {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.muted-line {
  color: #9aa5a0;
  text-decoration: line-through;
}

.fixed-line {
  margin-top: 0.35rem !important;
  color: var(--ink);
  font-weight: 800;
}

.correction-badge {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  background: var(--green-2);
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.console-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(29, 45, 38, 0.08);
}

.console-strip span {
  padding: 0.85rem;
  background: #fbfcfb;
  color: #46524d;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-heading h2,
.split h2,
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p:not(.eyebrow),
.split p,
.cta-band p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-grid,
.privacy-grid,
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article,
.privacy-grid article,
.shortcut-grid article {
  padding: 1.25rem;
}

.feature-grid h3,
.privacy-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.feature-grid p,
.privacy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.shortcuts {
  padding-top: 2.5rem;
}

.shortcut-grid article {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.shortcut-grid kbd {
  width: fit-content;
  color: var(--green);
  border-color: rgba(241, 95, 58, 0.24);
  background: var(--green-2);
  font-weight: 850;
}

.shortcut-grid strong {
  font-size: 1.02rem;
}

.shortcut-grid span {
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.proof-list div {
  padding: 1rem;
}

.proof-list strong,
.proof-list span {
  display: block;
}

.proof-list span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.language-section {
  padding-top: 2.5rem;
}

.language-table {
  overflow: hidden;
}

.language-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.language-table div + div {
  border-top: 1px solid var(--line);
}

.language-table span {
  color: var(--muted);
}

.faq {
  max-width: 900px;
}

.faq details {
  padding: 0 1.1rem;
}

.faq details + details {
  margin-top: 0.8rem;
}

.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 850;
}

.faq p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.cta-band {
  margin-top: 1rem;
  margin-bottom: 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius);
  background: #24124d;
  color: #fff;
  box-shadow: 0 22px 70px rgba(60, 29, 126, 0.18);
}

.cta-band .eyebrow {
  color: #ffb06b;
}

.cta-band p {
  max-width: 720px;
  color: #efe9ff;
}

.cta-band .button {
  margin-top: 1.5rem;
  background: #fff;
  color: var(--green);
  border-color: #fff;
}

.version-tag {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #efe9ff;
  opacity: 0.75;
}

.download-note {
  max-width: 560px;
  margin: 1rem 0 1.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.cta-band .download-note {
  margin-bottom: 0;
}

.download-note code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.92em;
}

.download-note a {
  color: inherit;
  text-decoration: underline;
}

.cta-band .download-note,
.download-note.on-dark {
  color: #efe9ff;
  opacity: 0.85;
}

.cta-band .download-note code,
.download-note.on-dark code {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 0.3rem 0 0;
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-visual {
    max-width: 720px;
  }

  .feature-grid,
  .privacy-grid,
  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2rem;
  }

  .feature-grid,
  .privacy-grid,
  .shortcut-grid,
  .proof-list,
  .console-strip {
    grid-template-columns: 1fr;
  }

  .language-table div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
