*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, "Segoe UI", Tahoma, sans-serif; color: #1e1b2e; }

/* Top bar: brand on one side, links on the other */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #eef2ff;
}
.brand { font-weight: 800; color: #4338ca; font-size: 1.3rem; }
.bar nav { display: flex; gap: 16px; }
.bar a { color: #1e1b2e; text-decoration: none; }

/* Hero: text and picture side by side */
.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 24px;
  background: #eef2ff;
}
.hero div { flex: 1; }
.hero h1 { font-size: 2.2rem; margin: 0 0 8px; }
.button { display: inline-block; padding: 10px 22px; border-radius: 999px; color: white; background: #db2777; text-decoration: none; font-weight: 700; }
.hero img { width: 180px; height: auto; }

/* Features: three columns */
.features { padding: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid article { padding: 16px; border-radius: 14px; background: #f5f5fb; }
.grid h3 { margin: 0 0 4px; color: #4338ca; }
footer { text-align: center; padding: 16px; color: #5b5873; }

/* Phones: everything in one column */
@media (max-width: 600px) {
  .hero { flex-direction: column; text-align: center; }
  .grid { grid-template-columns: 1fr; }
  .bar nav { gap: 10px; font-size: 0.9rem; }
}
