/* ===== V12 Homepage — Responsive Rewrite ===== */

/* ─── Background & Body Overlay ─── */
body.idx-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../assets/v12-home-bg.webp') center top / 100% auto no-repeat;
  opacity: 0;
  filter: brightness(1.24) saturate(1.08) contrast(1.06);
  pointer-events: none;
  z-index: 0;
  transition: opacity .4s ease;
}
body.idx-page-body.v12-ready::before {
  opacity: 0.9;
}
@media (max-width: 820px) {
  body.idx-page-body::before {
    background-size: cover;
    background-position: right top;
  }
}
@media (max-width: 480px) {
  body.idx-page-body::before {
    background-size: 200% auto;
    background-position: 75% top;
  }
}

/* ─── Grid Canvas ─── */
.grid-canvas {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 92%);
  z-index: 0;
}

/* ─── Header ─── */
.idx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(64px, 8vw, 80px);
  padding: 0 var(--page-px);
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background .2s ease, box-shadow .2s ease;
}
.idx-header.scrolled {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 76px rgba(0,0,0,0.62);
}

.idx-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.idx-logo-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--brand);
  padding: 4px;
  transform: rotate(45deg);
  transition: transform .7s ease;
}
.idx-logo:hover .idx-logo-icon { transform: rotate(225deg); }
.idx-logo-icon-inner {
  width: 100%;
  height: 100%;
  background: var(--brand);
}
.idx-logo-text {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
}
.idx-logo-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 3px;
}

/* Nav links */
.idx-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  margin-left: clamp(16px, 4vw, 48px);
}
.idx-nav-link {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  transition: color .18s ease;
}
.idx-nav-link:hover { color: rgba(255,255,255,0.92); }
.idx-nav-link.is-active { color: var(--brand); }
.idx-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,209,0.85), transparent);
}
.idx-nav-sub {
  margin-left: 8px;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-mono);
}

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

/* Header actions */
.idx-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}
.idx-header-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
}
.idx-enter-btn {
  background: var(--brand);
  color: #000;
  font-weight: 900;
  font-size: 10px;
  padding: 8px clamp(16px, 2vw, 24px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: background .18s ease;
}
.idx-enter-btn:hover { background: var(--accent); }

/* ─── Language Control ─── */
.idx-lang-control {
  position: relative;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  cursor: pointer;
}
.idx-energy-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
}
.idx-energy-bars > span {
  width: 4px;
  height: 12px;
  background: rgba(255,255,255,0.1);
  will-change: opacity;
  opacity: 0.22;
}
.idx-energy-bars > span:nth-child(1) { animation: energy-b1 1.2s steps(1,end) infinite; background: var(--brand); }
.idx-energy-bars > span:nth-child(2) { animation: energy-b2 1.2s steps(1,end) infinite; }
.idx-energy-bars > span:nth-child(3) { animation: energy-b3 1.2s steps(1,end) infinite; }
@keyframes energy-b1 {
  0%,74% { opacity:1; background:var(--brand); }
  75%,100% { opacity:0.22; background:rgba(255,255,255,0.1); }
}
@keyframes energy-b2 {
  0%,24% { opacity:0.22; background:rgba(255,255,255,0.1); }
  25%,74% { opacity:1; background:var(--brand); }
  75%,100% { opacity:0.22; background:rgba(255,255,255,0.1); }
}
@keyframes energy-b3 {
  0%,49% { opacity:0.22; background:rgba(255,255,255,0.1); }
  50%,74% { opacity:1; background:var(--brand); }
  75%,100% { opacity:0.22; background:rgba(255,255,255,0.1); }
}

/* Lang trigger button */
.idx-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}
.idx-lang-trigger-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.idx-lang-flag {
  font-size: 16px;
  line-height: 1;
  transform: scale(1.25);
}
.idx-lang-name {
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}
.idx-lang-caret {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  transition: transform .18s ease, opacity .18s ease;
}
.idx-lang-trigger[aria-expanded="true"] .idx-lang-caret {
  transform: rotate(180deg);
  opacity: 0.75;
}

