:root { --bg: #fff; --text: #0a0a0a; --muted:#666; --line:#eee; --accent:#0d0d0d; }
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body { font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height:1.6; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.site-header { position: sticky; top:0; background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.2) blur(6px); border-bottom:1px solid var(--line); z-index: 10; }
.nav { display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand { font-weight:800; letter-spacing:0.2px; }
.brand span { font-weight:800; color: var(--accent); }
nav a { color: var(--text); text-decoration:none; margin-left:16px; padding:8px 10px; border-radius:8px; }
nav a:hover { background:#f6f6f6; }

.hero { padding: 72px 0 48px; border-bottom:1px solid var(--line); }
.hero-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:28px; align-items:center; }
.hero-text h1 { font-size: clamp(28px, 4vw, 48px); line-height:1.1; margin: 0 0 12px; }
.hero-text p { color: var(--muted); margin: 0 0 16px; }
.cta-row { display:flex; gap:12px; }
.btn { border:1px solid var(--text); color: var(--bg); background: var(--text); padding:10px 14px; border-radius:10px; cursor:pointer; transition: transform .12s ease, background .2s; text-decoration:none; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background:#111; color:#fff; }

.hero-card { position: relative; border:1px solid var(--line); border-radius:16px; height: 220px; display:grid; grid-template-columns:1fr 1fr; padding:18px; overflow:hidden; }
.hero-stat { background:#fafafa; border:1px solid var(--line); border-radius:12px; padding:14px; display:flex; flex-direction:column; justify-content:center; }
.hero-stat span { color: var(--muted); font-size:12px; }
.hero-stat strong { font-size:28px; }
.hero-spark { position:absolute; inset:auto -20%  -40% auto; width: 140%; height: 140%; background: radial-gradient(closest-side, #000 0%, transparent 60%); opacity:0.025; transform: rotate(-8deg); }

.section { padding: 56px 0; }
.section.alt { background:#fafafa; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
h2 { margin:0 0 18px; font-size: clamp(22px, 3vw, 32px); }
.cards.three { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.card { border:1px solid var(--line); border-radius:14px; padding:16px; background:#fff; }
.card h3 { margin:0 0 8px; }
.card ul { margin:8px 0 0 16px; color: var(--muted); }

.examples details { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; margin-bottom:10px; }
.examples summary { cursor:pointer; font-weight:600; }

.tabs { display:flex; gap:8px; margin: 6px 0 14px; flex-wrap: wrap; }
.tab { border:1px solid var(--line); background:#fff; padding:8px 12px; border-radius:999px; cursor:pointer; }
.tab.active { background:#111; color:#fff; border-color:#111; }
.tab-panel { display:none; }
.tab-panel.active { display:block; animation: fade .2s ease; }

.grid-form { display:grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap:12px; align-items:end; }
.grid-form label { display:flex; flex-direction:column; gap:6px; font-size:14px; }
.grid-form input { height:40px; border:1px solid var(--line); border-radius:10px; padding:0 10px; font-size:14px; }
.actions { display:flex; gap:8px; align-items:center; }
.result { margin-top:16px; }
.result-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-bottom:10px; }
.result-grid h4 { margin:0 0 4px; font-size:14px; color: var(--muted); }
.result-grid p { font-size:18px; margin:0; font-weight:600; }

.resource-list { display:grid; gap:8px; }
.resource-list a { color:#111; text-decoration: none; border-bottom:1px dashed #ddd; }
.resource-list a:hover { border-bottom-style: solid; }

.site-footer { padding: 28px 0; border-top:1px solid var(--line); color: var(--muted); }

@keyframes fade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none;} }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  nav a { margin-left:8px; }
  .grid-form { grid-template-columns: 1fr; }
}

