@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37,99,235,.06);
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.08);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }

.wrapper { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.topbar-logo {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.topbar-logo svg { width: 24px; height: 24px; color: var(--primary); }
.topbar-nav { display: flex; gap: 28px; list-style: none; }
.topbar-nav a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; }
.topbar-nav a:hover, .topbar-nav a.on { color: var(--primary); }
.topbar-btn {
  background: var(--primary); color: #fff; padding: 8px 18px;
  border-radius: 8px; font-size: .85rem; font-weight: 600;
  transition: background .2s;
}
.topbar-btn:hover { background: var(--primary-hover); color: #fff; }

/* ─── Hero ─── */
.hero {
  text-align: center; padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; color: var(--text); }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; padding: 14px 32px;
  border-radius: 10px; font-size: 1rem; font-weight: 600;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
  transition: all .2s;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.3); color: #fff; }

/* ─── Features ─── */
.features { padding: 60px 24px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; background: var(--primary-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--primary); font-size: 1.2rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── How it works ─── */
.howto { padding: 60px 24px; background: var(--bg-alt); }
.howto h2 { text-align: center; font-size: 1.8rem; margin-bottom: 40px; }
.howto-steps { display: flex; gap: 32px; max-width: 900px; margin: 0 auto; justify-content: center; }
.howto-step { text-align: center; flex: 1; }
.howto-num { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.howto-step h4 { font-size: .95rem; margin-bottom: 6px; }
.howto-step p { font-size: .83rem; color: var(--text-secondary); }

/* ─── Footer ─── */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: .82rem; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: .78rem; color: var(--text-light); }

/* ─── Modal ─── */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); backdrop-filter:blur(4px); z-index:1000; align-items:center; justify-content:center; }
.modal-overlay.active { display:flex; }
.modal-box { background:#fff; border-radius:var(--radius); padding:32px; width:90%; max-width:520px; box-shadow:var(--shadow-lg); }
.modal-box h2 { font-size:1.2rem; margin-bottom:16px; }
.modal-box textarea { width:100%; height:140px; border:1px solid var(--border); border-radius:10px; padding:12px; font-size:.9rem; resize:vertical; font-family:inherit; }
.modal-box textarea:focus { outline:none; border-color:var(--primary); }
.modal-actions { display:flex; gap:12px; margin-top:16px; justify-content:flex-end; }
.btn-primary { background:var(--primary); color:#fff; border:none; padding:10px 20px; border-radius:8px; font-weight:600; cursor:pointer; font-size:.9rem; }
.btn-primary:hover { background:var(--primary-hover); }
.btn-ghost { background:none; border:1px solid var(--border); padding:10px 20px; border-radius:8px; cursor:pointer; font-size:.9rem; color:var(--text-secondary); }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .howto-steps { flex-direction: column; gap: 24px; }
  .topbar-nav { display: none; }
  .hero h1 { font-size: 2rem; }
}
