/* Hegemon Launcher template */
:root {
  --bg: #0b0c0f;
  --bg-2: #111318;
  --card: #16191f;
  --line: rgba(255, 255, 255, .09);
  --text: #eef0f3;
  --muted: #a3a9b4;
  --red: #e8493c;
  --blue: #2f93d6;
  --orange: #f08516;
  --navy: #1d2c3a;
  --accent: var(--orange);
  --radius: 18px;
  --maxw: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .08em; }
.brand img { border-radius: 8px; }
.brand span { display: flex; flex-direction: column; line-height: 1; font-size: .98rem; }
.brand small { font-size: .6rem; font-weight: 600; letter-spacing: .42em; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a, .nav .mod-menu a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .96rem; }
.nav ul a:hover, .nav ul .active > a { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.lang:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff !important;
  font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 14px; border: 0;
  box-shadow: 0 10px 30px -10px rgba(232, 73, 60, .7); transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 36px -10px rgba(232, 73, 60, .8); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 11px; box-shadow: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- landing: hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); isolation: isolate; }
.hero-bg {
  position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.3) brightness(.55); opacity: .75; transform: scale(1.15);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 60% at 20% 0%, transparent, var(--bg) 85%), linear-gradient(to bottom, transparent 55%, var(--bg));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 700; color: var(--orange); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c9cdd5; margin: 22px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- TV frame ---------- */
.tv { position: relative; }
.tv::before {
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px;
  background: conic-gradient(from 200deg, var(--red), var(--orange), var(--blue), var(--navy), var(--red));
  filter: blur(46px); opacity: .45;
}
.tv-screen {
  border-radius: 14px; overflow: hidden; background: #000;
  border: 7px solid #1b1d22; outline: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6);
}
.tv-screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-tv { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .5s; }
.hero-tv:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(0); }

/* ---------- stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 28px 18px; text-align: center; border-inline-start: 1px solid var(--line); }
.stats-grid div:first-child { border-inline-start: 0; }
.stats-grid b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; background: linear-gradient(135deg, var(--orange), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-grid span { color: var(--muted); font-size: .92rem; }

/* ---------- sections ---------- */
.features, .connect { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 80px); text-align: center; }
.sec-head h2, .echo h2, .final h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
.sub { color: var(--muted); margin-top: 16px; }

