:root {
  --bg: #0b0b10;
  --panel: #15151d;
  --panel-2: #1b1b25;
  --ink: #f2f3f7;
  --muted: #a0a4b8;
  --line: #26263a;
  --red: #ff0a3c;
  --pink: #ff2d78;
  --gradient: linear-gradient(120deg, #ff0a3c, #ff2d78);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* letterbox motif: thin cinematic bars at the very top */
.brand-strip { height: 8px; background: var(--gradient); }

/* nav */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
}
.nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.nav .logo img { width: 34px; height: auto; border-radius: 8px; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; margin-left: 18px; }
.nav a.navlink:hover { color: var(--ink); }
.langsel {
  margin-left: 18px;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.langsel:hover { border-color: var(--pink); }

/* hero */
.hero { text-align: center; padding: 56px 0 32px; position: relative; }
.hero::before {
  content: "";
  position: absolute; inset: -80px 0 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 10, 60, 0.18), transparent 70%);
  pointer-events: none;
}
.hero .icon { width: 96px; height: auto; filter: drop-shadow(0 10px 28px rgba(255, 10, 60, 0.45)); }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 20px;
}
.hero .tagline {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  margin-top: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .pitch { max-width: 620px; margin: 16px auto 0; color: var(--muted); font-size: 1.05rem; }

.cta-row { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 14px 28px;
  font-weight: 800; font-size: 1.02rem; text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:hover { transform: scale(1.045); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px rgba(255, 10, 60, 0.35); }
.btn-secondary { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.cta-note { margin-top: 14px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }

/* screenshots */
.shot { padding: 36px 0 8px; text-align: center; }
.shot img { border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); border: 1px solid var(--line); }
.shot figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 14px; }

/* sections */
.section { padding: 56px 0 8px; }
.section-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; text-align: center; letter-spacing: -0.01em; }
.section-lede { text-align: center; color: var(--muted); max-width: 560px; margin: 10px auto 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.feature .k {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase; margin-bottom: 8px;
}
.feature h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.96rem; }
kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; font-family: inherit; font-size: 0.88em; font-weight: 700;
}

/* works-on strip */
.works { text-align: center; }
.works-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.works-strip span {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: 0.95rem;
}
.works-strip span.more { color: var(--muted); border-style: dashed; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 0.97rem; }
.faq-item a { color: var(--pink); }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 30px; }
.blog-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; text-decoration: none; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.blog-card h3 { color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.blog-card p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; flex: 1; }
.blog-card .read { color: var(--pink); font-weight: 800; font-size: 0.9rem; margin-top: 14px; }
.all-link { display: block; text-align: center; margin-top: 26px; color: var(--pink); font-weight: 800; text-decoration: none; }
.all-link:hover { text-decoration: underline; }

/* blog index */
.blog-index { max-width: 820px; margin: 0 auto; padding: 40px 24px 24px; }
.blog-index h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; text-align: center; }
.blog-index .lede { text-align: center; color: var(--muted); margin-top: 10px; }
.lang-group { margin-top: 44px; }
.lang-group > h2 {
  font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 16px 4px; text-decoration: none; }
.post-list a strong { color: var(--ink); font-size: 1.02rem; font-weight: 800; }
.post-list a span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 3px; }
.post-list a:hover strong { color: var(--pink); }

/* article prose */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 24px; }
.crumbs { font-size: 0.9rem; margin-bottom: 22px; }
.crumbs a { color: var(--pink); text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }
.article h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.article .hero-img { margin: 28px 0 8px; }
.article .hero-img img { border-radius: 16px; border: 1px solid var(--line); width: 100%; }
.prose { margin-top: 18px; }
.prose h2 { font-size: 1.45rem; font-weight: 800; margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin: 26px 0 8px; }
.prose p { margin: 14px 0; color: #cfd2df; }
.prose li { color: #cfd2df; margin: 6px 0; }
.prose ul, .prose ol { padding-left: 26px; margin: 14px 0; }
.prose a { color: var(--pink); }
.prose strong { color: var(--ink); }
.prose img { border-radius: 14px; border: 1px solid var(--line); margin: 10px 0; }
.prose figure { margin: 22px 0; }
.prose figcaption { color: var(--muted); font-size: 0.88rem; text-align: center; margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--pink); padding: 4px 0 4px 18px; margin: 18px 0; color: var(--muted); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--panel); color: var(--ink); font-weight: 800; white-space: nowrap; }
.prose td { color: #cfd2df; }
.prose code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 0.9em; }

/* CTA panel inside articles + landing bottom */
.cta-panel {
  background: linear-gradient(140deg, rgba(255, 10, 60, 0.14), rgba(255, 45, 120, 0.07));
  border: 1px solid rgba(255, 45, 120, 0.35);
  border-radius: 20px;
  padding: 30px 28px;
  margin: 40px 0 8px;
  text-align: center;
}
.cta-panel img.cta-icon { width: 64px; height: auto; border-radius: 14px; }
.cta-panel h2, .cta-panel h3 { font-size: 1.35rem; font-weight: 800; margin-top: 12px; }
.cta-panel p { color: var(--muted); max-width: 520px; margin: 10px auto 0; }
.cta-panel .cta-row { margin-top: 20px; }

/* related */
.related { margin-top: 44px; }
.related h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }

/* language switcher */
.langs { text-align: center; padding: 34px 0 0; }
.langs a {
  display: inline-block; color: var(--muted); text-decoration: none; font-weight: 700;
  font-size: 0.9rem; margin: 4px 10px;
}
.langs a:hover, .langs a.active { color: var(--pink); }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 34px 0 40px; text-align: center; font-size: 0.95rem; color: var(--muted); }
footer .links { margin-bottom: 10px; }
footer .links a { color: var(--ink); text-decoration: none; font-weight: 700; margin: 0 12px; }
footer .links a:hover { color: var(--pink); }

@media (max-width: 640px) {
  .nav a.navlink { margin-left: 12px; font-size: 0.88rem; }
  .hero { padding-top: 40px; }
}
