/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Nunito+Sans:wght@400;600;700&display=swap');

/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:           #060a14;
  --bg-card:      #0d1120;
  --bg-section:   rgba(13,17,32,0.97);
  --border:       rgba(255,255,255,0.08);
  --border-soft:  rgba(255,255,255,0.05);
  --text:         #e8eeff;
  --muted:        #8b96b8;
  --muted-light:  #6b759a;

  --gold:         #f0a500;
  --gold-soft:    rgba(240,165,0,0.14);
  --gold-border:  rgba(240,165,0,0.3);

  --blue:         #2563eb;
  --blue-soft:    rgba(37,99,235,0.14);
  --blue-border:  rgba(37,99,235,0.3);

  --good:         rgba(34,197,94,0.14);
  --good-border:  rgba(34,197,94,0.35);
  --good-text:    #86efac;

  --warn:         rgba(250,204,21,0.12);
  --warn-border:  rgba(250,204,21,0.35);
  --warn-text:    #fde68a;

  --shadow:       0 12px 32px rgba(0,0,0,0.5);
  --shadow-sm:    0 4px 14px rgba(0,0,0,0.35);
  --r:            16px;
  --r-sm:         10px;
  --r-lg:         22px;
  --header-h:     70px;
}

/* ─── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 1100px 600px at 15% 0%,  rgba(240,165,0,0.06)  0%, transparent 55%),
    radial-gradient(ellipse 900px 500px  at 90% 5%,  rgba(37,99,235,0.08)  0%, transparent 55%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: 'Outfit', system-ui, sans-serif; line-height: 1.25; }

/* ─── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #0e1e3d;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 24px rgba(14,30,61,0.55);
}

.topbar .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ─── Brand ────────────────────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  line-height: 1;
}

@media (max-width: 520px) {
  .brand-logo   { height: 36px; }
  .brand-text   { display: none; }
  .brand-divider{ display: none; }
}

/* ─── Nav dropdown ─────────────────────────────────────────────────────────── */
.navwrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.nav select {
  min-height: 48px;
  padding: 0 42px 0 16px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  min-width: 240px;
  max-width: 360px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.nav select:hover,
.nav select:focus {
  border-color: rgba(240,165,0,0.5);
  background: rgba(255,255,255,0.12);
}

.nav select option {
  color: #111827;
  background: #ffffff;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  border: 2px solid #c98a20;
  background: #122746;
  color: #f0a530;
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.login-btn::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a530' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='10' height='18' rx='2' ry='2'/%3E%3Cpath d='M10 12h10'/%3E%3Cpath d='m17 7 5 5-5 5'/%3E%3C/svg%3E");
}

.login-btn:hover,
.login-btn:focus {
  background: #173055;
  border-color: #e0a743;
  transform: translateY(-1px);
}

.login-btn:focus-visible {
  outline: 2px solid rgba(240,165,0,0.35);
  outline-offset: 2px;
}


/* ─── Container ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ─── Infographic ──────────────────────────────────────────────────────────── */
.infographic {
  width: 100%;
  margin: 0 0 22px;
  text-align: center;
}

.infographic img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  margin: 0 0 20px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, rgba(13,17,32,0.98), rgba(18,24,48,0.98));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,165,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero .chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: var(--gold-soft);
  letter-spacing: 0.01em;
}

/* ─── Grid ─────────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid > .span-2 { grid-column: 1 / -1; }

@media (min-width: 860px) {
  .grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ─── Section cards ────────────────────────────────────────────────────────── */
.section {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-section);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.section:hover { border-color: rgba(240,165,0,0.18); }

h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8eeff;
}

ul { margin: 8px 0 0 18px; padding: 0; }

li {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

li strong { color: var(--text); }

.small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ─── Callouts ─────────────────────────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--gold);
  padding: 12px 14px 12px 16px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  margin-top: 14px;
  font-size: 0.88rem;
}

.callout strong { color: var(--gold); font-weight: 700; }
.callout .small { margin-top: 4px; color: rgba(240,165,0,0.75); }
.callout a { color: var(--gold); text-decoration: underline; }
.callout a:hover { opacity: 0.85; }

