/* Home page – uses tokens from design-system.css */
html, body { height: 100%; }
body.home2 {
  margin: 0;
  background: #F4F7FD;
  color: var(--c-body, #334155);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  display: flex; flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- top bar ---------- */
.h2-top {
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 44px);
  height: clamp(58px, 8vh, 72px);
  background: #fff;
  box-shadow: 0 1px 0 #E2E8F0, 0 4px 14px rgba(18, 59, 120, .05);
  position: relative; z-index: 5;
  flex: 0 0 auto;
}
.h2-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 1 1 0; min-width: 0; }
.h2-logo { width: 46px; height: auto; flex: 0 0 auto; }
.h2-sep { width: 1px; height: 34px; background: #CBD5E1; }
.h2-brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.h2-brand-text strong { font-family: var(--font-heading, 'Montserrat', sans-serif); font-size: 17px; font-weight: 700; color: var(--c-primary, #123B78); }
.h2-brand-text small { font-size: 11.5px; color: #64748B; letter-spacing: .02em; }

.h2-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.h2-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--c-primary, #123B78); background: #EEF3FC;
  transition: background .15s, color .15s;
}
.h2-nav a:hover { background: #DCE7FA; }
.h2-nav a.active { background: var(--c-primary, #123B78); color: #fff; box-shadow: 0 4px 12px rgba(18, 59, 120, .25); }
.h2-nav a i { font-size: 14px; }

.h2-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex: 1 1 0; }
.h2-bell { position: relative; display: inline-flex; padding: 2px; font-size: 21px; margin-right: 6px; color: var(--c-primary, #123B78); text-decoration: none; line-height: 1; }
.h2-bell span {
  position: absolute; top: -5px; right: -9px;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--c-danger, #DC2626); color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center;
  border: 2px solid #fff; box-sizing: content-box;
}
.h2-user, .h2-login {
  display: flex; align-items: center; gap: 9px;
  border: 0; background: none; padding: 4px 2px;
  font-size: 13px; font-weight: 600; color: var(--c-heading, #0F2347);
}
.h2-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary, #123B78); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.h2-user-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-login {
  padding: 8px 18px; border-radius: 999px;
  background: var(--c-primary, #123B78); color: #fff;
}
.h2-login:hover { background: #0E2F62; }
.h2-top .dropdown-menu { font-size: 13px; border-color: #E2E8F0; box-shadow: 0 10px 26px rgba(15, 35, 71, .12); }

/* ---------- hero ---------- */
.h2-hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: center;
  background: linear-gradient(100deg, #FFFFFF 0%, #FAFCFF 42%, #F1F6FE 100%);
  overflow: hidden;
}
.h2-hero-art {
  position: absolute; top: 0; bottom: 0; right: 0; left: auto;
  width: auto; aspect-ratio: 682 / 392; max-width: 58%; min-width: 46%;
  background: url('img/hero-home.jpg') right bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%);
}
.h2-hero-wave { position: absolute; left: 0; bottom: 0; width: 62%; height: 32%; pointer-events: none; }
.h2-hero-content {
  position: relative; z-index: 2;
  width: min(46%, 600px);
  margin-left: clamp(20px, 5.5vw, 90px);
  padding: 2vh 0 6vh;
}
.h2-hero h1 {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: clamp(28px, min(3.05vw, 5.4vh), 46px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.01em;
  color: var(--c-heading, #0F2347);
  margin: 0 0 1.6vh;
}
.h2-hero h1 span { color: var(--c-secondary, #2563EB); }
.h2-lead { font-size: clamp(13.5px, min(1.15vw, 2vh), 16px); line-height: 1.6; color: #475569; max-width: 470px; margin: 0 0 3.2vh; }

.h2-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.h2-btn {
  display: flex; align-items: center; gap: 12px;
  min-width: 230px; padding: 12px 16px 12px 18px; border-radius: 12px;
  color: #fff; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.h2-btn:hover { color: #fff; transform: translateY(-2px); }
.h2-btn-faculty { background: linear-gradient(135deg, #123B78, #1C4FA0); box-shadow: 0 8px 20px rgba(18, 59, 120, .28); }
.h2-btn-student { background: linear-gradient(135deg, #16A34A, #1FB457); box-shadow: 0 8px 20px rgba(22, 163, 74, .28); }
.h2-btn-icon { font-size: 26px; line-height: 1; }
.h2-btn span { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.h2-btn strong { font-size: 15px; font-weight: 700; }
.h2-btn small { font-size: 11.5px; opacity: .88; }
.h2-btn-arrow { font-size: 15px; opacity: .9; }

/* ---------- feature strip ---------- */
.h2-features {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: -3.2vh clamp(16px, 4vw, 64px) 0;
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 35, 71, .08);
  border: 1px solid #E8EEF8;
  flex: 0 0 auto;
}
.h2-feature {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: clamp(12px, 2.1vh, 20px) 12px;
  font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--c-heading, #0F2347);
}
.h2-feature + .h2-feature { border-left: 1px solid #E2E8F0; }
.h2-feature i { font-size: 26px; color: var(--c-secondary, #2563EB); }

/* ---------- how it works ---------- */
.h2-how { padding: clamp(12px, 2.4vh, 24px) clamp(16px, 4vw, 64px) clamp(14px, 2.6vh, 26px); flex: 0 0 auto; }
.h2-how h2 {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 19px; font-weight: 700; color: var(--c-heading, #0F2347);
  margin: 0 0 clamp(10px, 2vh, 18px);
}
.h2-how h2::before, .h2-how h2::after { content: ""; width: 70px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #93B4EE); }
.h2-how h2::after { transform: scaleX(-1); }

.h2-steps { display: flex; align-items: stretch; gap: 10px; }
.h2-step {
  flex: 1 1 0; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
  padding: clamp(10px, 1.8vh, 16px) 16px;
  box-shadow: 0 4px 14px rgba(15, 35, 71, .05);
}
.h2-step b {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-secondary, #2563EB); color: #fff; font-size: 12.5px;
}
.h2-step > i { flex: 0 0 auto; font-size: 28px; color: var(--c-secondary, #2563EB); }
.h2-step div { display: flex; flex-direction: column; line-height: 1.3; }
.h2-step strong { font-size: 13.5px; color: var(--c-heading, #0F2347); }
.h2-step small { font-size: 12px; color: #64748B; }
.h2-step-arrow { align-self: center; color: #93B4EE; font-size: 18px; }

/* ---------- footer band ---------- */
.h2-band {
  position: relative; flex: 0 0 auto;
  height: clamp(66px, 10vh, 96px);
  color: #fff; overflow: hidden;
  background: #F4F7FD;
}
.h2-band-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.h2-band-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 60px);
  padding-top: clamp(16px, 3vh, 30px);
}
.h2-band-item { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.h2-band-item i { font-size: 26px; }
.h2-band-item em { font-family: var(--font-heading, 'Montserrat', sans-serif); font-size: 15px; font-weight: 600; }
.h2-band-sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .45); }

.modal { font-size: 14px; }

/* ---------- one screen on desktop ---------- */
@media (min-width: 992px) and (min-height: 600px) {
  body.home2 { height: 100vh; overflow: hidden; }
}

/* ---------- tablet / mobile ---------- */
@media (max-width: 1199px) {
  .h2-nav a { padding: 7px 14px; }
  .h2-feature { flex-direction: column; text-align: center; gap: 6px; }
  .h2-step { flex-direction: column; text-align: center; }
}
@media (max-width: 991px) {
  .h2-top { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .h2-nav { order: 3; width: 100%; justify-content: center; }
  .h2-hero { flex: 0 0 auto; flex-direction: column; align-items: stretch; }
  .h2-hero-art { position: relative; inset: auto; width: 100%; max-width: none; min-width: 0; height: auto; aspect-ratio: 682 / 392; order: 2; -webkit-mask-image: none; mask-image: none; }
  .h2-hero-wave { display: none; }
  .h2-hero-content { width: auto; margin: 0; padding: 28px 20px 18px; }
  .h2-features { margin-top: 16px; grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .h2-feature { border-left: 0 !important; border-bottom: 1px solid #EEF2F7; }
  .h2-steps { flex-direction: column; }
  .h2-step { flex-direction: row; text-align: left; }
  .h2-step-arrow { transform: rotate(90deg); }
}
@media (max-width: 575px) {
  .h2-brand-text small, .h2-sep, .h2-user-name { display: none; }
  .h2-brand-text strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .h2-brand-text { min-width: 0; }
  .h2-logo { width: 38px; }
  .h2-hero h1 { font-size: 28px; }
  .h2-nav a { padding: 7px 12px; font-size: 12.5px; }
  .h2-btn { min-width: 0; flex: 1 1 100%; }
  .h2-features { grid-template-columns: repeat(2, 1fr); }
  .h2-band-inner { flex-direction: column; gap: 4px; padding-top: 22px; }
  .h2-band { height: 110px; }
  .h2-band-sep { display: none; }
}

/* ---------- Rubro brand ---------- */
.h2-logo.rb-mark { width: 40px; height: 40px; }
.h2-brand-text .rb-word { font-size: 24px; }
.rb-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 1.4vh;
  padding: 5px 12px; border-radius: 999px; background: #FFF6DB; border: 1px solid #FBE3A1;
  color: #8A5A00; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.rb-eyebrow i { color: #F5B400; }
.h2-hero h1 .rb-fair { position: relative; color: var(--c-secondary, #2563EB); white-space: nowrap; }
.h2-hero h1 .rb-fair::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.12em; height: .22em; border-radius: 999px;
  background: linear-gradient(90deg, #F5B400, #FFD45C); opacity: .9; z-index: -1;
}
.h2-hero h1 { position: relative; z-index: 0; }
.rb-band-mark { display: inline-flex; width: 30px; height: 30px; }
.rb-band-mark svg { width: 100%; height: 100%; }
