/* ============ Reset & base ============ */
:root {
  --orange: #ff7a1a;
  --orange-dark: #e8630a;
  --ink: #1a1d24;
  --muted: #6b7280;
  --bg: #faf9f7;
  --card: #ffffff;
  --blue: #4f7cff;
  --green: #21b573;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(26, 29, 36, 0.06);
  --shadow-hover: 0 18px 40px rgba(26, 29, 36, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,29,36,0.06);
}
.header-inner { display: flex; align-items: center; height: 72px; }
.logo { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: var(--orange); }
.logo i { font-style: normal; color: var(--ink); }
.nav { display: flex; gap: 34px; margin-left: auto; margin-right: 36px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--orange); }
.header-cta {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--ink); padding: 10px 20px; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--orange); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; margin-left: auto; cursor: pointer; }

/* ============ Hero ============ */
.hero { padding: 96px 0 110px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--orange-dark);
  background: rgba(255,122,26,0.12); padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(44px, 5.2vw, 68px); line-height: 1.12; letter-spacing: -1.5px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lead { margin-top: 24px; font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 999px;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255,122,26,0.28); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,122,26,0.35); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--orange); }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.hero-stats span { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Hero decorative art */
.hero-art { position: relative; height: 460px; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 340px; height: 340px; background: #ffe6d1; top: 20px; left: 60px; }
.blob-2 { width: 200px; height: 200px; background: #dce6ff; bottom: 30px; right: 20px; }
.card-float {
  position: absolute; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 24px; width: 220px;
}
.card-a { top: 70px; left: 30px; transform: rotate(-6deg); }
.card-b { bottom: 70px; right: 30px; transform: rotate(5deg); }
.card-float .line { height: 9px; border-radius: 5px; background: #ececf0; margin-top: 12px; }
.card-float .w70 { width: 70%; } .card-float .w90 { width: 90%; } .card-float .w50 { width: 50%; } .card-float .w80 { width: 80%; } .card-float .w60 { width: 60%; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.dot.orange { background: var(--orange); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); background: #eef2ff; padding: 4px 10px; border-radius: 8px; }
.circle-accent {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 150px; height: 150px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: 17px; line-height: 1.5; box-shadow: 0 16px 40px rgba(255,122,26,0.35);
}

/* ============ Sections ============ */
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; margin-bottom: 40px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.eyebrow.light { color: rgba(255,255,255,0.7); }
.section-head h2, .newsletter h2 { font-size: clamp(30px, 3.5vw, 42px); letter-spacing: -1px; margin-top: 12px; line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.features { padding: 90px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 22px; }
.icon-orange { background: #fff0e4; color: var(--orange); }
.icon-blue { background: #eaf0ff; color: var(--blue); }
.icon-green { background: #e4f8ef; color: var(--green); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ============ Posts ============ */
.posts { padding: 20px 0 100px; }
.text-link { color: var(--orange); font-weight: 600; font-size: 15px; }
.text-link:hover { text-decoration: underline; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post-cover { height: 168px; display: flex; align-items: flex-start; padding: 18px; }
.post-cover span { font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,0.22); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.c1 { background: linear-gradient(135deg, #ff9a4d, #ff6a00); }
.c2 { background: linear-gradient(135deg, #6c8cff, #3d5fe0); }
.c3 { background: linear-gradient(135deg, #3ed6a0, #1aa874); }
.post-body { padding: 26px 26px 30px; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.post-meta .sep { opacity: .6; }
.post-body h3 { font-size: 19px; line-height: 1.45; margin: 12px 0 10px; }
.post-body p { font-size: 14px; color: var(--muted); }
.read-more { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; color: var(--orange); font-weight: 600; font-size: 14px; }
.read-more span { transition: transform .2s; }
.read-more:hover span { transform: translateX(4px); }

/* ============ Newsletter ============ */
.newsletter { background: var(--ink); border-radius: var(--radius); margin: 0 24px 90px; padding: 60px; color: #fff; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; max-width: 1100px; }
.newsletter h2 { font-size: 30px; margin-top: 10px; }
.newsletter p { color: rgba(255,255,255,0.65); margin-top: 8px; }
.subscribe-form { display: flex; gap: 10px; }
.subscribe-form input {
  padding: 14px 20px; border-radius: 999px; border: none; font-size: 15px;
  min-width: 260px; outline: none; background: #fff; color: var(--ink);
}
.subscribe-form input::placeholder { color: #9aa0aa; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid rgba(26,29,36,0.07); padding: 50px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.8; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--orange); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 360px; margin-top: 20px; }
  .feature-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { padding: 44px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; margin: 0; padding: 10px 24px 20px; box-shadow: var(--shadow); }
  .nav.open a { padding: 10px 0; font-size: 16px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { gap: 24px; }
  .feature-grid, .post-grid { grid-template-columns: 1fr; }
  .newsletter { margin: 0 16px 60px; padding: 32px 24px; border-radius: var(--radius); }
  .subscribe-form { flex-direction: column; width: 100%; }
  .subscribe-form input { min-width: 0; width: 100%; }
  .hero-art { height: 300px; }
  .card-a { left: 0; } .card-b { right: 0; }
}

/* ===== post page & markdown-ish content ===== */
.post-page { padding: 60px 0 100px; }
.post-head { max-width: 820px; margin: 0 auto 44px; text-align: center; }
.post-head .badge2 { display:inline-block; font-size:13px; font-weight:600; color:var(--orange-dark); background:rgba(255,122,26,.12); padding:6px 14px; border-radius:999px; margin-bottom:18px; }
.post-head h1 { font-size:clamp(30px,4.2vw,48px); line-height:1.25; letter-spacing:-1px; }
.post-head .pmeta { color:var(--muted); font-size:14px; margin-top:18px; }
.post-head .tags { margin-top:16px; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.post-head .tags span { font-size:12px; color:var(--muted); background:#f0efec; padding:5px 12px; border-radius:999px; }
.post-content { max-width:820px; margin:0 auto; background:var(--card); border-radius:var(--radius); padding:48px 52px; box-shadow:var(--shadow); }
.post-content h1 { font-size:30px; margin:38px 0 16px; padding-bottom:12px; border-bottom:2px solid #f0efec; }
.post-content h1:first-child { margin-top:0; }
.post-content h2 { font-size:23px; margin:34px 0 14px; color:var(--orange-dark); }
.post-content p { margin:14px 0; color:#374151; font-size:16px; line-height:1.9; }
.post-content ul { margin:14px 0 14px 24px; }
.post-content li { margin:8px 0; color:#374151; line-height:1.85; }
.post-content .table-cap { font-size:14px; color:var(--muted); margin:22px 0 8px; }
.table-wrap { overflow-x:auto; margin:18px 0 28px; border-radius:14px; border:1px solid #ecebe8; }
.post-content table { border-collapse:collapse; width:100%; font-size:14px; min-width:560px; }
.post-content th, .post-content td { padding:11px 14px; text-align:left; border-bottom:1px solid #f0efec; white-space:nowrap; }
.post-content th { background:#faf9f7; font-weight:600; color:var(--ink); }
.post-content tr:last-child td { border-bottom:none; }
.post-content tr:hover td { background:#fffaf5; }
.back-link { display:inline-block; margin-bottom:24px; color:var(--orange); font-weight:600; }
.empty-state { text-align:center; padding:80px 20px; color:var(--muted); }
