:root{
  --brand: #2563eb;
  --brand2:#06b6d4;
  --ink:#0f172a;
  --muted:#64748b;
  --surface:#ffffff;
  --soft:#f8fafc;
  --ring: rgba(37,99,235,.25);
  --radius: 18px;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(6,182,212,.18), transparent 55%),
              radial-gradient(1200px 600px at 90% 0%, rgba(37,99,235,.18), transparent 55%),
              var(--soft);
}

/* Navbar */
.navbar{
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.75) !important;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.brand-badge{
  width: 40px; height: 40px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 10px 25px rgba(37,99,235,.20);
}
.nav-link{
  color: rgba(15,23,42,.85) !important;
  font-weight: 600;
}
.nav-link:hover{ color: var(--brand) !important; }

/* Buttons */
.btn-brand{
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 10px 18px rgba(37,99,235,.18);
}
.btn-brand:hover{ filter: brightness(.95); }
.btn-soft{
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.18);
  color: var(--brand);
}
.btn-soft:hover{ background: rgba(37,99,235,.12); }

/* Hero */
.hero{
  padding-top: 5.5rem;
  padding-bottom: 2.5rem;
}
.hero-card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 25px 60px rgba(2,6,23,.12);
}
.hero-title{
  letter-spacing: -.02em;
  line-height: 1.08;
}
.hero-sub{
  color: var(--muted);
  font-size: 1.05rem;
}
.pill{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-weight: 600;
  color: rgba(15,23,42,.85);
}
.hero-visual{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(37,99,235,.18);
  position: relative;
  height: 320px; /* fixed hero ratio: 636x320 */
}
.hero-visual .carousel-inner,
.hero-visual .carousel-item,
.hero-visual img{
  height: 320px;
  width: 100%;
  object-fit: cover;
}

/* Stats overlay */
.stat{
  position:absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.stat > div{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  padding: .75rem;
  text-align: center;
}
.stat strong{ display:block; font-size: 1.05rem; }
.stat span{ color: var(--muted); font-size: .9rem; }

/* Cards */
.section-title{ letter-spacing: -.02em; }
.it-card{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.08);
  overflow: hidden;
  background: rgba(255,255,255,.80);
  box-shadow: 0 16px 40px rgba(2,6,23,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.it-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(2,6,23,.12);
}
.it-cover{
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.it-cover::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent, rgba(2,6,23,.55));
}
.badge-theme{
  position:absolute;
  left: .9rem; top: .9rem;
  z-index: 2;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  padding: .35rem .6rem;
  font-weight: 700;
  color: rgba(15,23,42,.85);
}
.it-meta{
  position:absolute;
  left: .9rem; bottom: .85rem;
  z-index: 2;
  color: #fff;
}
.it-meta small{ opacity: .9; }
.tag{
  display:inline-block;
  margin: .25rem .25rem 0 0;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.80);
  font-weight: 600;
  font-size: .85rem;
}

/* Footer */
footer{
  background: rgba(255,255,255,.75);
  border-top: 1px solid rgba(15,23,42,.08);
}
.footer-link{
  color: rgba(15,23,42,.75);
  text-decoration: none;
}
.footer-link:hover{ color: var(--brand); }

/* Accessibility */
.focus-ring:focus{
  outline: none;
  box-shadow: 0 0 0 .25rem var(--ring) !important;
}