/* Lang dropdown menu */
.idx-lang-menu {
  position: fixed;
  z-index: 2600;
  width: fit-content;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 80px rgba(0,0,0,0.62), inset 0 1px 0 rgba(255,255,255,0.06);
  display: none;
}
.idx-lang-menu.is-open { display: block; }

.idx-lang-menu-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.82);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
}
.idx-lang-menu-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.idx-lang-menu-item::after {
  content: "";
  width: 8px; height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .16s ease, transform .16s ease;
}
.idx-lang-menu-item.is-active {
  background: rgba(0,255,209,0.12);
  color: rgba(255,255,255,0.95);
}
.idx-lang-menu-item.is-active::after {
  opacity: 1;
  transform: scale(1);
}
.idx-lang-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 480px) {
  .idx-lang-name { display: none; }
}

/* ─── Main Content ─── */
.idx-main {
  position: relative;
  z-index: 1;
  padding: 0 var(--page-px);
}

/* ─── Hero Section ─── */
.idx-hero {
  padding-top: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.idx-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,255,209,0.05);
  border: 1px solid rgba(0,255,209,0.2);
  padding: 4px 12px;
  width: fit-content;
  margin-bottom: clamp(16px, 3vw, 24px);
}
.idx-hero-kicker-dot {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.idx-hero-kicker-text {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 2px;
}

.idx-hero-title {
  font-size: clamp(36px, 7vw, 90px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: clamp(16px, 3vw, 24px);
}
.idx-hero-title .text-brand { color: var(--brand); }
.idx-hero-title img {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.08em;
}

.idx-hero-subtitle {
  max-width: 680px;
  color: rgba(255,255,255,0.55);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* ─── Entry Cards ─── */
.idx-entry-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.idx-entry-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: clamp(120px, 14vw, 156px);
  padding: clamp(16px, 2vw, 24px);
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  box-shadow: 0 14px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all .35s cubic-bezier(0.19,1,0.22,1);
}
.idx-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.085) 0%, transparent 32%),
              linear-gradient(135deg, transparent 95%, rgba(0,255,209,0.12) 100%);
  pointer-events: none;
}
.idx-entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  clip-path: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .22s ease, border-color .22s ease;
}
.idx-entry-card:hover {
  border-color: rgba(0,255,209,0.22);
  background: rgba(12,12,12,0.8);
  transform: translateY(-5px);
  filter: drop-shadow(0 0 1px rgba(0,255,209,1)) drop-shadow(0 0 6px rgba(0,255,209,0.7)) drop-shadow(0 0 20px rgba(0,255,209,0.3));
}
.idx-entry-card:hover::after {
  opacity: 1;
  border-color: rgba(0,255,209,0.92);
  box-shadow: 0 0 0 1px rgba(0,255,209,0.18), 0 0 22px rgba(0,255,209,0.18);
}

.idx-entry-card-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}
.idx-entry-card[data-jump="intro"] .idx-entry-card-deco,
.idx-entry-card[data-jump="whitepaper"] .idx-entry-card-deco {
  width: 140%;
  height: auto;
  inset: auto;
  top: -49%;
  right: -8%;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.3) 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.3) 75%, transparent 100%);
}
.idx-entry-card[data-jump="docs"] .idx-entry-card-deco,
.idx-entry-card[data-jump="tools"] .idx-entry-card-deco {
  object-position: right center;
}

