* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --primary: #1f6feb;
  --primary-soft: rgba(31, 111, 235, 0.08);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* HEADER */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-text span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.dark-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

/* HERO */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.hero-sub {
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
}

.btn.primary:hover {
  background: #1d4fd8;
}

.btn.secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border);
}

.btn.secondary:hover {
  border-color: var(--primary);
}

.hero-bullets {
  margin-top: 16px;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-bullets li::before {
  content: "• ";
  color: var(--primary);
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-box {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-box h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

/* SECTIONS */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 520px;
}

/* CARDS */
.cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.card-link {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

/* GRID */
.grid-3 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

/* BLOG PREVIEW */
.blog-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.blog-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.blog-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.blog-thumb {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.blog-cta {
  margin-top: 18px;
}

/* CONTACT STRIP */
.contact-strip {
  padding-bottom: 50px;
}

.contact-inner {
  background: var(--primary-soft);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* DARK MODE */
body.dark {
  background: #020617;
  color: #e5e7eb;
}

body.dark .topbar {
  background: #020617;
  border-bottom-color: #1f2937;
}

body.dark .section,
body.dark .hero {
  background: #020617;
}

body.dark .card,
body.dark .hero-box,
body.dark .blog-card {
  background: #0b1120;
  border-color: #1f2937;
  box-shadow: none;
}

body.dark .nav a {
  color: #9ca3af;
}

body.dark .nav a:hover {
  color: #60a5fa;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 56px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 10px 14px;
    flex-direction: column;
    gap: 10px;
  }

  .menu-btn {
    display: block;
  }
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 111, 235, 0.2);
}


html {
  scroll-behavior: smooth;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}


.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(31, 111, 235, 0.15);
  transition: all 0.3s ease;
}
