/* ============================================================
   BotVNS Mail — Public landing page stylesheet
   ============================================================ */

:root {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg-alt: #f8fafc;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); color: var(--accent-hover); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.text-muted { color: var(--muted); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; font-size: 16px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }
.btn-nav { padding: 8px 16px; background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; background: radial-gradient(circle at 15% 20%, var(--accent-soft), transparent 45%), #fff; }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 20px; letter-spacing: -.02em; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 30px; margin: 0 0 12px; letter-spacing: -.01em; }
.section-desc { color: var(--muted); font-size: 15px; max-width: 720px; }

.grid { display: grid; gap: 22px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.steps h3 { margin: 0 0 4px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Code blocks ---------- */
.code-block { background: #0f172a; border-radius: var(--radius); overflow: hidden; margin: 22px 0; box-shadow: var(--shadow); }
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #1e293b; color: #cbd5e1; font-size: 13px; font-weight: 600;
}
.btn-copy { background: rgba(255,255,255,.08); color: #e2e8f0; border: none; border-radius: 6px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.btn-copy:hover { background: rgba(255,255,255,.16); }
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code-block code { background: none; color: #e2e8f0; padding: 0; font-size: 13px; line-height: 1.6; }

/* ---------- Table ---------- */
.table-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 32px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--accent) 0%, #111827 100%); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: 26px; max-width: 520px; }
.cta .btn-primary { background: #fff; color: var(--accent); }
.cta .btn-primary:hover { background: #f3f4f6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 48px 0 28px; }
.site-footer .brand { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; color: #cbd5e1; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; margin-top: 24px; padding-top: 20px; border-top: 1px solid #1f2937; font-size: 13px; }
.site-footer .text-muted { color: #9ca3af; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start;
    padding: 16px 24px; gap: 16px; display: none;
  }
  .site-nav.open { display: flex; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 56px 0; }
  .cta-inner { text-align: center; justify-content: center; }
}
