/* WortKai website. System fonts only (no Google Fonts: nothing loads from third parties). */
:root {
  --accent: #3d5afe;
  --grad: linear-gradient(135deg, #9b3df5 0%, #3d5afe 55%, #19c3f3 100%);
  --accent-soft: #e9edff;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --card: #ffffff;
  --fg: #0f172a;
  --muted: #5b6475;
  --border: #e5e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7d92ff;
    --accent-soft: #232c55;
    --bg: #0b1020;
    --bg-soft: #111729;
    --card: #161d33;
    --fg: #e6eaf5;
    --muted: #9aa3b8;
    --border: #263052;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
img {
  max-width: 100%;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

/* header */
header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo img {
  height: 44px;
  display: block;
}
.logo .dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .logo .light {
    display: none;
  }
  .logo .dark {
    display: block;
  }
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
header nav a:hover {
  color: var(--fg);
}
@media (max-width: 720px) {
  header nav a:not(.btn) {
    display: none;
  }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--fg);
  background: var(--card);
  cursor: pointer;
}
.btn.primary {
  color: #fff;
  border: none;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(61, 90, 254, 0.35);
}
.btn.primary:hover {
  filter: brightness(1.05);
}
header .btn {
  padding: 8px 16px;
  font-size: 14px;
}
header nav a.btn.primary {
  color: #fff;
}

/* hero */
.hero {
  padding: 88px 0 72px;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%);
}
.hero .eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  max-width: 820px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* demo bar */
.demo {
  margin: 56px auto 0;
  width: min(560px, 100%);
  padding: 14px 18px;
  border-radius: 999px;
  background: #0f172a;
  color: #e6eaf5;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  text-align: left;
  font-size: 15px;
}
.demo .dot {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
}
.demo .dot svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}
.demo .wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 20px;
}
.demo .wave i {
  width: 3px;
  border-radius: 2px;
  background: #19c3f3;
  animation: wave 1s ease-in-out infinite;
}
.demo .wave i:nth-child(2n) {
  animation-delay: 0.2s;
  background: #7d92ff;
}
.demo .wave i:nth-child(3n) {
  animation-delay: 0.4s;
  background: #b57bff;
}
@keyframes wave {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo .wave i {
    animation: none;
    height: 10px;
  }
}

/* sections */
section.block {
  padding: 80px 0;
}
section.alt {
  background: var(--bg-soft);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  font: 600 13px/1.5 inherit;
  background: var(--card);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  list-style: none;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* privacy strip */
.privacy-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.privacy-points div {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--card);
  border-radius: 0 14px 14px 0;
}
.privacy-points strong {
  display: block;
  margin-bottom: 4px;
}
.privacy-points span {
  color: var(--muted);
  font-size: 15px;
}

/* download */
.download {
  text-align: center;
  border-radius: 28px;
  padding: 56px 24px;
  background: var(--grad);
  color: #fff;
}
.download h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}
.download p {
  margin: 0 0 28px;
  opacity: 0.9;
}
.download .btn {
  background: #fff;
  color: #1d2a6b;
  border: none;
}
.download .small {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.85;
}
.download .small a {
  color: #fff;
}

/* faq */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 4px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}
.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a {
  color: var(--muted);
  margin-left: 18px;
}
footer a:first-child {
  margin-left: 0;
}

/* legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 80px;
}
.legal h1 {
  font-size: 36px;
  margin: 0 0 8px;
}
.legal h2 {
  font-size: 21px;
  margin: 36px 0 8px;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal .updated {
  font-size: 14px;
}
.placeholder {
  background: #fff3c4;
  color: #6b4e00;
  padding: 0 4px;
  border-radius: 4px;
}
