/* =========================================================
   SALA — Design System
   B2B education platform for ASEAN institutions
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* Brand */
  --blue:        #0050D2;   /* primary */
  --blue-600:    #0A4BD0;
  --blue-700:    #093BA6;
  --blue-800:    #082E7E;
  --blue-tint:   #E9F0FF;
  --blue-tint-2: #D6E4FF;
  --navy:        #0A1430;   /* dark sections / ink-on-color */
  --navy-soft:   #111c3f;

  /* Ink + neutrals (cool toned) */
  --ink:    #0B1220;
  --ink-2:  #28324a;
  --muted:  #5b6577;
  --muted-2:#8a93a6;
  --line:   #E5E9F1;
  --line-2: #EEF1F7;

  /* Surfaces */
  --bg:      #FFFFFF;
  --bg-soft: #F5F8FD;
  --bg-soft-2:#EFF3FA;

  /* Effects */
  --radius:   14px;
  --radius-lg:22px;
  --radius-sm:10px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.05), 0 2px 8px rgba(11,18,32,.04);
  --shadow:    0 6px 24px rgba(11,18,32,.07), 0 1px 3px rgba(11,18,32,.05);
  --shadow-lg: 0 24px 60px rgba(8,30,90,.16), 0 6px 16px rgba(11,18,32,.06);
  --shadow-blue: 0 18px 44px rgba(10,75,208,.28);

  /* Layout */
  --maxw: 1200px;
  --gutter: 24px;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:var(--font); color:var(--ink);
  background:var(--bg); line-height:1.55;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--blue); color:#fff; }

/* ---------- Layout helpers ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
.section{ padding:120px 0; }
.section-sm{ padding:80px 0; }
.section-tight{ padding:72px 0; }
.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }

/* ---------- Type ---------- */
h1,h2,h3,h4{ margin:0; line-height:1.04; letter-spacing:-0.02em; font-weight:700; }
.display{
  font-size:clamp(40px, 5.6vw, 78px); font-weight:700; letter-spacing:-0.035em;
  line-height:.98;
}
.h1{ font-size:clamp(34px,4.2vw,60px); letter-spacing:-0.03em; }
.h2{ font-size:clamp(28px,3.2vw,46px); letter-spacing:-0.028em; }
.h3{ font-size:clamp(21px,1.7vw,27px); letter-spacing:-0.02em; font-weight:600; }
.lead{ font-size:clamp(18px,1.45vw,22px); color:var(--muted); line-height:1.5; font-weight:400; }
.balance{ text-wrap:balance; }
.pretty{ text-wrap:pretty; }
.measure{ max-width:62ch; }
.measure-sm{ max-width:46ch; }

