/* ==========================================================
   Robo Trading: Main Stylesheet
   Brand teal is taken from the logo (#168495)
   ========================================================== */

:root {
  --teal: #168495;
  --teal-600: #0f6f7e;
  --teal-700: #0b5a66;
  --cyan: #2fd6e8;
  --cyan-soft: #a5f0f8;
  --navy: #071526;
  --navy-800: #0b1e33;
  --navy-700: #112a45;
  --ink: #0d1b2a;
  --body: #46596b;
  --muted: #7a8c9c;
  --line: #e2eaf0;
  --bg: #ffffff;
  --bg-soft: #f3f8fa;
  --green: #16c784;
  --red: #ea3943;
  --amber: #f5a524;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(7, 21, 38, .06);
  --shadow: 0 12px 40px rgba(7, 21, 38, .10);
  --shadow-lg: 0 30px 80px rgba(7, 21, 38, .18);

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 76px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--navy); color: #b9c7d6; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.text-center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
  background: rgba(22, 132, 149, .08);
  border: 1px solid rgba(22, 132, 149, .18);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.bg-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--cyan-soft); background: rgba(47, 214, 232, .08); border-color: rgba(47, 214, 232, .25); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.bg-dark .section-head p { color: #93a6ba; }
.grad-text {
  background: linear-gradient(100deg, var(--cyan) 0%, #5ee7c4 50%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--teal), #1ba7b8); color: #fff; box-shadow: 0 10px 26px rgba(22, 132, 149, .35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(22, 132, 149, .45); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 10px 18px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar + Header ---------- */
.topbar { background: var(--navy); color: #9fb3c6; font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #cfe0ec; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--cyan); }
.topbar svg { width: 14px; height: 14px; }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 12px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  font-family: var(--font-head); font-weight: 500; font-size: .97rem;
  color: var(--ink); padding: 10px 14px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.nav > a:hover, .nav-drop > button:hover, .nav > a.active, .nav-drop.active > button { color: var(--teal); background: rgba(22,132,149,.07); }
.nav-drop { position: relative; }
.nav-drop svg { width: 14px; height: 14px; transition: transform .2s; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu, .nav-drop.open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover svg, .nav-drop.open svg { transform: rotate(180deg); }
.drop-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: .95rem; }
.drop-menu a:hover, .drop-menu a.active { background: var(--bg-soft); color: var(--teal); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(22,132,149,.35), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(47,214,232,.12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #b9c7d6;
  min-height: calc(100vh - var(--header-h) - 40px);
  display: flex; align-items: center;
  padding: 60px 0 80px;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,214,232,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,214,232,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero-lead { font-size: 1.15rem; max-width: 560px; color: #a9bccd; margin-bottom: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: #cfe0ec; }
.hero-points svg { width: 18px; height: 18px; color: var(--green); }
.hero-visual { position: relative; height: 580px; }
#robot-canvas { position: absolute; inset: -40px -40px -70px -40px; width: calc(100% + 80px); height: calc(100% + 110px); }
#robot-canvas canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.robot-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.no-webgl .robot-fallback { display: grid; }
.float-card {
  position: absolute; z-index: 2;
  background: rgba(13, 34, 56, .72);
  border: 1px solid rgba(47,214,232,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 14px; padding: 14px 16px; color: #e6f3f9;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  font-size: .85rem; animation: floaty 6s ease-in-out infinite;
  pointer-events: none;
}
.float-card .fc-label { color: #8aa3b8; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.float-card .fc-value { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: #fff; }
.float-card .up { color: var(--green); }
.fc-1 { top: 8%; left: -2%; }
.fc-2 { bottom: 14%; right: -2%; animation-delay: -3s; }
.fc-3 { bottom: 4%; left: 6%; animation-delay: -1.5s; }
.fc-row { display: flex; align-items: center; gap: 10px; }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,199,132,.2); animation: pulse 1.8s infinite; }
.fc-spark { width: 110px; height: 34px; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(22,199,132,.25) } 50% { box-shadow: 0 0 0 9px rgba(22,199,132,0) } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-800); border-top: 1px solid rgba(47,214,232,.12); border-bottom: 1px solid rgba(47,214,232,.12); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 10px; padding: 14px 28px; color: #cfe0ec; font-family: var(--font-head); font-size: .92rem; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.06); }
.ticker-item b { color: #fff; font-weight: 600; }
.ticker-item svg { width: 18px; height: 18px; color: var(--cyan); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 85% 20%, rgba(22,132,149,.4), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-800));
  color: #a9bccd; padding: 90px 0 80px;
}
.page-hero .hero-grid-bg { mask-image: radial-gradient(ellipse at 80% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 10%, transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 820px; }
.page-hero p { font-size: 1.12rem; max-width: 680px; }
.breadcrumb { display: flex; gap: 8px; font-size: .9rem; margin-bottom: 18px; color: #7f97ab; }
.breadcrumb a { color: var(--cyan-soft); }
.page-hero-icon { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 220px; height: 220px; opacity: .9; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(22,132,149,.3); }
.card p { margin-bottom: 0; }
.icon-box {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(22,132,149,.12), rgba(47,214,232,.18));
  color: var(--teal); margin-bottom: 22px;
}
.icon-box svg { width: 28px; height: 28px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--font-head); font-weight: 600; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover svg { transform: translateX(4px); }

.service-card { overflow: hidden; }
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.service-card:hover::after { transform: scaleX(1); }

.dark-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 32px; transition: .3s; }
.dark-card:hover { border-color: rgba(47,214,232,.35); background: rgba(47,214,232,.04); transform: translateY(-4px); }
.dark-card .icon-box { background: rgba(47,214,232,.1); color: var(--cyan); }
.dark-card p { color: #93a6ba; margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow); margin-top: -60px; position: relative; z-index: 3; }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-num span { color: var(--teal); }
.stat-label { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: rgba(22,132,149,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23168495' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.bg-dark .check-list li { color: #cfe0ec; }
.bg-dark .check-list li::before { background-color: rgba(47,214,232,.12); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(22,132,149,.35) 0 8px, transparent 8px 16px); }
.step { text-align: center; position: relative; }
.step-num {
  counter-increment: step; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--teal);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--teal); position: relative;
  box-shadow: 0 0 0 8px var(--bg-soft);
}
.step-num::before { content: "0" counter(step); }
.step p { color: var(--muted); font-size: .96rem; }
.bg-dark .step-num { background: var(--navy); border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 8px var(--navy); }
.bg-dark .step p { color: #93a6ba; }

/* Visual panel (code / chart mock) */
.visual-panel {
  background: linear-gradient(160deg, var(--navy-700), var(--navy));
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  border: 1px solid rgba(47,214,232,.15);
}
.visual-panel::before { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(47,214,232,.25), transparent 70%); }
.vp-head { display: flex; gap: 7px; margin-bottom: 18px; position: relative; }
.vp-head i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.vp-head i:nth-child(2) { background: #febc2e; }
.vp-head i:nth-child(3) { background: #28c840; }
.vp-head span { margin-left: auto; color: #6f8aa1; font-size: .8rem; font-family: ui-monospace, monospace; }
.code { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .86rem; line-height: 1.75; color: #cfe0ec; white-space: pre; overflow-x: auto; position: relative; margin: 0; }
.code .k { color: #c792ea; } .code .f { color: #82aaff; } .code .s { color: #c3e88d; } .code .c { color: #5f7a91; } .code .n { color: #f78c6c; }

/* Course cards */
.course-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course-top { padding: 28px 28px 0; }
.course-banner { height: 150px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-700), var(--teal-700)); }
.course-banner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.course-banner .badge { position: absolute; top: 16px; left: 16px; z-index: 1; }
.course-body { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); margin: 4px 0 16px; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 15px; height: 15px; color: var(--teal); }
.course-body ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.course-body ul li { padding-left: 22px; position: relative; }
.course-body ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg); }
.course-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.course-foot .price { font-family: var(--font-head); color: var(--ink); font-weight: 600; font-size: .95rem; }

.badge { display: inline-block; font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.95); color: var(--teal-700); }
.badge-green { background: rgba(22,199,132,.12); color: #0d9a64; }
.badge-amber { background: rgba(245,165,36,.14); color: #b87305; }
.badge-red { background: rgba(234,57,67,.12); color: #c42630; }
.badge-teal { background: rgba(22,132,149,.1); color: var(--teal-700); }

/* Filter tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.tab { font-family: var(--font-head); font-weight: 500; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: .2s; }
.tab:hover { border-color: var(--teal); color: var(--teal); }
.tab.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.is-hidden { display: none !important; }

/* Strategy cards */
.strategy-card .strat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.strat-chart { height: 90px; margin: 4px 0 18px; border-radius: 12px; background: var(--bg-soft); overflow: hidden; }
.strat-chart svg { width: 100%; height: 100%; }
.strat-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.strat-facts div { font-size: .8rem; color: var(--muted); }
.strat-facts b { display: block; color: var(--ink); font-family: var(--font-head); font-size: .92rem; font-weight: 600; }

/* Tech chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; color: var(--ink); transition: .2s; }
.chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.bg-dark .chip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #dbe8f1; }

/* Mentor */
.mentor-card { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.mentor-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--navy-700), var(--teal-700)); box-shadow: var(--shadow-lg); }
.mentor-photo img, .mentor-photo svg { width: 100%; height: 100%; object-fit: cover; }
.mentor-tag { position: absolute; left: 20px; bottom: 20px; right: 20px; background: rgba(7,21,38,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; padding: 14px 18px; color: #fff; }
.mentor-tag b { font-family: var(--font-head); font-size: 1.1rem; display: block; }
.mentor-tag span { color: var(--cyan-soft); font-size: .88rem; }
.mentor-skills { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }

/* Pricing / Plans */
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 99px; }
.plan ul { margin-bottom: 26px; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-group-title { font-size: 1.1rem; color: var(--teal); margin: 44px 0 16px; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.faq-group-title:first-child { margin-top: 0; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: rgba(22,132,149,.4); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; }
.faq-q .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); position: relative; transition: .3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--teal); transform: translate(-50%, -50%); transition: .3s; }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .plus { background: var(--teal); }
.faq-item.open .plus::before, .faq-item.open .plus::after { background: #fff; }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; }
.faq-search { max-width: 560px; margin: 0 auto 50px; position: relative; }
.faq-search input { width: 100%; padding: 16px 20px 16px 52px; border-radius: 14px; border: 1px solid var(--line); font: inherit; font-size: 1rem; background: #fff; box-shadow: var(--shadow-sm); }
.faq-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: radial-gradient(500px 300px at 90% 0%, rgba(47,214,232,.35), transparent 60%), linear-gradient(135deg, var(--teal-700), var(--navy-800));
  color: #cfe0ec; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn-primary { background: #fff; color: var(--teal-700); box-shadow: none; }
.cta-band .btn-primary:hover { color: var(--teal-700); background: var(--cyan-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-item { display: flex; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info-item .icon-box { margin: 0; flex: none; width: 52px; height: 52px; }
.info-item h4 { margin-bottom: 4px; }
.info-item p, .info-item a { margin: 0; color: var(--body); }
.info-item a:hover { color: var(--teal); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .98rem; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(22,132,149,.12); }
.field .err { display: none; color: var(--red); font-size: .84rem; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 22px; }
.check-field input { margin-top: 5px; accent-color: var(--teal); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success .icon-box { margin: 0 auto 18px; background: rgba(22,199,132,.12); color: var(--green); }
.map-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-soft); border-radius: 16px; padding: 24px; }
.legal-toc h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .93rem; }
.legal-toc a { color: var(--body); }
.legal-toc a:hover { color: var(--teal); }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body li { margin-bottom: .5em; }
.legal-meta { display: inline-block; background: var(--bg-soft); border-radius: 10px; padding: 10px 16px; font-size: .9rem; margin-bottom: 30px; }
.notice { border-left: 4px solid var(--amber); background: rgba(245,165,36,.08); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 0 0 28px; color: var(--ink); }
.notice strong { color: #9a6104; }

/* Value / timeline */
.value-card { text-align: left; }
.mv-card { padding: 40px; border-radius: 20px; background: #fff; border: 1px solid var(--line); height: 100%; }
.mv-card.dark { background: linear-gradient(150deg, var(--navy-700), var(--navy)); border: 0; color: #b9c7d6; }
.mv-card.dark h3 { color: #fff; }

/* Footer */
.footer { background: var(--navy); color: #8ea3b6; padding-top: 80px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 14px; margin-bottom: 20px; }
.footer-logo img { height: 48px; width: auto; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #a8bccd; }
.footer a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cfe0ec; transition: .2s; }
.socials a:hover { background: var(--teal); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-risk { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; font-size: .82rem; line-height: 1.65; color: #6f879b; }
.footer-risk strong { color: #a8bccd; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Floating buttons */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 90; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf-code { font-family: var(--font-head); font-size: clamp(6rem, 18vw, 11rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--teal), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav > a, .nav-drop > button { padding: 10px 10px; font-size: .93rem; }
  .header-cta .btn-call { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .section { padding: 80px 0; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 20px 24px 40px;
    background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
  .nav-drop:hover .drop-menu { display: none; }
  .nav-drop.open .drop-menu { display: block; }
  .nav .mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
  .header-cta .btn-enrol { display: none; }
  .hero { min-height: 0; padding: 50px 0 90px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row, .hero-points { justify-content: center; }
  .hero-visual { height: 440px; order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .cta-band { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { padding: 44px 32px; text-align: center; }
  .cta-band .btn-row { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .mentor-card { grid-template-columns: 1fr; }
  .mentor-photo { max-width: 400px; margin: 0 auto; width: 100%; }
  .legal { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc { position: static; }
  .page-hero-icon { display: none; }
}
@media (min-width: 992px) { .nav .mobile-cta { display: none; } }
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .topbar .topbar-social, .topbar .tb-mail { display: none; }
  .topbar .container { justify-content: center; }
  .logo img { height: 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 20px; }
  .card, .dark-card { padding: 26px; }
  .hero-visual { height: 360px; }
  .float-card { font-size: .75rem; padding: 10px 12px; }
  .float-card .fc-value { font-size: 1rem; }
  .fc-3 { display: none; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .fc-spark { width: 80px; }
  .steps { grid-template-columns: 1fr; }
  .stat-num { font-size: 1.9rem; }
  .stat { padding: 24px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .btn-row .btn { flex: 1 1 auto; }
  .strat-facts { grid-template-columns: repeat(3, 1fr); }
  .map-wrap iframe { height: 320px; }
  .page-hero { padding: 64px 0 56px; }
}
.course-banner .badge { background: rgba(255,255,255,.95); }

/* Mobile menu: drop the header blur so the fixed menu is positioned against the viewport */
@media (max-width: 991px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { top: 0; bottom: 0; height: 100dvh; z-index: -1; padding-top: calc(var(--header-h) + 52px); }
  .header.scrolled .nav { padding-top: calc(var(--header-h) + 12px); }
  #robot-canvas { inset: -10px -16px -10px -16px; width: calc(100% + 32px); height: calc(100% + 20px); }
  .hero-visual { margin-bottom: 10px; }
}
@media (max-width: 640px) { .eyebrow { letter-spacing: .08em; font-size: .72rem; } }

/* ---------- Hero mascot (client artwork, animated) ---------- */
.mascot {
  position: absolute; z-index: 2; left: 50%; top: 2%;
  width: clamp(220px, 64%, 410px);
  transform: translateX(-50%);
  animation: mascotFloat 5s ease-in-out infinite;
  pointer-events: none;
}
.mascot-tilt {
  position: relative; width: 100%;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.mascot img {
  width: 100%; height: auto; display: block; max-width: none;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45)) drop-shadow(0 0 30px rgba(47, 214, 232, .18));
  user-select: none; -webkit-user-drag: none;
}
/* light sweep across the visor */
.mascot-visor {
  position: absolute; left: 21%; top: 19.5%; width: 58%; height: 33%;
  border-radius: 38% 38% 44% 44% / 42% 42% 50% 50%;
  overflow: hidden; mix-blend-mode: screen;
}
.mascot-visor::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 58% 48%, rgba(47, 214, 232, .35), transparent 70%);
  animation: visorPulse 2.6s ease-in-out infinite;
}
.mascot-visor::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 32%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(165, 240, 248, .32), transparent);
  transform: skewX(-14deg);
  animation: visorSweep 4.5s ease-in-out infinite;
}
/* pulsing glow on the AI badge */
.mascot-badge {
  position: absolute; left: 50%; top: 74.6%; width: 26%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47, 214, 232, .55), 0 0 26px 6px rgba(47, 214, 232, .35);
  mix-blend-mode: screen;
  animation: badgePulse 2.4s ease-out infinite;
}
@keyframes mascotFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -14px); } }
@keyframes visorPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes visorSweep { 0%, 55% { left: -40%; } 85%, 100% { left: 115%; } }
@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 214, 232, .55), 0 0 22px 4px rgba(47, 214, 232, .3); }
  70% { box-shadow: 0 0 0 18px rgba(47, 214, 232, 0), 0 0 30px 8px rgba(47, 214, 232, .45); }
  100% { box-shadow: 0 0 0 0 rgba(47, 214, 232, 0), 0 0 22px 4px rgba(47, 214, 232, .3); }
}
@media (max-width: 991px) { .mascot { width: clamp(200px, 58%, 330px); top: 3%; } }
@media (max-width: 640px) { .mascot { width: clamp(190px, 60%, 260px); } }
/* 3D robot is the hero; the PNG mascot only shows when WebGL is unavailable */
.mascot { display: none; }
.no-webgl .mascot { display: block; }
