/* =====================================================================
   IKG Learning Solution — LIGHT theme (itikegyani.com inspired)
   Saffron + navy + green on a clean light surface.
   Same components/animations as the dark theme; only colours differ.
   ===================================================================== */

:root {
  /* ---- Surfaces (light) ---- */
  --bg: #F4F6FA;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F7F9FC;
  --border: rgba(15, 22, 41, 0.10);
  --border-glow: rgba(255, 107, 0, 0.45);

  /* ---- Text (dark on light) ---- */
  --text: #0F1629;
  --muted: #4A4F6A;
  --muted-2: #8B90A7;

  /* ---- Brand accents (itikegyani palette) ---- */
  --saffron: #FF6B00;
  --saffron-light: #FF9A3C;
  --saffron-dark: #E25C00;
  --gold: #F5A623;
  --green: #00885A;
  --sky: #2E9BE6;
  --navy: #14274A;

  /* Compatibility aliases (values chosen for readability on light bg) */
  --blue: #FF6B00;
  --cyan: #FF6B00;
  --purple: #F5A623;
  --accent: var(--saffron);

  --grad: linear-gradient(135deg, #FF9A3C 0%, #FF6B00 48%, #F5A623 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,107,0,.10), rgba(245,166,35,.10));

  --shadow-card: 0 1px 3px rgba(15,22,41,.06), 0 12px 30px -18px rgba(15,22,41,.18);
  --shadow-glow: 0 0 0 1px rgba(255,107,0,.14), 0 22px 50px -24px rgba(255,107,0,.35);
  --radius: 16px;
  --radius-sm: 10px;

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Animated background layers ---- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(255,107,0,.07), transparent 60%),
    radial-gradient(50vw 50vw at 100% 0%, rgba(245,166,35,.07), transparent 55%),
    radial-gradient(50vw 40vw at 50% 120%, rgba(0,136,90,.06), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,22,41,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,22,41,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255,107,0,.10), transparent 60%);
  transform: translate(-50%, -50%); transition: opacity .3s; opacity: 0;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1440px; }
section { position: relative; padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--muted); margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--saffron-dark);
  padding: 6px 14px; border: 1px solid rgba(255,107,0,.25);
  border-radius: 999px; background: rgba(255,107,0,.07);
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: all .25s ease;
  position: relative; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #ffffff; box-shadow: 0 10px 26px -10px rgba(255,107,0,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255,107,0,.7); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); box-shadow: var(--shadow-card); }
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron-dark); background: rgba(255,107,0,.04); }
.btn-block { width: 100%; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden; box-shadow: var(--shadow-card);
}
.card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(255,107,0,.18);
  color: var(--saffron); margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---- Grid ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Header / Nav ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom-color: var(--border); box-shadow: 0 4px 20px -12px rgba(15,22,41,.2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(255,107,0,.6); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--saffron-dark); background: rgba(255,107,0,.08); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; }
@media (max-width: 960px) { .nav-links, .nav-actions .btn { display: none; } .nav-toggle { display: grid; place-items: center; } }
.mobile-menu { position: fixed; inset: 72px 0 0; z-index: 49; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); transform: translateX(100%); transition: transform .35s ease; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; border: 1px solid var(--border); color: var(--text); }

/* ---- Hero ---- */
.hero { padding-top: 150px; min-height: 92vh; display: flex; align-items: center; }
.hero-badge { margin-bottom: 22px; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.15rem; max-width: 52ch; }
.type-line { min-height: 1.4em; font-family: var(--mono); color: var(--saffron-dark); }
.type-cursor { display: inline-block; width: 10px; background: var(--saffron); margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Terminal — intentionally kept as a dark "code" widget for premium contrast */
.terminal { border-radius: 14px; border: 1px solid rgba(15,22,41,.12); background: #0B1220; overflow: hidden; font-family: var(--mono); box-shadow: 0 24px 50px -24px rgba(15,22,41,.35); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.terminal-bar .tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.terminal-bar span { margin-left: auto; color: #6b779b; font-size: .8rem; }
.terminal-body { padding: 18px; font-size: .88rem; line-height: 1.9; color: #cbd5e1; }
.terminal-body .prompt { color: #FF9A3C; }
.terminal-body .out { color: #9aa7c7; }
.terminal-body .ok { color: #4ade80; }

.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- Stats ---- */
.stat { text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: .95rem; }

/* ---- Timeline ---- */
.timeline { position: relative; margin: 40px 0; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--grad); opacity: .6; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--saffron); box-shadow: 0 0 0 4px rgba(255,107,0,.12); }

/* ---- Accordion ---- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); }
.accordion-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 18px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.accordion-q .chev { transition: transform .3s; color: var(--saffron); }
.accordion-item.open .accordion-q .chev { transform: rotate(180deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-a-inner { padding: 0 20px 18px; color: var(--muted); }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; padding: 12px 15px; border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.form-control:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,107,0,.15); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-error { color: #dc2626; font-size: .82rem; margin-top: 6px; }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border); font-size: .92rem; }
.alert-success { background: rgba(0,136,90,.08); border-color: rgba(0,136,90,.3); color: #04613f; }
.alert-error { background: rgba(220,38,38,.07); border-color: rgba(220,38,38,.3); color: #b91c1c; }
.alert-info { background: rgba(255,107,0,.07); border-color: rgba(255,107,0,.3); color: var(--saffron-dark); }

/* ---- Chips ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; background: #eef1f7; border: 1px solid var(--border); color: var(--muted); }
.chip-cyan { color: var(--saffron-dark); border-color: rgba(255,107,0,.3); background: rgba(255,107,0,.08); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: #FFFFFF; padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--saffron-dark); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); transition: all .2s; background: #fff; }
.social-row a:hover { color: var(--saffron-dark); border-color: var(--border-glow); background: rgba(255,107,0,.06); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted-2); font-size: .85rem; }

/* ---- WhatsApp float ---- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---- Loader ---- */
#loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; transition: opacity .5s ease, visibility .5s; }
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-box { text-align: center; font-family: var(--mono); }
.loader-ring { width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(15,22,41,.1); border-top-color: var(--saffron); animation: spin 1s linear infinite; margin: 0 auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--saffron-dark); font-size: .9rem; }

/* ---- Reveal ----
   Hidden state applies ONLY when JS is active (html.js). Without JS — or if the
   scripts fail to load — content stays fully visible (never a blank page). */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted-2); padding: 100px 0 0; }
.breadcrumbs a:hover { color: var(--saffron-dark); }

/* ---- Page header ---- */
.page-hero { padding: 140px 0 40px; text-align: center; }
.page-hero p { max-width: 60ch; margin-inline: auto; }

/* ---- Marquee ---- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo { min-width: 150px; height: 70px; display: grid; place-items: center; color: var(--muted); font-weight: 700; letter-spacing: .04em; border: 1px solid var(--border); border-radius: 12px; padding: 0 24px; background: #fff; }

/* ---- Accessibility: reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track, .float { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.flex{display:flex}.items-center{align-items:center}.gap-2{gap:16px}.justify-between{justify-content:space-between}
.rating { color: #f59e0b; letter-spacing: 2px; }
