/* ========= Base ========= */

:root {
  --primary: #0f172a;
  --primary-2: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;

  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ========= Typography ========= */

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; margin-top: 28px; }
h3 { font-size: 22px; }

p {
  margin: 0 0 16px;
  color: #1f2937;
}

.lead {
  font-size: 18px;
  color: #334155;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========= Layout ========= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  padding: 40px 0 60px;
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: #f1f5f9;
}

/* ========= Header / Nav ========= */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  display: flex;
  gap: 8px;
  align-items: center;
}

.brand-mark {
  background: var(--accent);
  color: white;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #334155;
  font-weight: 500;
}

/* ========= Hero ========= */

.hero {
  padding: 72px 0 48px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 36px;
  align-items: center;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* ========= Cards ========= */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

/* ========= Buttons ========= */

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-small {
  padding: 8px 12px;
  font-size: 14px;
}

/* ========= Lists ========= */

ul, ol {
  padding-left: 20px;
  margin: 10px 0 18px;
}

li {
  margin: 6px 0;
}

/* ========= Forms ========= */

.form {
  display: grid;
  gap: 14px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ========= CTA Strip ========= */

.cta-strip {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.cta-strip .btn {
  background: white;
  color: var(--primary);
}

/* ========= Footer ========= */

.site-footer {
  background: var(--primary);
  color: #cbd5f1;
  padding: 40px 0;
  margin-top: 60px;
}

.site-footer a {
  color: #e2e8f0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* ========= Blog ========= */

.article {
  max-width: 820px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ========= Responsive ========= */

@media (max-width: 900px) {
  h1 { font-size: 32px; }

  .hero-inner,
  .grid2,
  .grid3,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