.idx-entry-card-inner {
  position: relative;
  z-index: 10;
}
.idx-entry-card-num {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-entry-card-title {
  margin-top: 4px;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.06;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 58%;
  max-width: 58%;
}
.idx-entry-card-desc {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

html[data-lang]:not([data-lang="cn"]) .idx-entry-card-title {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.04;
}
html[data-lang]:not([data-lang="cn"]) .idx-entry-card-desc {
  font-size: 10px;
  line-height: 1.2;
}
html[data-lang="jp"] .idx-entry-card-title,
html[data-lang="ko"] .idx-entry-card-title {
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.04;
}

@media (max-width: 1024px) {
  .idx-entry-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .idx-entry-cards { grid-template-columns: 1fr; }
  .idx-entry-card { height: auto; min-height: 100px; }
  .idx-entry-card[data-jump="intro"] .idx-entry-card-deco,
  .idx-entry-card[data-jump="whitepaper"] .idx-entry-card-deco {
    width: 180%;
    top: -30%;
    right: -15%;
  }
  .idx-entry-card[data-jump="docs"] .idx-entry-card-deco,
  .idx-entry-card[data-jump="tools"] .idx-entry-card-deco {
    object-position: 70% center;
  }
  .idx-entry-card-title {
    width: 65%;
    max-width: 65%;
  }
}

/* ─── Inline Search ─── */
.idx-search-inline {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  padding: clamp(12px, 2vw, 16px);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
}
.idx-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.idx-search-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.idx-search-row input::placeholder { color: rgba(255,255,255,0.25); }
.idx-cmdk-badge {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: border-color .18s ease, color .18s ease;
}
.idx-cmdk-badge:hover { border-color: rgba(0,255,209,0.35); color: #fff; }

.idx-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.idx-search-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  transition: border-color .18s, color .18s, background .18s;
}
.idx-search-tag:hover { border-color: rgba(255,255,255,0.2); color: #fff; }
.idx-search-tag--brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #000;
  font-weight: 900;
}
.idx-search-tag--brand:hover { background: var(--accent); border-color: var(--accent); }
.idx-search-tag--accent {
  background: rgba(0,255,209,0.1);
  border-color: rgba(0,255,209,0.25);
  color: var(--brand);
}
.idx-search-tag--accent:hover { background: rgba(0,255,209,0.15); }

/* Hero status row */
.idx-hero-status {
  display: flex;
  gap: 32px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  margin-top: 24px;
}
.idx-status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}
.idx-status-dot-green {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
}
.idx-status-dot-dim {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.idx-status-text {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ─── KPI Band ─── */
.idx-kpi-band {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(16px, 3vw, 24px) 8px;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(900px 280px at 20% 50%, rgba(0,255,209,0.06), transparent 60%),
    radial-gradient(700px 260px at 85% 50%, rgba(180,255,0,0.04), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%, rgba(255,255,255,0.02));
  overflow: hidden;
}
.idx-kpi-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,255,209,0.1) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-40%);
  pointer-events: none;
}
.idx-kpi-band:hover::before {
  opacity: 0.35;
  animation: kpi-scan 1.6s ease-in-out infinite;
}
@keyframes kpi-scan {
  0% { transform: translateX(-45%); }
  100% { transform: translateX(45%); }
}
.idx-kpi-item { display: flex; flex-direction: column; gap: 8px; }
.idx-kpi-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 4px;
}
.idx-kpi-label--dim { color: rgba(255,255,255,0.2); }
.idx-kpi-value {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}
.idx-kpi-value--glow {
  text-shadow: 0 0 10px rgba(0,255,209,0.5);
  color: rgba(255,255,255,0.9);
}
.idx-kpi-value--accent { color: var(--accent); }
.idx-kpi-value-unit {
  font-size: clamp(14px, 2vw, 20px);
}
.idx-kpi-bar {
  height: 2px;
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.55);
}
.idx-kpi-bar-fill {
  height: 2px;
  background: linear-gradient(90deg, rgba(0,255,209,0.85), rgba(180,255,0,0.55));
}
.idx-kpi-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.28);
}
.idx-kpi-trend { color: rgba(0,255,209,0.55); }

@media (max-width: 768px) {
  .idx-kpi-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .idx-kpi-band { grid-template-columns: 1fr; }
}

/* ─── Divider ─── */
.idx-divider {
  position: relative;
  margin: 28px 0 18px;
  padding: 0 4px;
}
.idx-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.idx-divider > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.idx-divider-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

