/* ===========================================================
   IEEC — Modern Design System (self-contained)
   International Education Research Certificate Center
   =========================================================== */

:root {
  --c-bg:        #0b1020;
  --c-bg-soft:   #0f1730;
  --c-surface:   #ffffff;
  --c-ink:       #0f172a;
  --c-ink-soft:  #475569;
  --c-muted:     #94a3b8;
  --c-line:      #e6e9f2;

  --c-brand:     #2563eb;
  --c-brand-2:   #4f46e5;
  --c-brand-ink: #1e3a8a;
  --c-accent:    #10b981;
  --c-accent-2:  #059669;
  --c-danger:    #ef4444;
  --c-warn:      #f59e0b;

  --grad-hero:   radial-gradient(1200px 600px at 80% -10%, #3b82f6 0%, transparent 55%),
                 radial-gradient(900px 500px at 0% 110%, #4f46e5 0%, transparent 50%),
                 linear-gradient(160deg, #0b1020 0%, #111a35 60%, #0b1020 100%);
  --grad-brand:  linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-2) 100%);

  --shadow-sm:   0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md:   0 8px 24px rgba(15,23,42,.10);
  --shadow-lg:   0 24px 60px rgba(15,23,42,.16);
  --shadow-glow: 0 18px 50px rgba(37,99,235,.35);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1200px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: #f6f8fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 { color: var(--c-ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--c-ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-brand);
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.18);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow.on-dark { color: #c7d2fe; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }

.sec-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); }
.sec-head p { font-size: 17px; color: var(--c-ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn i { transition: transform .18s ease; }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(37,99,235,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--c-brand-ink); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-dark { background: var(--c-ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #1e293b; }
.btn-outline { background: transparent; color: var(--c-brand); border-color: var(--c-brand); }
.btn-outline:hover { background: var(--c-brand); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav .logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 600; font-size: 15px; color: var(--c-ink-soft);
  padding: 9px 16px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-brand); background: rgba(37,99,235,.07); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--c-line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; font-size: 20px; color: var(--c-ink);
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
  background: #fff; z-index: 100; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-lg);
  padding: 28px 26px; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer-head img { height: 38px; }
.drawer-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--c-ink); }
.drawer-links { list-style: none; margin: 0 0 28px; padding: 0; }
.drawer-links li { border-bottom: 1px solid var(--c-line); }
.drawer-links a { display: block; padding: 16px 4px; font-weight: 600; font-size: 17px; }
.drawer-meta { font-size: 14px; color: var(--c-ink-soft); }
.overlay {
  position: fixed; inset: 0; background: rgba(8,12,24,.5); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--grad-hero); color: #fff; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding: 96px 0 104px;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.hero h1 .grad {
  background: linear-gradient(120deg, #a5b4fc, #6ee7b7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: #c7d2fe; font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art {
  position: relative; border-radius: var(--r-xl);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg); padding: 18px; backdrop-filter: blur(4px);
}
.hero-art img { border-radius: 20px; }

/* trust badges row */
.trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #c7d2fe; font-size: 14px; font-weight: 600; }
.trust-item i { color: #6ee7b7; }

/* ---------- Stat cards ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat .num { font-size: 40px; font-weight: 800; color: var(--c-brand-ink); letter-spacing: -.03em; }
.stat .num span { color: var(--c-accent); }
.stat .label { color: var(--c-ink-soft); font-weight: 600; font-size: 14px; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.25); }
.card .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(37,99,235,.1); color: var(--c-brand); font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; margin: 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); }
.media-frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
}
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 24px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--c-ink); }
.check-list li i {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-accent); color: #fff; display: grid; place-items: center; font-size: 12px;
}

/* ---------- Company / team cards ---------- */
.partner {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 32px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; align-items: center;
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner .logo-box {
  width: 100%; height: 120px; display: grid; place-items: center;
  background: #f8fafc; border-radius: var(--r-sm); margin-bottom: 20px; padding: 18px;
}
.partner .logo-box img { max-height: 84px; width: auto; object-fit: contain; }
.partner h3 { font-size: 19px; margin-bottom: 4px; }
.partner p { font-size: 14px; margin: 0 0 16px; }
.partner .verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-accent-2); }
.partner .verified i { color: var(--c-accent); }

.team-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; box-shadow: var(--shadow-md); }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-card {
  border-radius: var(--r-lg); padding: 48px 44px; position: relative; overflow: hidden;
}
.cta-card.brand { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.cta-card.light { background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); }
.cta-card .tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.cta-card.brand .tag { color: #c7d2fe; }
.cta-card.light .tag { color: var(--c-brand); }
.cta-card h3 { font-size: 28px; margin: 8px 0 22px; }
.cta-card.brand h3 { color: #fff; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: var(--grad-hero); color: #fff; text-align: center;
  padding: 84px 0 72px; position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 50px); }
