:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #10b981;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-by {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.footer-by {
  color: #60a5fa;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* HERO */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(600px 300px at 90% 10%, rgba(16, 185, 129, 0.07), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid #bfdbfe;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* WORD MOCKUP WINDOW */
.word-window {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.word-titlebar {
  background: #1e3a8a;
  color: #e2e8f0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.word-tabs {
  background: #f1f5f9;
  padding: 6px 12px 0;
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.word-tabs span {
  padding: 4px 6px 6px;
}

.word-tabs .active-tab {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 800;
}

.word-ribbon {
  background: #fff;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
}

.ribbon-grp {
  display: flex;
  gap: 6px;
  padding-right: 10px;
  border-right: 1px solid #e2e8f0;
}

.ribbon-grp:last-child {
  border-right: none;
  padding-right: 0;
}

.ribbon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  user-select: none;
}

.ribbon-btn .rb-ico {
  font-size: 13px;
  line-height: 1.2;
}

.ribbon-btn.primary-chip {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  cursor: pointer;
}

.ribbon-btn.primary-chip:hover {
  background: #dbeafe;
}

.demo-bar {
  background: #f8fafc;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
}

.demo-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.demo-toggle {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
}

.toggle-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.word-canvas {
  background: #e2e8f0;
  padding: 16px;
}

.paper {
  background: #fff;
  padding: 22px 24px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  min-height: 270px;
  position: relative;
}

.paper.mode-before .doc-after { display: none; }
.paper.mode-after .doc-before { display: none; }

/* Messy before state */
.messy-h1 { font-family: Calibri, Arial, sans-serif; color: #3b82f6; font-size: 15px; margin: 0 0 8px; }
.messy-h2 { font-family: Arial, sans-serif; color: #334155; font-size: 12.5px; margin: 0 0 6px; }
.messy-p { font-family: Calibri, sans-serif; font-size: 12px; color: #374151; line-height: 1.2; margin: 0 0 12px; white-space: pre-wrap; }
.messy-p2 { font-family: Arial, sans-serif; font-size: 11px; color: #4b5563; line-height: 1.15; margin: 0 0 14px; }
.web-bg { background: #e5e7eb; padding: 2px 3px; }
.messy-ref { font-family: Calibri, sans-serif; font-size: 11.5px; color: #374151; margin: 0; }

/* Clean after state (Times New Roman 12 simulation) */
.doc-after {
  font-family: "Times New Roman", Times, serif;
  color: #000;
  font-size: 13.5px;
  line-height: 1.55;
}
.clean-h1 { text-align: center; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.clean-h2 { font-weight: 700; margin: 0 0 4px; }
.clean-p { text-align: justify; text-indent: 24px; margin: 0 0 4px; }
.clean-ref { text-align: justify; padding-left: 24px; text-indent: -24px; line-height: 1.3; margin: 10px 0 0; }
.clean-pagenum { text-align: center; font-size: 12px; margin-top: 12px; color: #111; }

/* SECTIONS */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* GRIDS */
.pain-grid, .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.pain-card, .feature-card, .step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.section-alt .pain-card,
.section-alt .step-card {
  background: var(--bg);
}

.pain-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.feat-badge, .step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.step-num {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
}

.pain-card h3, .feature-card h3, .step-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.pain-card p, .feature-card p, .step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  background: #eff6ff;
  color: #1e40af;
  padding: 1px 5px;
  border-radius: 5px;
}

/* PRICING */
.pricing-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

.pricing-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pricing-top h2 {
  margin: 10px 0 4px;
  font-size: 26px;
}

.pricing-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.price-strike {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.price-now {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: #1e293b;
}

.compat-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
}

/* FAQ */
.faq-wrap {
  max-width: 780px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* REQUEST FORMAT BANNER */
.request-banner {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.request-banner strong {
  display: block;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 3px;
}

.request-banner span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 720px;
}

/* YURIPEDIA BRAND CARD */
.yuripedia-section {
  padding: 48px 0;
  background: var(--bg);
}

.yuripedia-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.yuri-logo {
  flex-shrink: 0;
}

.yuri-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}

.yuri-text h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.yuri-text p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .yuripedia-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* FOOTER */
.footer {
  padding: 36px 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer .brand {
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 6px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

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

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .pain-grid, .feature-grid, .steps-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