.callout.warn {
  border-left-color: #fbbf24;
  background: var(--warn);
}
.callout.warn strong { color: var(--warn-text); }
.callout.warn .small { color: rgba(253,230,138,0.75); }

.callout.good {
  border-left-color: #22c55e;
  background: var(--good);
}
.callout.good strong { color: var(--good-text); }
.callout.good .small { color: rgba(134,239,172,0.75); }
.callout.good a { color: var(--good-text); }

/* ─── Keyboard ─────────────────────────────────────────────────────────────── */
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* ─── Video blocks ─────────────────────────────────────────────────────────── */
.video {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  background: rgba(255,255,255,0.02);
}

.video .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.video input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}

.video input:focus { border-color: var(--gold-border); }

.video button {
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.video button:hover {
  background: rgba(240,165,0,0.22);
  border-color: var(--gold);
}

.video .embed {
  margin-top: 14px;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  display: none;
}

.video iframe { width: 100%; height: 100%; border: 0; }

/* ─── Video grid ───────────────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: var(--r);
  padding: 16px;
  transition: border-color 0.2s;
}

.video-card:hover { border-color: rgba(240,165,0,0.2); }

.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.video-frame iframe { width: 100%; height: 100%; border: 0; }

.video-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  margin-top: 12px;
  color: var(--text);
}

.video-actions { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.video-actions a { color: var(--gold); text-decoration: underline; }

/* ─── Card grid ────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: var(--r);
  padding: 18px;
  transition: border-color 0.2s;
}

.card:hover { border-color: rgba(240,165,0,0.2); }
.card h4 { margin: 0 0 12px; font-size: 0.95rem; line-height: 1.3; font-weight: 700; color: var(--text); }

/* ─── Video embed inside card ──────────────────────────────────────────────── */
.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  margin-bottom: 12px;
}

.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* ─── Button ───────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  text-decoration: none;
  color: var(--gold);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.15s, border-color 0.15s;
}

.button:hover {
  background: rgba(240,165,0,0.22);
  border-color: var(--gold);
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  max-width: 1100px;
  margin: 36px auto 28px;
  padding: 18px 24px 0;
  color: var(--muted-light);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-soft);
}

.site-footer::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('img/imedia_genius_logo_transparent.png') center/contain no-repeat;
  opacity: 0.5;
  flex-shrink: 0;
}

.footer { display: none; }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .container          { padding: 18px 16px; }
  .hero               { padding: 20px; }
  .hero h2            { font-size: 1.3rem; }
  .section            { padding: 16px; }
  .topbar .container  { padding: 0 16px; }
  .nav select         { min-width: 160px; }
}


@media (max-width: 900px) {
  .topbar .container,
  .header-inner {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: stretch;
  }

  .navwrap,
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    justify-content: flex-end;
  }

  .nav select {
    flex: 1 1 260px;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav select,
  .login-btn {
    width: 100%;
  }
}




/* Mobile header alignment to match iMedia Genius main site */
.jump-label {
  display: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .brand-text { display: flex !important; }
  .brand-divider { display: block !important; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: 0.64rem; letter-spacing: 0.07em; }

  .navwrap,
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .jump-label {
    display: block;
  }

  .nav select {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
    min-height: 52px;
  }

  .login-btn {
    width: 62px;
    min-width: 62px;
    min-height: 52px;
    padding: 0;
    font-size: 0;
    gap: 0;
    border-radius: 16px;
  }

  .login-btn::before {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (max-width: 520px) {
  .brand-text { display: flex !important; }
  .brand-divider { display: block !important; height: 28px; }
  .brand-logo { height: 34px; }
  .brand-name { font-size: 0.92rem; }
  .brand-sub { font-size: 0.56rem; letter-spacing: 0.06em; }

  .nav {
    grid-template-columns: max-content minmax(0, 1fr) auto;
    gap: 10px;
  }

  .jump-label {
    font-size: 0.8rem;
  }

  .login-btn {
    width: 58px;
    min-width: 58px;
  }
}
