/* ============================
   KLIRI Corporate — v2
   Hero-collage layout, Gong-inspired
   ============================ */

:root {
  --navy:        #1F3A5F;
  --navy-deep:   #142540;
  --navy-soft:   #2B4A7A;
  --mint:        #3DD9B0;
  --mint-dark:   #2BB892;
  --amber:       #F59E0B;
  --ink:         #0F172A;
  --gray-900:    #1E293B;
  --gray-700:    #475569;
  --gray-500:    #94A3B8;
  --gray-300:    #CBD5E1;
  --gray-200:    #E2E8F0;
  --gray-100:    #F1F5F9;
  --gray-50:     #F8FAFC;
  --white:       #FFFFFF;
  --bg-soft:     #F4F7FB;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow:    0 4px 16px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(31,58,95,.18);

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--mint-dark); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand img { height: 32px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a:not(.btn) {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
}
.main-nav a:not(.btn):hover { color: var(--navy); }

/* Product nav items with colored icons */
.nav-product {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s ease;
}
.nav-product:hover { background: var(--gray-50, #f5f7fa); }
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #fff;
  flex-shrink: 0;
}
.nav-icon svg { width: 15px; height: 15px; }
.nav-icon--ct  { background: linear-gradient(135deg,#FB7185,#F43F5E); }
.nav-icon--si  { background: linear-gradient(135deg,#34D399,#059669); }
.nav-icon--hh  { background: linear-gradient(135deg,#FBBF24,#F59E0B); color:#1F3A5F; }
.nav-icon--ah  { background: linear-gradient(135deg,#A78BFA,#7C3AED); }
.nav-icon--evf { background: linear-gradient(135deg,#38BDF8,#1F3A5F); }

.nav-cta {
  margin-left: 10px;
  color: #fff !important;
}
.nav-cta:hover { color: #fff !important; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font);
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(31,58,95,.25);
}
.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31,58,95,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-300);
}
.btn-ghost:hover {
  background: var(--gray-50);
  border-color: var(--navy);
  color: var(--navy);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(61,217,176,.10) 0, transparent 50%),
    linear-gradient(180deg, #FBFCFE 0%, #F4F7FB 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mint-dark);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 22px;
  color: var(--navy-deep);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--mint) 0%, var(--mint-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 800;
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-700);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
}
.hero-meta strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-meta span {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 30px 50px rgba(31,58,95,.18));
}

/* ===== Floating message bubbles on hero ===== */
.floating-msg {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px 12px 12px;
  box-shadow: 0 14px 36px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.06);
  min-width: 240px;
  max-width: 280px;
  border: 1px solid rgba(15,23,42,.04);
  animation: floatY 6s ease-in-out infinite;
}
.floating-msg--top-left {
  top: 4%;
  left: -8%;
  animation-delay: 0s;
}
.floating-msg--top-right {
  top: 30%;
  right: -10%;
  animation-delay: 1.5s;
}
.floating-msg--bottom-left {
  bottom: 14%;
  left: -10%;
  animation-delay: 3s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.fm-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.fm-avatar svg { width: 20px; height: 20px; }
.fm-avatar--green { background: linear-gradient(135deg, #34D399, #059669); }
.fm-avatar--rose  { background: linear-gradient(135deg, #FB7185, #F43F5E); }
.fm-avatar--amber { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #142540; }
.fm-body { min-width: 0; }
.fm-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fm-time {
  font-weight: 500;
  color: var(--gray-500);
  font-size: 11px;
}
.fm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DD9B0;
  box-shadow: 0 0 0 4px rgba(61,217,176,.18);
}
.fm-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
}
.fm-text strong { color: var(--navy-deep); font-weight: 700; }

/* Stat card bottom-right */
.hero-stat-card {
  position: absolute;
  z-index: 5;
  bottom: -6%;
  right: -6%;
  background: var(--navy-deep);
  color: #fff;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15,23,42,.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 175px;
  animation: floatY 6s ease-in-out infinite;
  animation-delay: 2s;
}
.hsc-num {
  font-size: 30px;
  font-weight: 900;
  color: #3DD9B0;
  line-height: 1;
  letter-spacing: -.02em;
}
.hsc-label {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  line-height: 1.35;
}

/* ============ LOGO BAR ============ */
.logo-bar {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.logo-bar-title {
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin: 0 0 32px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 28px 32px;
  align-items: center;
  justify-items: center;
}
.logo-grid img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .65;
  transition: opacity .2s ease, filter .2s ease;
}
.logo-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ============ PRODUCTS ============ */
.products {
  padding: 96px 0;
  background: var(--bg-soft);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 12px 0 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--gray-700);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, linear-gradient(90deg, var(--mint) 0%, var(--navy) 100%));
  opacity: 0;
  transition: opacity .2s ease;
}
/* Each card's top accent bar matches its product color */
.product-card[data-product="careertour"]  { --card-accent: linear-gradient(90deg, #FB7185, #F43F5E); }
.product-card[data-product="studyin"]     { --card-accent: linear-gradient(90deg, #34D399, #059669); }
.product-card[data-product="housinghub"]  { --card-accent: linear-gradient(90deg, #FBBF24, #F59E0B); }
.product-card[data-product="alumnihub"]   { --card-accent: linear-gradient(90deg, #A78BFA, #7C3AED); }
.product-card[data-product="evf"]         { --card-accent: linear-gradient(90deg, #38BDF8, #1F3A5F); }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mint);
}
.product-card:hover::before { opacity: 1; }

/* Product icon tiles — large, square, centered icons */
.product-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}
.product-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.9;
}

/* Per-product vivid colors with subtle gradient */
.product-icon--ct  { background: linear-gradient(135deg, #FB7185 0%, #F43F5E 100%); }   /* coral / rose */
.product-icon--si  { background: linear-gradient(135deg, #34D399 0%, #059669 100%); }   /* emerald */
.product-icon--hh  { background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%); color: #142540; }   /* amber */
.product-icon--ah  { background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%); }   /* violet */
.product-icon--evf { background: linear-gradient(135deg, #38BDF8 0%, #1F3A5F 100%); }   /* sky → navy */

.product-icon .badge {
  position: absolute;
  top: -10px; right: -14px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* Center product card text under the icon */
.product-card {
  text-align: center;
  padding: 36px 28px 28px;
}
.product-card h3 { text-align: center; }
.product-card .product-tag { text-align: center; }
.product-card p:not(.product-tag) { text-align: left; }
.product-card .product-link {
  margin-top: auto;
  justify-content: center;
  align-self: center;
}
.product-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.product-tag {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mint-dark);
  margin: 0 0 14px;
}
.product-card p:not(.product-tag) {
  color: var(--gray-700);
  font-size: 15px;
  margin: 0 0 20px;
  flex: 1;
}
.product-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s ease;
}
.product-card:hover .product-link {
  gap: 8px;
  color: var(--mint-dark);
}

/* ============ VALUES ============ */
.values {
  padding: 96px 0;
  background: var(--white);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value {
  text-align: left;
}
.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(61,217,176,.12);
  color: var(--mint-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-icon svg { width: 22px; height: 22px; }
.value h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.value p {
  font-size: 14.5px;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.55;
}

/* ============ CONTACT ============ */
.contact {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--white) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 12px 0 16px;
}
.contact-copy p {
  font-size: 16.5px;
  color: var(--gray-700);
  max-width: 460px;
  margin: 0 0 28px;
}
.contact-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-meta li {
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
  font-size: 14.5px;
  color: var(--gray-700);
}
.contact-meta li strong {
  display: block;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-meta li a {
  font-weight: 600;
  color: var(--navy);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31,58,95,.08);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-disclaimer {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin: 14px 0 0;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img {
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  max-width: 340px;
  margin: 0 0 20px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge-pill {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
}
.site-footer h5 {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 700;
  margin: 0 0 16px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: rgba(255,255,255,.8);
  font-size: 14.5px;
  font-weight: 500;
}
.site-footer ul a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .product-grid,
  .value-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 56px 0 64px; }
  .hero-grid { gap: 32px; }
  .main-nav a:not(.btn) { display: none; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .products { padding: 64px 0; }
  .values { padding: 64px 0; }
  .contact { padding: 64px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .product-grid { gap: 16px; }
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 36px; }
  .hero-meta { gap: 20px; }
  .hero-meta strong { font-size: 22px; }
}