/* ─── Core Modules Section ─── */
.idx-core-section {
  margin-bottom: var(--section-gap);
  scroll-margin-top: 96px;
}
.idx-core-lead {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 40px;
  padding: 0 4px;
}
.idx-core-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 5vw, 64px);
  padding: 0 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.idx-core-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 24px;
}
.idx-core-title-line {
  display: inline-block;
  width: 96px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.idx-core-title-meta {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  font-weight: 400;
  font-style: normal;
}
.idx-core-view-all {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .18s ease;
}
.idx-core-view-all:hover { color: var(--brand); }

/* Module card (p-card style) */
.idx-module-card {
  position: relative;
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  box-shadow: 0 14px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: clamp(24px, 3vw, 40px);
  cursor: pointer;
  transition: all .5s cubic-bezier(0.19,1,0.22,1);
  display: flex;
  flex-direction: column;
}
.idx-module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.085) 0%, transparent 32%),
              linear-gradient(135deg, transparent 95%, rgba(0,255,209,0.12) 100%);
  pointer-events: none;
}
.idx-module-card:hover {
  border-color: rgba(0,255,209,0.22);
  background: rgba(12,12,12,0.8);
  transform: translateY(-5px);
  filter: drop-shadow(0 0 1px rgba(0,255,209,1)) drop-shadow(0 0 6px rgba(0,255,209,0.7)) drop-shadow(0 0 20px rgba(0,255,209,0.3));
}

