:root {
  /* Palette — extracted from arceusx.app live site */
  --bg: #030304;
  --bg-section-dark: #101010;
  --bg-section-black: #000000;
  --text: #ffffff;
  --text-muted: #909296;
  --border: rgba(255, 255, 255, 0.1);

  --accent-blue: #0099ff;
  --accent-blue-2: #98bad9;
  --accent-blue-deep: #0054ae;
  --accent-pink: #f39;
  --accent-green: #10c010;

  /* Section gradients (lifted from the original Kadence overlays) */
  --bg-gradient-red: linear-gradient(to bottom,
    hsla(0, 100%, 34%, 0) 0%,
    hsla(0, 100%, 34%, 0.15) 25%,
    hsla(0, 100%, 24%, 0.7) 75%,
    hsla(0, 100%, 24%, 0) 100%);
  --bg-gradient-green: linear-gradient(to bottom,
    hsla(120, 100%, 34%, 0) 0%,
    hsla(120, 100%, 24%, 0.8) 100%);
  --bg-gradient-footer: radial-gradient(ellipse at bottom, #0054ae 10%, #000 80%);

  --btn-gradient: linear-gradient(90deg, #0099ff 0%, #98bad9 100%);

  --font-body: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --container-w: 1290px;
  --section-pad: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #ffffff; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { opacity: 0.85; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: 52px; font-weight: 500; }
h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.5px; }
h3 { font-size: 24px; font-weight: 500; }

@media (max-width: 1024px) {
  h2 { font-size: 30px; }
  h1 { font-size: 42px; }
}
@media (max-width: 767px) {
  h2 { font-size: 26px; }
  h1 { font-size: 36px; }
}

p { margin-bottom: 1em; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 50px;
}
@media (max-width: 1024px) { .container { padding: 0 40px; } }
@media (max-width: 767px) { .container { padding: 0 20px; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 50px;
}
@media (max-width: 1024px) { .nav { padding: 14px 40px; } }
@media (max-width: 767px) { .nav { padding: 12px 20px; } }

.brand img { width: 40px; height: 40px; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-heading);
}
.nav-links a:hover { color: #fff; opacity: 1; }
.nav-links a.active { color: var(--accent-blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 80px 0 70px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 0;
  color: #fff;
}

.hero-title sup {
  color: var(--accent-pink);
  font-family: var(--font-body);
  font-size: 0.35em;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0.08em;
  margin-left: 2px;
}

.hero-tag {
  color: var(--accent-pink);
  font-size: 16px;
  margin: 4px 0 28px;
}

/* iOS variant: blue badge + blue tag */
.hero-title sup.badge-ios { color: var(--accent-blue); }
.hero-tag.tag-ios { color: var(--accent-blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 40px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 18px;
  font-family: var(--font-heading);
  color: #fff !important;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
  background: var(--btn-gradient);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); opacity: 1; color: #fff; }
.btn .icon { width: 16px; height: 16px; }

.download-alt {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}
.download-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.download-alt a:hover { opacity: 0.85; }

/* ---------- Section ---------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-dark { background: var(--bg-section-dark); }
.section-red {
  background: var(--bg-section-dark);
  position: relative;
}
.section-red::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg-gradient-red);
  pointer-events: none;
}
.section-red > .container { position: relative; z-index: 1; }
.section-green { background: var(--bg-gradient-green); }
.section-black { background: var(--bg-section-black); }

.section h2 { text-align: center; margin-bottom: 24px; }

.section .lead {
  max-width: 70%;
  margin: 0 auto 16px;
  color: var(--text-muted);
  text-align: center;
}
@media (max-width: 767px) {
  .section .lead { max-width: 90%; text-align: left; }
}

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 991px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .features { grid-template-columns: 1fr; } }

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, background 0.3s;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}
.feature-card h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-heading);
}
.feature-card p {
  color: #fff;
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ---------- iOS features (2-column list + image) ---------- */
.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 24px;
}
.features-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 15px;
}
.features-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.features-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
}
.features-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent-blue); margin-top: 2px; }
.features-list li strong { color: #fff; font-weight: 600; }
.features-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.features-image img { width: 100%; height: auto; display: block; }
@media (max-width: 820px) {
  .features-split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Info table (green section) ---------- */
.info-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 80px;
  max-width: 760px;
  margin: 40px auto 36px;
  color: #fff;
}
.info-meta .col { display: grid; gap: 22px; }
.info-meta .item { text-align: center; }
.info-meta .label { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.info-meta .value {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  justify-content: center;
  width: 100%;
  margin: 8px 0 4px;
}

.center { text-align: center; }

/* ---------- FAQ ---------- */
.faqs { max-width: 900px; margin: 0 auto; }

.faq-title {
  color: var(--accent-green) !important;
  font-family: var(--font-body) !important;
  font-size: 36px !important;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 40px;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}
.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.25s;
  color: var(--text-muted);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-answer-inner { overflow: hidden; color: var(--text-muted); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer-inner { padding-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-gradient-footer);
  border-top: 2px solid var(--accent-blue);
  padding: 50px 0 24px;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p { color: rgba(255, 255, 255, 0.85); margin: 0; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #fff; font-size: 15px; }
.footer-nav a:hover { opacity: 0.8; }

.footer-social h4 { margin-bottom: 14px; font-weight: 500; font-size: 16px; color: #fff; font-family: var(--font-heading); }
.social-links { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1877f2;
  color: #fff;
}
.social-icon.discord { background: #5865f2; }
.social-icon.twitter { background: #000; }
.social-icon.youtube { background: #ff0000; }
.social-icon.linkedin { background: #0a66c2; }
.social-icon:hover { transform: scale(1.05); }

.footer-bottom {
  padding-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ---------- Blog index ---------- */
.blog-head { text-align: center; padding: 60px 0 10px; }
.blog-head h1 { margin-bottom: 12px; }
.blog-head .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
}
.blog-head .back-link:hover { background: rgba(255, 255, 255, 0.14); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 30px 0 80px;
}
@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); }
.blog-card-frame {
  background: #1c1c1f;
  position: relative;
  padding: 26px 0 0 0;
}
.blog-card-frame::before {
  content: "";
  position: absolute;
  top: 9px; left: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #555;
  box-shadow: 14px 0 0 #555, 28px 0 0 #555;
}
.blog-card-img { aspect-ratio: 16/10; background: #0f0f12; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.blog-card-body { background: #fff; padding: 18px 20px 22px; text-align: center; }
.blog-card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin: 0;
  line-height: 1.4;
}

/* ---------- Post (blog single) ---------- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 50px 0 80px;
}
@media (max-width: 991px) { .post-layout { grid-template-columns: 1fr; } }

.post h1 {
  font-size: 36px;
  margin-bottom: 16px;
  text-align: left;
}
.post .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.post .author img { width: 40px; height: 40px; border-radius: 50%; }
.post .author .by { color: #fff; font-size: 14px; line-height: 1.4; }
.post .author .by .date { color: var(--text-muted); font-size: 13px; }
.post .author .by a { color: var(--accent-blue); }

.post p { color: var(--text-muted); margin-bottom: 1.2em; }
.post h2 { font-size: 24px; margin: 1.8em 0 0.6em; text-align: left; }
.post h3 { font-size: 20px; margin: 1.5em 0 0.4em; text-align: left; }

.post ul.arrows { list-style: none; padding-left: 0; margin-bottom: 1.4em; }
.post ul.arrows li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  margin-bottom: 0.4em;
}
.post ul.arrows li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.post .embed-img {
  margin: 1em 0 1.4em;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.post .embed-img img { width: 100%; display: block; }

.post pre {
  background: #2a2735;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 14px;
  color: #fff;
  margin: 0.4em 0 1.6em;
  position: relative;
  line-height: 1.6;
}
.post pre code { font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace; }
.copy-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: #00d667;
  color: #1b1b1b;
  border: none;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: #1eff80; }

/* Sidebar — "Did you miss this..." */
.post-aside h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}
.post-aside .miss-list { display: flex; flex-direction: column; gap: 14px; }
.post-aside .miss-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: #fff;
  transition: background 0.2s;
}
.post-aside .miss-card:hover { background: rgba(255, 255, 255, 0.07); }
.post-aside .miss-card img {
  width: 64px; height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.post-aside .miss-card .t { font-size: 14px; line-height: 1.35; color: #fff; }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}
.back-link:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Downloads section (NEO + V5 cards) ---------- */
.section-downloads { background: var(--bg-section-dark); }
.section-downloads h2 { margin-bottom: 14px; }
.dl-sub { margin-bottom: 70px !important; }

.dl-group { margin-top: 64px; }
.dl-group:first-of-type { margin-top: 0; }

.dl-group-title {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  margin-bottom: 36px;
  font-family: var(--font-heading);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}
.badge-neo { color: var(--accent-pink); border: 1px solid var(--accent-pink); background: rgba(255, 51, 153, 0.08); }
.badge-v5  { color: var(--accent-blue); border: 1px solid var(--accent-blue); background: rgba(0, 153, 255, 0.08); }

.dl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 991px) { .dl-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .dl-cards { grid-template-columns: 1fr; } }

.dl-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, background 0.3s;
}
.dl-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}
.dl-card[data-status="updating"] { opacity: 0.7; }
.dl-card[data-status="updating"]:hover { transform: none; }

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.dl-icon { font-size: 26px; line-height: 1; }
.dl-card-head h4 {
  flex: 1;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  font-family: var(--font-heading);
}
.dl-status {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dl-status .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-on  { background: var(--accent-green); }
.dot-off { background: var(--text-muted); }

.dl-meta {
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dl-meta > div { text-align: center; }
.dl-meta dt {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}
.dl-meta dd {
  margin: 0;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.dl-card .btn { padding: 10px 24px; font-size: 15px; justify-content: center; }
.btn-block { display: flex; width: 100%; }
.btn-disabled {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-note {
  margin: 56px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 600px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  :root { --section-pad: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .social-links { justify-content: center; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(3, 3, 4, 0.97);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .info-meta { grid-template-columns: 1fr; gap: 20px; }
}
