:root {
  --bg: #0b1220;
  --bg-soft: #0f1728;
  --surface: #131c2e;
  --surface-hover: #172136;
  --border: #223049;
  --border-soft: #1b2437;
  --text: #e8eefb;
  --text-muted: #8d9cb5;
  --accent: #3b82f6;
  --radius: 14px;
  --wrap: 1140px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-hover: #ffffff;
  --border: #e2e8f2;
  --border-soft: #edf1f7;
  --text: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 14px 34px -18px rgba(15, 23, 42, .35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img,
svg { max-width: 100%; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HEADER */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.hub-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 70px;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hub-brand img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 8px;
}

.hub-brand-text { font-size: 20px; }

.hub-brand-dot {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
}

.hub-nav {
  display: none;
  align-items: center;
  gap: 26px;
}

.hub-nav a {
  position: relative;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.hub-nav a:hover { color: var(--text); }

.hub-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.lang-switch button {
  padding: 5px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.icon-btn:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.i-sun,
.i-moon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-moon { display: none; }

[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

/* HERO */
.hero {
  position: relative;
  padding: 86px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: 50%;
  width: 760px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 68%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin: 0 auto;
  max-width: 640px;
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #2f6fe0; color: #fff; }

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* SECTIONS */
.section { padding: 62px 0 10px; }

.section-head {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 3.4vw, 33px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.search {
  position: relative;
  max-width: 420px;
  margin: 0 auto 32px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

.search input::placeholder { color: var(--text-muted); }

.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

.search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.6); }

/* APP CARDS */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-card {
  --accent-card: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 24px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-card);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  background: var(--surface-hover);
  border-color: var(--accent-card);
  color: inherit;
}

.app-card[hidden] { display: none; }

.app-fixhub { --accent-card: #3b82f6; }
.app-menura { --accent-card: #f59e0b; }
.app-axio   { --accent-card: #10b981; }

.app-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-card) 14%, transparent);
  color: var(--accent-card);
}

.app-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.app-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.app-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-card) 14%, transparent);
  color: var(--accent-card);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.app-desc {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
}

.app-domain {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.app-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-card);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.app-go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}

.app-card:hover .app-go svg { transform: translateX(4px); }

/* LINK CARDS */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.link-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.link-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, border-color .2s, background .2s;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-hover);
  color: inherit;
}

.link-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}

.link-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-body { flex: 1; }

.link-title {
  display: block;
  margin-bottom: 3px;
  font-size: 16.5px;
  font-weight: 700;
}

.link-desc {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
}

.link-arrow {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s, stroke .2s;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  stroke: var(--accent);
}

/* MEDIA */
.media-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.media-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-card.pending {
  align-items: flex-start;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--bg-soft);
  box-shadow: none;
}

.media-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.media-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.media-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.media-card.pending p { margin-bottom: 0; }

.media-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.media-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 700;
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-hover);
  color: var(--text);
}

.social-card svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.contact-card {
  padding: 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, border-color .2s, background .2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--surface-hover);
  color: inherit;
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-value {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  word-break: break-word;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 14.5px;
}

.note p { margin: 0; }

.note svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.note a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}

.note a:hover { border-bottom-color: var(--accent); }

.empty {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

/* FOOTER */
.hub-footer {
  margin-top: 70px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.hub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.hub-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.hub-footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.hub-footer-brand span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: var(--text); }

.footer-meta {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-meta p { margin: 0; }

/* COOKIE CONSENT */
.cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0 0 22px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -18px 46px -22px rgba(0, 0, 0, .6);
  animation: cc-in .35s ease both;
}

.cc[hidden] { display: none; }

@keyframes cc-in {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.cc-inner { padding: 20px 24px; }

.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cc-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}

.cc-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}

.cc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.cc-text {
  margin: 10px 0 0;
  max-width: 900px;
  color: var(--text-muted);
  font-size: 14px;
}

.cc-text b { color: var(--text); }

.cc-text a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}

.cc-text a:hover { border-bottom-color: var(--accent); }

.cc-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cc-panel[hidden] { display: none; }

.cc-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
}

.cc-row + .cc-row { border-top: 1px solid var(--border-soft); }

.cc-row-text { flex: 1; }

.cc-row-title {
  display: block;
  margin-bottom: 2px;
  font-size: 14.5px;
  font-weight: 700;
}

.cc-row-desc {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.cc-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch {
  flex: none;
  position: relative;
  width: 42px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: #2b3854;
  transition: background .22s ease;
}

.cc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s ease;
}

.cc-row input:checked + .cc-switch { background: var(--accent); }

.cc-row input:checked + .cc-switch::after { transform: translateX(18px); }

.cc-row input:disabled + .cc-switch { background: #3b4a68; opacity: .75; }

.cc-row input:disabled ~ .cc-row-text { opacity: .85; }

.cc-row input:focus-visible + .cc-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cc-btn {
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.cc-btn:hover { transform: translateY(-1px); }

.cc-btn-primary { background: var(--accent); color: #fff; }
.cc-btn-primary:hover { background: #2f6fe0; }

.cc-btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.cc-btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cc-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: color .2s, border-color .2s, transform .2s;
}

.cc-fab[hidden] { display: none; }

.cc-fab:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cc-fab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-cc-open="1"] .cc-fab { display: none; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .media-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hub-nav { display: none; }
}

@media (min-width: 761px) {
  .hub-nav { display: flex; }
}

@media (max-width: 620px) {
  .hero { padding: 58px 0 44px; }
  .app-grid,
  .link-grid { grid-template-columns: 1fr; }
  .app-card { padding: 24px 20px 20px; }
  .social-grid { grid-template-columns: 1fr; }
  .hub-footer-inner { flex-direction: column; align-items: flex-start; }
  .cc-inner { padding: 16px 20px 20px; }
  .cc-actions .cc-btn { flex: 1 1 auto; }
  .cc-fab { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .cc { animation: none; }

  .btn:hover,
  .app-card:hover,
  .link-card:hover,
  .contact-card:hover,
  .social-card:hover,
  .cc-btn:hover,
  .cc-fab:hover { transform: none; }

  .app-card:hover .app-go svg,
  .link-card:hover .link-arrow { transform: none; }
}
