*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b2e;
  --blue: #1565c0;
  --blue-light: #1e88e5;
  --yellow: #f5a623;
  --text: #1a1a2e;
  --muted: #5a6475;
  --border: #e2e8f0;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── MEGA MENU ───────────────────────────────── */
.nav-item { position: relative; list-style: none; }

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-40%);
  width: 860px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  padding: 28px 24px;
  z-index: 500;
  animation: megaFadeIn 0.18s ease both;
}

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateX(-40%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-40%) translateY(0); }
}

.nav-item:hover .mega-menu,
.mega-menu:hover { display: flex; gap: 0; }

.mega-col {
  flex: 1;
  padding: 0 16px;
}

.mega-col + .mega-col { border-left: 1px solid #f1f5f9; }

.mega-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e88e5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  margin-bottom: 2px;
}

.mega-item:hover { background: #f8fafc; }

.mega-item-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1e88e5;
}

.mega-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
  line-height: 1.3;
}

.mega-item p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.mega-featured-card {
  border-radius: 10px;
  background: linear-gradient(135deg, #1565c0 0%, #1a9dd4 100%);
  padding: 20px;
  color: #fff;
  margin-bottom: 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.mega-featured-card::before {
  content: "</>";
  position: absolute;
  top: 18px;
  left: 18px;
  background: #f5a623;
  color: #0d1b2e;
  font-weight: 900;
  font-size: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
}

.mega-featured-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
  margin-top: 56px;
}

.mega-featured-card p {
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.5;
  margin: 0;
}

/* ── NAVBAR ─────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a6fd4 0%, #1a9dd4 100%);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: var(--navy);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
}

.nav-logo-text {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s;
}

.nav-links a:hover { background: rgba(255,255,255,0.12); }

.nav-links .chevron {
  font-size: 0.65rem;
  opacity: 0.75;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .icon-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.15s;
}

.nav-actions .icon-btn:hover { background: rgba(255,255,255,0.12); }

.btn-login {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-login:hover { background: rgba(255,255,255,0.1); }

.btn-start {
  background: var(--yellow);
  border: none;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.15s;
}

.btn-start:hover { filter: brightness(1.08); }

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #1565c0 0%, #1a9dd4 60%, #16b6d4 100%);
  padding: 96px 40px 80px;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: var(--yellow);
  border: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: filter 0.15s;
}

.btn-cta-primary:hover { filter: brightness(1.08); }

.btn-cta-secondary {
  background: var(--navy);
  border: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s;
}

.btn-cta-secondary:hover { filter: brightness(1.3); }

.mega-menu-wide {
  width: 960px;
  left: 50%;
  transform: translateX(-55%);
  flex-direction: column;
  gap: 0;
  padding: 28px 32px 32px;
}

@keyframes megaFadeInWide {
  from { opacity: 0; transform: translateX(-55%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-55%) translateY(0); }
}

.nav-item:hover .mega-menu-wide,
.mega-menu-wide:hover { display: flex; animation-name: megaFadeInWide; }

.mega-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1e88e5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.mega-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}

.mega-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mega-panel {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px 14px;
}

.mega-panel .mega-section-label {
  border-bottom-color: #e2e8f0;
}

.mega-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.mega-item-sm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
}

.mega-item-sm:hover { background: #eff6ff; }

.mega-item-sm .mega-item-icon {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.mega-item-sm strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
  line-height: 1.3;
}

.mega-item-sm p {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* ── MEGA BLOG CARDS ───────────────── */
.mega-blog-card {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  margin-bottom: 6px;
}
.mega-blog-card:hover { background: #f8fafc; }
.mega-blog-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 64px;
  border-radius: 7px;
  background: linear-gradient(135deg,#1565c0,#1a9dd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
}
.mega-blog-meta { flex: 1; }
.mega-blog-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.mega-blog-tag.tag-blue   { background:#0ea5e9; color:#fff; }
.mega-blog-tag.tag-amber  { background:#f5a623; color:#0d1b2e; }
.mega-blog-tag.tag-green  { background:#22c55e; color:#fff; }
.mega-blog-meta strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin-bottom: 3px;
}
.mega-blog-meta p {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.section {
  padding: 80px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 580px;
  margin-bottom: 14px;
}

.section > p {
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ── TABS ────────────────────────────────────── */
.tabs-wrapper {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:hover { background: #f8fafc; }

.tab-btn.active {
  background: var(--yellow);
  color: var(--navy);
}

.tab-content {
  display: none;
  padding: 40px;
  gap: 48px;
  align-items: center;
}

.tab-content.active {
  display: flex;
}

.tab-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  max-width: 360px;
}

.tab-text .highlight {
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.tab-text ul {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.tab-text ul li::before {
  content: "✦";
  color: var(--yellow);
  font-size: 0.7rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.tab-visual {
  flex-shrink: 0;
  width: 420px;
  background: var(--navy);
  border-radius: 10px;
  padding: 24px;
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
}

.tab-visual-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-visual-header::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}

.metric-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.metric-card .value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.metric-card .label {
  font-size: 0.68rem;
  opacity: 0.6;
  margin-top: 2px;
}

.metric-highlight {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* ── STATS ───────────────────────────────────── */
.stats-section {
  background: #f8fafc;
  padding: 64px 40px;
}

.stats-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}

.stat-card {
  background: var(--white);
  padding: 32px 28px;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 10px;
}

.stat-card .stat-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

/* ── CARDS ROW ───────────────────────────────── */
.cards-section {
  padding: 80px 40px;
  max-width: 1120px;
  margin: 0 auto;
}

.cards-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.card-img {
  height: 160px;
  background: linear-gradient(135deg, #1565c0, #16b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 2.5rem;
}

.card-body {
  padding: 20px;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-light);
  background: rgba(30,136,229,0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 40px;
  text-align: center;
  font-size: 0.82rem;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Tablet / large mobile (≤ 768px) ───────── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 0 16px;
    height: 56px;
  }

  .nav-links { display: none; }

  .nav-actions .icon-btn,
  .nav-actions .lang-btn { display: none; }

  /* Hero */
  .hero {
    padding: 64px 20px 56px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Generic section */
  .section {
    padding: 52px 20px;
  }

  .section h2 {
    max-width: 100%;
  }

  .section > p {
    max-width: 100%;
  }

  /* Tabs */
  .tabs-header {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1 1 50%;
    font-size: 0.8rem;
    padding: 12px 10px;
  }

  .tab-content.active {
    flex-direction: column;
    padding: 24px 20px;
    gap: 28px;
  }

  .tab-visual {
    width: 100%;
  }

  .tab-text h3 {
    max-width: 100%;
  }

  /* Stats */
  .stats-section {
    padding: 48px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cards */
  .cards-section {
    padding: 52px 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer {
    padding: 32px 20px;
  }
}

/* ── Small mobile (≤ 480px) ─────────────────── */
@media (max-width: 480px) {

  /* Navbar: only logo + CTA */
  .navbar {
    padding: 0 14px;
    height: 52px;
  }

  .btn-login { display: none; }

  .btn-start {
    font-size: 0.72rem;
    padding: 7px 14px;
  }

  /* Hero */
  .hero {
    padding: 48px 16px 44px;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    max-width: 100%;
    font-size: 0.82rem;
    padding: 13px 20px;
  }

  /* Section */
  .section {
    padding: 40px 16px;
  }

  /* Tabs: stack all buttons */
  .tab-btn {
    flex: 1 1 100%;
  }

  .tab-content.active {
    padding: 20px 16px;
  }

  /* Stats: single column */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-card .stat-value {
    font-size: 2.2rem;
  }

  /* Cards */
  .cards-section {
    padding: 40px 16px;
  }

  /* Metric row in tab visual */
  .metric-row {
    flex-direction: column;
  }

  /* Footer */
  .footer {
    padding: 28px 16px;
  }
}
