:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --primary: #1f6feb;
  --primary-soft: rgba(31, 111, 235, 0.12);
  --text: #111827;
  --muted: #6b7280;
  --radius-lg: 1.25rem;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --max-width: 1100px;
  --header-h: 70px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header & Nav ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.logo span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
}
.main-nav a {
  margin-left: 1.4rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: 0.2s;
}
.main-nav a:hover {
  color: var(--primary);
}
.main-nav .active {
  color: var(--primary);
  position: relative;
}
.main-nav .active::after {
  content: "";
  position: absolute;
  bottom: -1.2rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 999px 999px 0 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero Section ---------- */

.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top, #e4ecff 0%, #f4f5f7 50%, #f4f5f7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-box {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.welcome {
  display: inline-block;
  background: rgba(31, 111, 235, 0.09);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.lead {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo img {
  width: min(320px, 100%);
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
  border: 5px solid #fff;
  object-fit: cover;
  background: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: none;
  outline: none;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(31, 111, 235, 0.25);
}
.btn.ghost {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(31, 111, 235, 0.15);
}

/* ---------- Highlights ---------- */

.highlights {
  padding: 2.8rem 0 3.5rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.card p {
  color: #6b7280;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.03);
  padding: 1.2rem 0 1.5rem;
  margin-top: 2.5rem;
}
.footer-content {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}
.footer-content .small {
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    justify-content: flex-start;
  }
  .hero-photo img {
    width: 240px;
  }
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    right: 1.25rem;
    background: #fff;
    flex-direction: column;
    width: min(230px, 90vw);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.2s ease-out;
  }
  .main-nav a {
    margin: 0.25rem 0;
    padding: 0.4rem 0.4rem;
  }
  .main-nav .active::after {
    display: none;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .menu-toggle {
    display: block;
  }
}
