/* Roblogger — public marketing site */
:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-deep: #0b1020;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --accent: #f59e0b;
  --ok: #10b981;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .8rem; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 650; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(79, 70, 229, .45); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--body); font-weight: 550; font-size: .96rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: .4rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 70% -10%, rgba(124,58,237,.18), transparent 60%), radial-gradient(900px 500px at 10% 0%, rgba(79,70,229,.16), transparent 55%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--body); max-width: 36ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-trust { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }
.hero-visual { position: relative; }

/* Generic image placeholder (swap for real images) */
.imgph { position: relative; border-radius: var(--radius); background: linear-gradient(135deg, #eef2ff, #faf5ff); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .85rem; font-weight: 600; min-height: 220px; overflow: hidden; box-shadow: var(--shadow); }
.imgph-tag { position: absolute; bottom: 10px; right: 12px; background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 6px; font-size: .72rem; }
.hero-visual .imgph { min-height: 360px; }

/* Logos / social proof strip */
.proof { padding: 28px 0; border-bottom: 1px solid var(--line); background: #fff; }
.proof-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: .7; }
.proof-row span { font-weight: 750; color: var(--muted); font-size: 1.05rem; letter-spacing: .02em; }

/* Sections */
section.block { padding: 84px 0; }
section.block.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }

/* Pain points */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pain-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pain-card .imgph { border-radius: 0; border: none; border-bottom: 1px solid var(--line); min-height: 168px; box-shadow: none; }
.pain-card .body { padding: 22px 22px 26px; }
.pain-card h3 { display: flex; align-items: center; gap: .5rem; }
.pain-card .pain { color: #b91c1c; font-weight: 600; font-size: .95rem; }
.pain-card .fix { color: var(--ink); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 800; margin-bottom: 14px; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-text { order: 2; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: .7rem; color: var(--body); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(16,185,129,.12); color: var(--ok); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #1e1b4b, #312e81); color: #e2e8f0; border-radius: 22px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d2fe; max-width: 50ch; margin: 0 auto 1.6rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg-soft); transition: border-color .12s, box-shadow .12s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.flash-ok { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #047857; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 550; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .imgph { border-radius: 0; border: none; min-height: 180px; box-shadow: none; }
.post-card img.cover { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { margin-bottom: .4rem; }
.post-card .excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .meta { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state .imgph { max-width: 380px; margin: 0 auto 24px; }

/* Article (blog post detail) */
.article { max-width: 760px; margin: 0 auto; }
.article .kicker { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.article-body { font-size: 1.08rem; color: var(--body); }
.article-body h2 { margin-top: 1.8em; font-size: 1.5rem; }
.article-body img { max-width: 100%; border-radius: 12px; }
.article-body a { text-decoration: underline; }

/* Success stories */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); margin-bottom: 28px; }
.story.reverse .story-img { order: 2; }
.story .stat { font-size: 2.4rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.story blockquote { margin: 1rem 0 0; padding-left: 18px; border-left: 3px solid var(--primary); color: var(--ink); font-style: italic; }

/* Footer */
.footer { background: var(--bg-deep); color: #94a3b8; padding: 56px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer a { color: #cbd5e1; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid, .story, .story.reverse .story-img { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .pain-grid, .steps, .post-grid { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-text { order: 0; }
  .story.reverse .story-img { order: 0; }
}
@media (max-width: 620px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-cta):not(.btn) { display: none; }
  .pain-grid, .steps, .post-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  section.block { padding: 60px 0; }
}