.page-hero p { color: #c7d2fe; max-width: 560px; margin: 10px auto 0; font-size: 17px; }
.crumb { display: inline-flex; gap: 8px; font-size: 14px; color: #a5b4fc; margin-bottom: 16px; }

/* ---------- Verify ---------- */
.verify-panel {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 40px; margin-top: -64px; position: relative; z-index: 2;
}
.verify-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: stretch; }
.field-label { font-weight: 700; font-size: 15px; margin-bottom: 10px; display: block; color: var(--c-ink); }
.verify-input {
  width: 100%; padding: 16px 18px; font-size: 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line); background: #f8fafc; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.verify-input:focus { border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff; }
.verify-form-row { display: flex; gap: 12px; align-items: flex-end; }
.scan-card {
  background: var(--grad-brand); color: #fff; border-radius: var(--r-md);
  padding: 26px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-glow); transition: transform .2s;
}
.scan-card:hover { transform: translateY(-3px); }
.scan-card .row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.scan-card .row img { width: 24px; height: auto; border-radius: 3px; }
.scan-hint { font-size: 13px; color: #c7d2fe; }

/* result banners */
.result {
  border-radius: var(--r-lg); padding: 40px; text-align: center; margin-bottom: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.result .ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; }
.result h1 { font-size: clamp(22px, 3vw, 32px); margin: 0; color: #fff; }
.result h1 small { display: block; font-size: 16px; font-weight: 600; opacity: .9; margin-top: 6px; }
.result.success { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.result.success .ic { background: rgba(255,255,255,.2); }
.result.danger { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; }
.result.danger .ic { background: rgba(255,255,255,.2); }
.result .certs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.cert-chip {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; transition: background .15s, transform .15s;
}
.cert-chip:hover { background: #fff; color: var(--c-accent-2); transform: translateY(-2px); }
.cert-chip small { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.cert-detail {
  margin-top: 18px; background: rgba(255,255,255,.14); border-radius: var(--r-md);
  padding: 18px 24px; display: inline-flex; align-items: center; gap: 14px;
}
.cert-detail i { font-size: 28px; }
.cert-detail .t h4 { margin: 0; color: #fff; font-size: 18px; }
.cert-detail .t p { margin: 0; color: rgba(255,255,255,.85); }

#interactive.viewport { border-radius: var(--r-md); overflow: hidden; }
#interactive.viewport video, #interactive.viewport canvas { width: 100%; border-radius: var(--r-md); }
.drawingBuffer { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg); color: #cbd5e1; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer a { color: #cbd5e1; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #94a3b8; }
.footer-logo { height: 44px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.footer-contact i { color: var(--c-brand); margin-top: 3px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .15s, transform .15s;
}
.socials a:hover { background: var(--grad-brand); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: #94a3b8;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 18px;
  box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .25s; z-index: 40; cursor: pointer; border: none;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.bg-soft { background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 80px; }
  .hero-art { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .verify-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cards.cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .verify-panel { padding: 26px; margin-top: -48px; }
}
@media (max-width: 540px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .verify-form-row { flex-direction: column; align-items: stretch; }
  .cta-card { padding: 36px 28px; }
}
