:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h1, h2, h3 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--muted);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 86px 0 56px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 60%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.hero-copy p {
  font-size: 1.12rem;
  max-width: 700px;
  margin-top: 18px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-item {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.mini-item strong {
  display: block;
  margin-bottom: 4px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.1);
}

.card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #93c5fd);
}

.card-body {
  padding: 22px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body p {
  margin-top: 10px;
}

.side-stack {
  display: grid;
  gap: 20px;
}

.news-grid,
.tools-grid,
.learn-grid,
.opinion-grid {
  display: grid;
  gap: 22px;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tools-grid,
.learn-grid,
.opinion-grid {
  grid-template-columns: repeat(3, 1fr);
}

.simple-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.simple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
}

.simple-card:hover {
  transform: translateY(-3px);
}

.simple-card h3 {
  margin: 10px 0 10px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.panel ul {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.panel li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

.panel li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.newsletter {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.newsletter p {
  color: #cbd5e1;
  max-width: 680px;
  margin-top: 10px;
}

.newsletter-form {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1 1 280px;
  min-width: 220px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 14px 16px;
  border-radius: 999px;
}

.newsletter input::placeholder {
  color: #cbd5e1;
}

.site-footer {
  padding: 34px 0 52px;
  border-top: 1px solid var(--line);
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 26px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .featured-grid,
  .split-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .tools-grid,
  .learn-grid,
  .opinion-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 54px 0;
  }

  .hero {
    padding: 60px 0 30px;
  }

  .news-grid,
  .tools-grid,
  .learn-grid,
  .opinion-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .newsletter,
  .panel {
    padding: 22px;
  }

  .header-inner {
    min-height: 64px;
  }
}