.feat { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.features .feat:nth-of-type(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.features .feat:nth-of-type(even) .feat-copy { order: 2; }
.features .feat:last-child { margin-bottom: 0; }
.feat h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; margin: 14px 0 16px; }
.feat-copy p { color: #bfc4cd; }
.chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: #fff; }
.chip.c1 { background: var(--red); } .chip.c2 { background: var(--blue); }
.chip.c3 { background: var(--orange); } .chip.c4 { background: #2b4157; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--text); font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.echo { background: linear-gradient(180deg, var(--bg), var(--bg-2) 20%, var(--bg-2) 80%, var(--bg)); padding: clamp(64px, 9vw, 110px) 0; }
.echo .feat { margin-block: 0; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.echo h2 { margin-bottom: 18px; }

/* ---------- connect ---------- */
.conn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.conn { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.conn-wide { grid-column: 1 / -1; }
.conn h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0; }
.conn .note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.conn-wide .note { margin: -8px 0 18px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.logos li { background: #f2f4f7; border-radius: 14px; width: 118px; height: 64px; padding: 10px 14px; overflow: hidden; min-width: 0; }
.logos img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- final CTA ---------- */
.final { padding: 0 0 clamp(64px, 9vw, 110px); }
.final-box {
  text-align: center; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(60% 120% at 50% 0%, rgba(232, 73, 60, .22), transparent 70%), radial-gradient(50% 100% at 90% 100%, rgba(47, 147, 214, .2), transparent 70%), var(--card);
}
.final-box img { margin: 0 auto 22px; border-radius: 18px; }
.final-box p { color: var(--muted); margin: 14px auto 28px; max-width: 32em; }

/* ---------- promo ---------- */
.promo-sec { padding: 0 0 clamp(40px, 6vw, 72px); }
.promo-box {
  text-align: center; padding: clamp(32px, 5vw, 56px) 24px; border-radius: 24px; border: 1px solid rgba(240, 133, 22, .35);
  background: radial-gradient(60% 140% at 50% 0%, rgba(240, 133, 22, .2), transparent 70%), var(--card);
}
.promo-box h2 { margin-bottom: 12px; }
.promo-box p:not(.eyebrow) { color: var(--muted); margin: 0 auto 24px; max-width: 34em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 36px 0; color: var(--muted); font-size: .92rem; }
.foot { display: grid; gap: 14px 24px; grid-template-columns: 1fr auto; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.foot-brand img { border-radius: 7px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a, .foot-links li a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-links ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.foot-note { grid-column: 1 / -1; font-size: .8rem; margin: 6px 0 0; max-width: 70em; opacity: .8; }

/* ---------- inner pages (Joomla content) ---------- */
.page { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 100px); min-height: 60vh; }
.page-grid { display: grid; gap: 40px; }
.page-grid.has-side { grid-template-columns: minmax(0, 1fr) 300px; }
.page-main { min-width: 0; max-width: 820px; }
.has-side .page-main { max-width: none; }
.page h1, .page h2.item-title, .page .page-header h1, .page .page-header h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .6em; }
.page h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.page h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.page p, .page li { color: #cfd3da; }
.page img { border-radius: 12px; }
.page a { color: var(--blue); }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.page table { border-collapse: collapse; width: 100%; }
.page th, .page td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.page blockquote { margin: 1.4em 0; padding: 4px 20px; border-inline-start: 4px solid var(--orange); color: var(--muted); }
.page code, .page pre { background: var(--card); border-radius: 8px; font-size: .92em; }
.page code { padding: 2px 6px; } .page pre { padding: 16px; overflow: auto; }
.page .article-info, .page .article-info-term { color: var(--muted); font-size: .85rem; }
.page .breadcrumb, .page .mod-breadcrumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.page .breadcrumb a, .page .mod-breadcrumbs a { color: var(--muted); }
.page input, .page select, .page textarea, .page .form-control {
  width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: inherit;
}
.page input[type=checkbox], .page input[type=radio] { width: auto; }
.page button, .page .btn-primary, .page .btn { cursor: pointer; }
.page button:not(.btn), .page .btn-primary { background: var(--orange); color: #fff; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; }
.page .alert, .page joomla-alert { display: block; padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 20px; }
.page-side .moduletable, .page-side .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.page-side h3 { margin-top: 0; font-size: 1.05rem; }
.page .pagination { list-style: none; display: flex; gap: 6px; padding: 0; flex-wrap: wrap; }
.page .pagination a, .page .pagination span { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }

/* ---------- error / offline ---------- */
.fullcenter { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px; }
.fullcenter img { margin: 0 auto 24px; border-radius: 18px; }
.fullcenter h1 { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 800; }
.fullcenter p { color: var(--muted); margin: 14px 0 28px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-tv, .hero-tv:hover, .btn, .btn:hover { transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feat, .features .feat:nth-of-type(even), .echo .feat { grid-template-columns: 1fr; }
  .features .feat:nth-of-type(even) .feat-copy { order: 0; }
  .hero-tv { transform: none; }
  .conn-grid { grid-template-columns: 1fr 1fr; }
  .page-grid.has-side { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid div:nth-child(3) { border-inline-start: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; }
  .nav-burger i, .nav-burger i::before, .nav-burger i::after { content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform .2s; }
  .nav-burger i::before { position: absolute; top: -6px; } .nav-burger i::after { position: absolute; top: 6px; }
  .nav {
    display: none; position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px;
  }
  .nav ul { flex-direction: column; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-end { justify-content: space-between; }
  .conn-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cta-row .btn { width: 100%; justify-content: center; }
  .logos li { width: calc(50% - 6px); }
}
