:root {
  --bg: #0b0d12;
  --surface: #131722;
  --surface-alt: #1a2030;
  --border: #262f45;
  --text: #eef2ff;
  --text-muted: #a6b1cc;
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --swipeclean: #06b6d4;
  --studycoach: #818cf8;
  --wordpulse: #34d399;
  --radius: 16px;
  --max-w: 1040px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #475569;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --swipeclean: #0891b2;
    --studycoach: #4f46e5;
    --wordpulse: #059669;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text) !important;
}

main {
  padding: 36px 0 72px;
}

.breadcrumbs {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  margin-bottom: 32px;
}

.hero-app {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 640px) {
  .hero-app {
    grid-template-columns: 1fr;
  }
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}

.app-icon-sm {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.accent-swipeclean {
  color: var(--swipeclean);
}

.accent-studycoach {
  color: var(--studycoach);
}

.accent-wordpulse {
  color: var(--wordpulse);
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 36px 0 14px;
}

h3 {
  font-size: 1.12rem;
  margin: 22px 0 8px;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text) !important;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card h3 {
  margin: 0;
}

.section-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 24px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.93rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

ul.clean-list,
ol.clean-list {
  padding-left: 22px;
  margin: 0 0 18px;
}

ul.clean-list li,
ol.clean-list li {
  margin-bottom: 8px;
}

.updated-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

/* Interactive Mini-Tools */
.tool-box {
  background: var(--surface);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 760px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
}

.tool-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent-strong);
  cursor: pointer;
}

.tool-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 0.96rem;
}

.tool-output {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.big-stat {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 12px;
  color: var(--text);
}

.neon-box {
  border-color: color-mix(in srgb, var(--wordpulse) 45%, var(--border));
}

.neon-letters {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--wordpulse);
  padding: 16px 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

