/* Syntax Studios & BuiltByPal Unified Modern Design System */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: #020612;
  color: #f1f5f9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:focus-visible, button:focus-visible { outline: 2px solid #00e5ff; outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; top: -100px; left: 16px; z-index: 1000; background: #00e5ff; color: #020612; padding: 12px 20px; font-weight: 700; border-radius: var(--radius-sm); }
.skip:focus { top: 16px; }

/* -------------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 18, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: 84px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.logo-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00e5ff;
}
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
nav a { color: #94a3b8; }
nav a:hover { color: #ffffff; }
.nav-portal {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.nav-portal:hover { background: rgba(56, 189, 248, 0.2); }
.nav-sister, .nav-parent {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-sister:hover, .nav-parent:hover { background: rgba(255, 255, 255, 0.12); }

/* -------------------------------------------------------------
   BUTTONS & BADGES
------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00e5ff 0%, #0066ff 100%);
  color: #020612;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
  border: 1px solid #38e1ff;
  cursor: pointer;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  color: #020612;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-full);
  color: #00e5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 12px #00e5ff;
}

.pill-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.pill-crypto, .pill-infra {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Status badges */
.card-status, .detail-status-pill, .status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.stage-beta {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.stage-development {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.stage-planned {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* -------------------------------------------------------------
   SYNTAX STUDIOS HERO
------------------------------------------------------------- */
.syntax-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 70px 32px 90px;
  gap: 50px;
}
.hero-content { z-index: 2; }
.hero-heading {
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 0 0 20px;
  color: #ffffff;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art-box {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-card {
  position: relative;
  width: min(380px, 100%);
  max-width: 380px;
  aspect-ratio: 1 / 1;
  height: auto;
  background: radial-gradient(circle at 50% 50%, #0d1e38 0%, #050b16 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 229, 255, 0.12);
  overflow: hidden;
}
.hero-logo-card img { width: 75%; height: 75%; object-fit: contain; }

/* -------------------------------------------------------------
   METRICS TICKER
------------------------------------------------------------- */
.metrics-ticker {
  background: #030816;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 32px;
}
.ticker-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric-item {
  display: flex;
  flex-direction: column;
  border-left: 2px solid #00e5ff;
  padding-left: 18px;
}
.metric-num {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.metric-desc {
  font-size: 13px;
  color: #8899b0;
  font-weight: 600;
  margin-top: 4px;
}

/* -------------------------------------------------------------
   PRODUCT PREVIEW CARDS (RESTRUCTURED 3-TIER)
------------------------------------------------------------- */
.platforms-section, .pal-catalog, .pillars-section, .about-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 90px 32px;
}
.section-header { margin-bottom: 45px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin: 0 0 12px;
}
.section-desc {
  font-size: 16px;
  color: #94a3b8;
  max-width: 680px;
  margin: 0;
}

.platform-grid, .pal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

/* The consistent 3-tier product card */
.product-card {
  background: #060e20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.1);
}

/* TOP: Clean artwork without writing */
.card-art-link {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #030814;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.card-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.card-art-link:hover .card-art-img {
  transform: scale(1.04);
}

/* MIDDLE: Product identity & 1-sentence description */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.card-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.card-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  background: #0b172e;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.4px;
}
.card-title a { color: #ffffff; }
.card-title a:hover { color: #00e5ff; }
.card-description {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 20px;
  flex: 1;
}

/* BOTTOM: Release status & View Product action */
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  margin-top: auto;
}
.card-action {
  font-size: 13px;
  font-weight: 700;
  color: #00e5ff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-action:hover { text-decoration: underline; }

/* -------------------------------------------------------------
   PILLARS & ABOUT
------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.pillar-card {
  background: #060e20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.pillar-icon { font-size: 30px; margin-bottom: 14px; }
.pillar-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}
.pillar-card p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.about-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
}
.about-body p {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.8;
  margin: 0 0 22px;
}
.about-cta-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* -------------------------------------------------------------
   BUILDBYPAL BRAND SPECIFIC OVERRIDES
------------------------------------------------------------- */
body.pal {
  background-color: #030a16;
  --accent: #00f5d4;
}
.pal-hero {
  position: relative;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  padding: 70px 32px 80px;
  gap: 50px;
}
.pal-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pal-badge-container {
  position: relative;
  width: min(360px, 100%);
  max-width: 360px;
  aspect-ratio: 1 / 1;
  height: auto;
  background: radial-gradient(circle at 50% 50%, #0d223f 0%, #061226 100%);
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 245, 212, 0.12);
  padding: 20px;
  box-sizing: border-box;
}
.pal-badge-container img { width: 70%; height: 70%; object-fit: contain; }
.pal-sub-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00f5d4;
  margin-top: 8px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.filter-bar {
  display: flex;
  gap: 8px;
  background: #071328;
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.filter-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover { color: #ffffff; }
.filter-btn.active {
  background: #00f5d4;
  color: #020612;
  box-shadow: 0 2px 10px rgba(0, 245, 212, 0.3);
}

.pal-beta-banner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.beta-banner-inner {
  background: linear-gradient(135deg, #071630 0%, #0d2854 100%);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.beta-info h2 {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin: 14px 0 12px;
}
.beta-info p {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 760px;
  line-height: 1.7;
  margin: 0 0 24px;
}

/* -------------------------------------------------------------
   PRODUCT DETAIL HERO (REPAIRED 2-COLUMN LAYOUT)
------------------------------------------------------------- */
.product-detail {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 32px 100px;
}

.detail-hero-section {
  background: #040916;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 56px;
  margin-bottom: 60px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.detail-hero-left {
  display: flex;
  flex-direction: column;
}

.detail-breadcrumb {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 20px;
}
.detail-breadcrumb a { color: #94a3b8; }
.detail-breadcrumb a:hover { color: #00e5ff; }
.detail-breadcrumb .sep { margin: 0 6px; color: #475569; }
.detail-breadcrumb .current { color: #cbd5e1; }

.detail-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-version-pill {
  font-size: 12px;
  font-family: var(--font-mono);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.detail-product-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
  color: #ffffff;
  line-height: 1.1;
}

.detail-product-tagline {
  font-size: 19px;
  font-weight: 600;
  color: #38bdf8;
  margin: 0 0 16px;
  line-height: 1.4;
}

.detail-product-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0 0 28px;
  max-width: 680px;
}

.detail-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-checksum-note {
  font-size: 12px;
  font-family: var(--font-mono);
  color: #64748b;
  word-break: break-all;
}

.detail-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-art-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #030814;
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 229, 255, 0.1);
}
.detail-hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------------------------------------
   DETAIL SUB-SECTIONS (CAPABILITIES, SCREENSHOTS, SPECS, EDITIONS)
------------------------------------------------------------- */
.detail-section {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.screenshot-thumb {
  margin: 0;
  background: #060e20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.screenshot-thumb:hover {
  transform: translateY(-4px);
  border-color: #00e5ff;
}
.screenshot-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020612;
}
.screenshot-thumb figcaption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
.screenshot-thumb figcaption strong {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}
.screenshot-thumb figcaption span {
  font-size: 13px;
  color: #8899b0;
}

.specs-table-wrap {
  margin-top: 28px;
  background: #060e20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.specs-table tr { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th {
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  width: 28%;
  background: rgba(255, 255, 255, 0.02);
}
.specs-table td {
  padding: 16px 22px;
  font-size: 15px;
  color: #e2e8f0;
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.edition-card {
  background: #060e20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.edition-featured {
  border-color: #00e5ff;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.15);
  background: linear-gradient(180deg, #091733 0%, #060e20 100%);
}
.edition-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}
.edition-price {
  font-size: 24px;
  font-weight: 800;
  color: #00e5ff;
  margin-bottom: 6px;
}
.edition-target {
  font-size: 13px;
  color: #8899b0;
  margin-bottom: 22px;
}
.edition-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.edition-features li {
  font-size: 14px;
  color: #cbd5e1;
}
.edition-cta .btn-secondary { width: 100%; box-sizing: border-box; }

.related-section { margin-top: 40px; }
.detail-back-wrap { margin-top: 50px; text-align: center; }

/* -------------------------------------------------------------
   LIGHTBOX MODAL
------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-modal.open { display: flex; }
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, 0.92);
  backdrop-filter: blur(12px);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}
.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: #ffffff;
}
.lightbox-title { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.lightbox-desc { font-size: 14px; color: #94a3b8; margin: 0; }

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #02050e;
  padding: 70px 32px 36px;
}
.footer-top {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 70px;
  margin-bottom: 50px;
}
.footer-tagline {
  font-size: 14px;
  color: #8899b0;
  line-height: 1.7;
  max-width: 440px;
  margin-top: 18px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #8899b0; }
.footer-col a:hover { color: #00e5ff; }

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}
.footer-pills { display: flex; gap: 12px; }

/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (375px, 768px, 1024px, 1440px, 1920px)
------------------------------------------------------------- */
@media (max-width: 1024px) {
  .syntax-hero, .pal-hero { grid-template-columns: 1fr; padding: 50px 24px 70px; gap: 36px; }
  .hero-art-box, .pal-hero-art { order: -1; }
  .ticker-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .detail-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-hero-section { padding: 36px 30px; }
  .screenshots-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: auto; padding: 16px 20px; flex-direction: column; gap: 14px; }
  nav { flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 13px; }
  .syntax-hero, .pal-hero { padding: 40px 16px 50px; gap: 24px; }
  .hero-heading { font-size: 32px; word-break: break-word; }
  .hero-logo-card { width: min(300px, 100%); max-width: 300px; }
  .pal-badge-container { width: min(280px, 100%); max-width: 280px; }
  .platform-grid, .pal-grid { grid-template-columns: 1fr; }
  .ticker-inner { grid-template-columns: 1fr; }
  .detail-hero-section { padding: 32px 20px; }
  .detail-product-title { font-size: 32px; }
  .detail-actions-row { flex-direction: column; align-items: stretch; }
  .detail-actions-row .btn-primary, .detail-actions-row .btn-secondary { width: 100%; text-align: center; }
  .specs-table th { width: 38%; font-size: 13px; padding: 12px 14px; }
  .specs-table td { font-size: 14px; padding: 12px 14px; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 24px; }
  .beta-banner-inner { padding: 32px 20px; }
}

@media (max-width: 375px) {
  .syntax-hero, .pal-hero { padding: 30px 12px 40px; gap: 20px; }
  .hero-heading { font-size: 26px; }
  .hero-lead { font-size: 15px; }
  .hero-logo-card { width: min(260px, 100%); max-width: 260px; border-radius: 20px; }
  .pal-badge-container { width: min(240px, 100%); max-width: 240px; border-radius: 24px; }
  .header-inner { padding: 12px 10px; }
  .logo-title { font-size: 16px; }
  .detail-hero-section { padding: 20px 14px; border-radius: 12px; }
  .detail-product-title { font-size: 26px; }
  .detail-product-tagline { font-size: 15px; }
  .card-content { padding: 16px; }
}

/* Decorative hero layers must never consume a grid cell. */
.syntax-hero { position: relative; isolation: isolate; }
.hero-bg-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.product-card[hidden] { display: none !important; }
.detail-checksum-note { overflow-wrap: anywhere; }
.information-page { max-width: 920px; margin: auto; padding: 56px 24px; }
@media (prefers-reduced-motion: reduce) { html {scroll-behavior:auto} *,*::before,*::after {animation:none!important;transition:none!important} }