.eyebrow{
  font-family:var(--mono); font-size:12.5px; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--blue);
  display:inline-flex; align-items:center; gap:10px; white-space:nowrap;
}
.eyebrow .num{ color:var(--muted-2); }
.eyebrow.on-dark{ color:#7FB0FF; }
.eyebrow.on-dark .num{ color:#5b6ba0; }

.kicker{ font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }

/* ---------- Buttons ---------- */
.btn{
  --bh:52px;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  height:var(--bh); padding:0 24px; border-radius:999px;
  font-family:var(--font); font-size:15.5px; font-weight:600; letter-spacing:-0.01em;
  cursor:pointer; border:1px solid transparent; white-space:nowrap;
  transition:transform .14s ease, background .18s ease, box-shadow .2s ease, color .18s ease, border-color .18s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--blue); color:#fff; box-shadow:0 8px 20px rgba(10,75,208,.22); }
.btn-primary:hover{ background:var(--blue-700); box-shadow:0 12px 26px rgba(10,75,208,.30); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:#000; }
.btn-ghost{ background:#fff; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-ghost-dark{ background:transparent; color:#fff; border-color:rgba(255,255,255,.28); }
.btn-ghost-dark:hover{ border-color:#fff; background:rgba(255,255,255,.06); }
.btn-link{ height:auto; padding:0; background:none; color:var(--blue); font-weight:600; gap:6px; }
.btn-link:hover .arr{ transform:translateX(4px); }
.arr{ transition:transform .16s ease; display:inline-block; }
.btn-lg{ --bh:58px; padding:0 30px; font-size:16.5px; }
.btn-sm{ --bh:42px; padding:0 18px; font-size:14px; }

/* ---------- Pills / tags ---------- */
.pill{
  display:inline-flex; align-items:center; gap:8px; height:32px; padding:0 14px;
  border-radius:999px; background:var(--blue-tint); color:var(--blue-700);
  font-size:13px; font-weight:600; letter-spacing:-0.01em;
}
.pill.ghost{ background:#fff; border:1px solid var(--line); color:var(--ink-2); }
.pill.on-dark{ background:rgba(255,255,255,.08); color:#cfe0ff; border:1px solid rgba(255,255,255,.14); }
.dot{ width:7px; height:7px; border-radius:50%; background:var(--blue); }
.dot.live{ background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.18); }

/* ---------- Cards ---------- */
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.card-pad{ padding:30px; }

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.82); backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--line);
}
.nav-inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
  height:68px; display:flex; align-items:center; gap:32px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:21px; letter-spacing:-0.03em; }
.brand img{ height:30px; width:auto; }
.brand-logo{ height:30px; width:auto; display:block; }
.nav-links{ display:flex; align-items:center; gap:30px; margin-left:8px; }
.nav-links a{ font-size:15px; font-weight:500; color:var(--ink-2); transition:color .15s; position:relative; }
.nav-links a:hover{ color:var(--blue); }
.nav-links a.active{ color:var(--blue); }
.nav-cta{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.nav-cta .signin{ font-size:15px; font-weight:600; color:var(--ink-2); white-space:nowrap; }
.nav-cta .signin:hover{ color:var(--blue); }
.nav-burger{ display:none; }
.mobile-menu{ display:none; }
@media (max-width:720px){
  .mobile-menu{ display:flex; flex-direction:column; gap:4px; padding:8px 24px 20px;
    border-top:1px solid var(--line); background:#fff; max-height:0; overflow:hidden;
    transition:max-height .3s ease, padding .3s ease; padding-top:0; padding-bottom:0; }
  .mobile-menu.open{ max-height:340px; padding-top:12px; padding-bottom:20px; }
  .mobile-menu a{ padding:11px 4px; font-size:16px; font-weight:600; color:var(--ink-2); border-bottom:1px solid var(--line-2); }
  .mobile-menu a.btn{ border-bottom:0; color:#fff; }
}

/* ---------- Stats ---------- */
.stat .n{ font-size:clamp(34px,3.6vw,52px); font-weight:700; letter-spacing:-0.035em; line-height:1; }
.stat .l{ font-family:var(--mono); font-size:12.5px; letter-spacing:.04em; color:var(--muted); margin-top:10px; text-transform:uppercase; }
.stat.on-dark .n{ color:#fff; }
.stat.on-dark .l{ color:#8da3cf; }

/* ---------- Section heading block ---------- */
.shead{ display:flex; flex-direction:column; gap:18px; }
.shead .lead{ margin-top:2px; }

/* ---------- Dividers / rules ---------- */
.rule{ height:1px; background:var(--line); border:0; margin:0; }

/* ---------- Dark section ---------- */
.dark{ background:var(--navy); color:#fff; }
.dark .lead{ color:#a9b8da; }
.dark .card{ background:var(--navy-soft); border-color:rgba(255,255,255,.09); box-shadow:none; }

/* ---------- Logo strip ---------- */
.logos{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 40px; }
.logo-chip{
  font-family:var(--mono); font-size:14px; letter-spacing:.02em; color:var(--muted);
  font-weight:500; display:inline-flex; align-items:center; gap:9px;
}

/* ---------- Footer ---------- */
.footer{ background:var(--navy); color:#cdd7ee; padding:72px 0 40px; }
.footer a{ color:#9fb0d6; font-size:14.5px; }
.footer a:hover{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1.7fr; gap:40px; }
.footer .foffice{ display:flex; flex-direction:column; gap:3px; }
.footer .fo-city{ color:#cdd9f3; font-weight:600; font-size:14px; display:flex; align-items:center; gap:8px; }
.footer .fo-tag{ font-family:var(--mono); font-size:9.5px; letter-spacing:.07em; text-transform:uppercase;
  color:#7FB0FF; background:rgba(127,176,255,.14); border-radius:5px; padding:2px 7px; white-space:nowrap; }
.footer .fo-ent{ color:#9fb0d6; font-size:12.5px; }
.footer .fo-addr{ color:#6b7ba6; font-size:12.5px; line-height:1.45; }
.footer h5{ font-family:var(--mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#6b7ba6; margin:0 0 18px; font-weight:500; }
.footer .col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-bottom{ margin-top:56px; padding-top:26px; border-top:1px solid rgba(255,255,255,.1);
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  font-size:13.5px; color:#7d8cb4; }

/* ---------- Placeholder media ---------- */
.ph{
  position:relative; border-radius:var(--radius); overflow:hidden;
  background:
    repeating-linear-gradient(135deg, #eef2fb 0 14px, #e7edf8 14px 28px);
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
}
.ph .ph-label{
  font-family:var(--mono); font-size:12px; letter-spacing:.04em; color:#8694b4;
  background:rgba(255,255,255,.78); padding:7px 12px; border-radius:8px;
  border:1px solid var(--line);
}
.ph.dark{ background:repeating-linear-gradient(135deg,#15224a 0 14px,#0f1a3c 14px 28px); border-color:rgba(255,255,255,.08); }
.ph.dark .ph-label{ background:rgba(10,20,48,.7); color:#8da3cf; border-color:rgba(255,255,255,.12); }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- Grids ---------- */
.grid{ display:grid; gap:24px; }
.g-2{ grid-template-columns:repeat(2,1fr); }
.g-3{ grid-template-columns:repeat(3,1fr); }
.g-4{ grid-template-columns:repeat(4,1fr); }

/* ---------- Utility ---------- */
.flex{ display:flex; }
.aic{ align-items:center; }
.jcb{ justify-content:space-between; }
.gap-8{ gap:8px;} .gap-12{ gap:12px;} .gap-16{ gap:16px;} .gap-24{ gap:24px;}
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-40{margin-top:40px;} .mt-56{margin-top:56px;}
.wrapf{ flex-wrap:wrap; }

/* ============================================================
   Hero → Career Center bridge (shared: platform + solutions)
   ============================================================ */
.bridge{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:0; }
.bridge-panel{ background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; }
.bridge-panel .bp-head{ display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--line-2); }
.bridge-panel .bp-head .bp-logo{ font-weight:700; font-size:14px; letter-spacing:-0.01em; display:flex; align-items:center; gap:8px; }
.bridge-panel .bp-head .bp-url{ margin-left:auto; font-family:var(--mono); font-size:10.5px; color:var(--muted-2); }
.bridge-panel .bp-body{ padding:18px; }
.bp-tag{ font-family:var(--mono); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--blue); margin-bottom:12px; }

/* Hero side (student) — Hero brand blue (brighter than Sala royal) */
.hero-side .bp-head{ background:linear-gradient(90deg, #EAF0FF, #fff); }
.hero-pill{ display:inline-flex; align-items:center; gap:7px; height:26px; padding:0 11px; border-radius:999px; background:#E4ECFF; color:#2E5BE0; font-size:12px; font-weight:600; }
.persona{ display:flex; align-items:center; gap:13px; }
.persona .pav{ width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,#6E9BFF,#2F6BFF); flex:none; box-shadow:0 4px 12px rgba(47,107,255,.32); }
.persona .pn{ font-weight:700; font-size:15px; }
.persona .ps{ font-size:12.5px; color:var(--muted); }
.traits{ display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.trait{ font-size:12px; font-weight:600; color:var(--ink-2); background:var(--bg-soft); border:1px solid var(--line); border-radius:999px; padding:5px 11px; }
.trait.hot{ background:#E4ECFF; border-color:#C7D7FF; color:#2E5BE0; }
.match-rows{ margin-top:16px; display:flex; flex-direction:column; gap:9px; }
.match-row{ display:flex; align-items:center; gap:10px; font-size:12.5px; }
.match-row .mlbl{ flex:1; color:var(--ink-2); }
.match-row .mtrack{ width:64px; height:6px; border-radius:4px; background:var(--bg-soft-2); overflow:hidden; }
.match-row .mtrack i{ display:block; height:100%; background:linear-gradient(90deg,#2F6BFF,#6E9BFF); border-radius:4px; }
.match-row .mpct{ font-family:var(--mono); font-size:11px; color:var(--muted); width:30px; text-align:right; }

/* Connector */
.bridge-link{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:0 22px; position:relative; }
.bridge-link .bl-line{ width:2px; height:34px; background:repeating-linear-gradient(180deg,var(--blue) 0 6px, transparent 6px 12px); }
.bridge-link .bl-badge{ display:flex; flex-direction:column; align-items:center; gap:6px; background:var(--blue); color:#fff; border-radius:14px; padding:12px 14px; box-shadow:var(--shadow-blue); min-width:96px; text-align:center; }
.bridge-link .bl-badge img{ height:22px; }
.bridge-link .bl-badge .blt{ font-size:11px; font-weight:600; line-height:1.2; }
.bridge-link .bl-sub{ font-family:var(--mono); font-size:10px; color:var(--muted); text-align:center; max-width:120px; line-height:1.4; }

/* Sala side (career center) */
.sala-side .bp-head{ background:linear-gradient(90deg, var(--blue-tint), #fff); }
.connected{ display:inline-flex; align-items:center; gap:7px; height:26px; padding:0 11px; border-radius:999px; background:#dcfce7; color:#16803a; font-size:12px; font-weight:600; }
.cc-row{ display:flex; align-items:center; gap:11px; padding:10px 0; border-bottom:1px solid var(--line-2); }
.cc-row:last-child{ border-bottom:0; }
.cc-row .cav{ width:32px; height:32px; border-radius:50%; flex:none; }
.cc-row .cn{ font-size:13px; font-weight:600; flex:1; }
.cc-row .cn small{ display:block; font-weight:400; color:var(--muted); font-size:11px; }
.cc-row .cbadge{ font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px; background:var(--blue-tint); color:var(--blue-700); }
.cc-row .cbadge.hero{ background:#E4ECFF; color:#2E5BE0; display:inline-flex; align-items:center; gap:5px; }

@media (max-width:860px){
  .bridge{ grid-template-columns:1fr; gap:0; }
  .bridge-link{ flex-direction:row; padding:18px 0; }
  .bridge-link .bl-line{ width:34px; height:2px; background:repeating-linear-gradient(90deg,var(--blue) 0 6px, transparent 6px 12px); }
}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  .g-4{ grid-template-columns:repeat(2,1fr); }
  .g-3{ grid-template-columns:repeat(2,1fr); }
  .section{ padding:88px 0; }
}
@media (max-width:720px){
  .nav-links{ display:none; }
  .nav-burger{ display:inline-flex; }
  .nav-cta .signin{ display:none; }
  .g-2,.g-3,.g-4{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .section{ padding:64px 0; }
  .display{ font-size:clamp(38px,11vw,52px); }
}