.idx-module-card .idx-card-action {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-module-card:hover .idx-card-action {
  opacity: 1;
  transform: translateY(0);
}

/* Module card variants */
.idx-module-card--v12-accent {
  border-left: 2px solid rgba(187,255,0,0.3);
}
.idx-module-card--brand-bg {
  background: rgba(0,255,209,0.05);
}

.idx-module-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.idx-module-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
}
.idx-module-title--lg {
  font-size: clamp(22px, 3vw, 30px);
}
.idx-module-desc {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.idx-module-icon {
  width: clamp(40px, 5vw, 64px);
  height: clamp(40px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
}
.idx-module-icon svg { color: var(--brand); }

/* Core modules grid */
.idx-core-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.idx-core-grid .col-4 { grid-column: span 4; }
.idx-core-grid .col-8 { grid-column: span 8; }
.idx-core-grid .row-2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .idx-core-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .idx-core-grid .col-4,
  .idx-core-grid .col-8 { grid-column: span 1; }
  .idx-core-grid .row-2 { grid-row: span 1; }
}
@media (max-width: 640px) {
  .idx-core-grid { grid-template-columns: 1fr; }
}

.idx-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.idx-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  margin-top: auto;
}
.idx-card-version {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-card-version-val {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Focus / Selected states */
.idx-module-card.v12-focus {
  border-color: rgba(0,255,209,0.88) !important;
  box-shadow:
    0 0 0 2px rgba(0,255,209,0.42),
    0 0 0 7px rgba(0,255,209,0.12),
    0 18px 70px rgba(0,0,0,0.62),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
.idx-module-card.v12-selected {
  border-color: rgba(0,255,209,0.92) !important;
  box-shadow:
    0 0 0 2px rgba(0,255,209,0.70),
    0 0 0 8px rgba(0,255,209,0.12),
    inset 0 0 0 1px rgba(0,255,209,0.28),
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 24px 90px rgba(0,0,0,0.68) !important;
}

/* ─── Updates / Carousel Section ─── */
.idx-updates-section {
  margin-bottom: var(--section-gap);
  scroll-margin-top: 96px;
}
.idx-updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.idx-updates-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 24px;
}
.idx-updates-title-line {
  width: 40px;
  height: 1px;
  background: var(--brand);
}
.idx-carousel-arrows {
  display: flex;
  gap: 16px;
}
.idx-arrow-btn {
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  padding: 8px 16px;
  transition: background .18s, color .18s;
}
.idx-arrow-btn:hover {
  background: var(--brand);
  color: #000;
}
.idx-carousel-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.idx-carousel-track {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  transition: transform 1.5s cubic-bezier(0.2,1,0.2,1);
}
.idx-update-card {
  min-width: clamp(280px, 35vw, 440px);
  height: clamp(200px, 25vw, 288px);
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  box-shadow: 0 14px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.idx-update-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.idx-update-card-type {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--brand);
  letter-spacing: 4px;
}
.idx-update-card-type--dim { color: rgba(255,255,255,0.35); }
.idx-update-card-date {
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  letter-spacing: 3px;
}
.idx-update-card-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  font-style: italic;
  margin-bottom: 16px;
}
.idx-update-card-desc {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .idx-carousel-mask {
    mask-image: none; -webkit-mask-image: none;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .idx-carousel-track { transition: none; }
  .idx-carousel-arrows { display: none; }
}

/* ─── Footer ─── */
.idx-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(40px, 6vw, 80px) var(--page-px) clamp(32px, 4vw, 48px);
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.idx-footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 4fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.idx-footer-brand {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.idx-footer-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 2;
  letter-spacing: 2px;
}
.idx-footer-col-title {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.idx-footer-col-title--accent { color: var(--accent); }
.idx-footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.idx-footer-link {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  transition: color .18s ease;
}
.idx-footer-link:hover { color: #fff; }
.idx-footer-status-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.idx-footer-clock {
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.idx-footer-clock-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.1);
  font-style: italic;
}
.idx-footer-clock-text {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 5px;
}

@media (max-width: 1024px) {
  .idx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .idx-footer-grid { grid-template-columns: 1fr; }
  .idx-footer-status-box { align-items: flex-start; }
}

/* ─── Module Drawer ─── */
.idx-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.idx-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.idx-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 92vw);
  z-index: 2001;
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(0.2,1,0.2,1);
  background: rgba(10,10,10,0.92);
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: -40px 0 120px rgba(0,0,0,0.7);
  overflow-y: auto;
}
.idx-drawer.is-open {
  transform: translateX(0);
}
.idx-drawer-header {
  position: sticky;
  top: 0;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(10,10,10,0.98), rgba(10,10,10,0.84));
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1;
}
.idx-drawer-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.idx-drawer-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.idx-drawer-title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
}
.idx-drawer-status {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.idx-drawer-close {
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  padding: 8px 12px;
  transition: background .18s;
}
.idx-drawer-close:hover { background: rgba(255,255,255,0.05); }
.idx-drawer-desc {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.idx-drawer-body {
  padding: 24px;
}
.idx-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.idx-drawer-btn-primary {
  background: var(--brand);
  color: #000;
  font-weight: 900;
  font-size: 10px;
  padding: 12px 20px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background .18s;
}
.idx-drawer-btn-primary:hover { background: var(--accent); }
.idx-drawer-btn-secondary {
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 12px 20px;
  transition: background .18s;
}
.idx-drawer-btn-secondary:hover { background: rgba(255,255,255,0.05); }

.idx-drawer-updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}
.idx-drawer-updates-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-drawer-updates-range {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-drawer-updates-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.idx-drawer-update-item {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  padding: 16px;
}
.idx-drawer-update-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.idx-drawer-update-type {
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(0,255,209,0.9);
  letter-spacing: 4px;
}
.idx-drawer-update-date {
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.25);
  letter-spacing: 3px;
}
.idx-drawer-update-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
}
.idx-drawer-update-note {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.idx-drawer-quick {
  margin-top: 40px;
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  padding: 20px;
}
.idx-drawer-quick-title {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-drawer-quick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.idx-drawer-quick-btn {
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  padding: 12px 16px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background .18s;
}
.idx-drawer-quick-btn:hover { background: rgba(255,255,255,0.05); }

/* ─── Cmd+K Command Palette ─── */
.idx-cmdk-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.idx-cmdk-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.idx-cmdk {
  position: fixed;
  left: 50%;
  top: 14vh;
  transform: translateX(-50%) translateY(8px);
  width: min(720px, 92vw);
  z-index: 2401;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.idx-cmdk.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.idx-cmdk-inner {
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  box-shadow: 0 14px 44px rgba(0,0,0,0.55);
  padding: 24px;
}
.idx-cmdk-search {
  display: flex;
  align-items: center;
  gap: 16px;
}
.idx-cmdk-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.idx-cmdk-search input::placeholder { color: rgba(255,255,255,0.25); }
.idx-cmdk-esc {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 3px;
}
.idx-cmdk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.idx-cmdk-item {
  background: rgba(22,22,22,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
  padding: 12px 16px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background .18s;
}
.idx-cmdk-item:hover { background: rgba(255,255,255,0.05); }
