/*
 * Dalmia Computers — Unified Royal Obsidian-Violet Token & 7-Archetype Stylesheet
 * Canonical dark system for all public subpages, Knowledge Hub, Dynamic Catalog & 2,353+ Universe pages.
 * Zero !important declarations — pure cascade tokens and clean archetype scoping.
 */

:root {
  --dc-bg-obsidian: #06091e;
  --dc-bg-deep: #0b102d;
  --dc-bg-surface: rgba(14, 21, 54, 0.9);
  --dc-bg-elevated: rgba(22, 32, 78, 0.94);
  --dc-bg-glass: rgba(11, 16, 45, 0.78);
  --dc-gold: #e6c168;
  --dc-gold-bright: #f5d98e;
  --dc-gold-soft: rgba(230, 193, 104, 0.14);
  --dc-cyan: #38bdf8;
  --dc-cyan-soft: rgba(56, 189, 248, 0.14);
  --dc-violet: #7c3aed;
  --dc-violet-soft: rgba(124, 58, 237, 0.2);
  --dc-emerald: #34d399;
  --dc-emerald-soft: rgba(52, 211, 153, 0.14);
  --dc-amber: #fbbf24;
  --dc-ink: #f8fafc;
  --dc-muted: #cbd5e1;
  --dc-subtle: #94a3b8;
  --dc-border: rgba(230, 193, 104, 0.22);
  --dc-border-soft: rgba(148, 163, 184, 0.18);
  --dc-border-cyan: rgba(56, 189, 248, 0.28);
  --dc-radius-sm: 10px;
  --dc-radius-md: 16px;
  --dc-radius-lg: 22px;
  --dc-shadow-card: 0 18px 44px rgba(2, 5, 20, 0.52);
  --dc-font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dc-font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --dc-max-w: 1240px;
}

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

html {
  background-color: var(--dc-bg-obsidian);
  color: var(--dc-ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body[data-dc-archetype],
body.dcvo-subpage,
body.ru-universe-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--dc-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dc-ink);
  background-color: var(--dc-bg-obsidian);
  background-image:
    radial-gradient(960px 460px at 12% 0%, rgba(124, 58, 237, 0.22), transparent 64%),
    radial-gradient(840px 420px at 88% 6%, rgba(56, 189, 248, 0.14), transparent 62%),
    radial-gradient(720px 380px at 50% 100%, rgba(230, 193, 104, 0.09), transparent 68%),
    linear-gradient(180deg, #06091e 0%, #090e2a 48%, #06091e 100%);
  overflow-x: clip;
}

/* Archetype-distinct atmospheric accents */
body[data-dc-archetype="archetype-trust-legal"] {
  background-image:
    radial-gradient(780px 360px at 50% 0%, rgba(230, 193, 104, 0.1), transparent 65%),
    linear-gradient(180deg, #06091e 0%, #080d24 100%);
}

body[data-dc-archetype="archetype-repair-symptom"] {
  background-image:
    radial-gradient(900px 420px at 16% 0%, rgba(56, 189, 248, 0.18), transparent 62%),
    radial-gradient(760px 380px at 86% 8%, rgba(52, 211, 153, 0.12), transparent 60%),
    linear-gradient(180deg, #06091e 0%, #08112b 55%, #06091e 100%);
}

body[data-dc-archetype="archetype-brand-hub"] {
  background-image:
    radial-gradient(940px 440px at 20% 0%, rgba(230, 193, 104, 0.18), transparent 62%),
    radial-gradient(820px 400px at 82% 8%, rgba(124, 58, 237, 0.2), transparent 62%),
    linear-gradient(180deg, #06091e 0%, #0a0f2c 52%, #06091e 100%);
}

body[data-dc-archetype="archetype-regional-corridor"] {
  background-image:
    radial-gradient(900px 420px at 14% 0%, rgba(52, 211, 153, 0.15), transparent 60%),
    radial-gradient(840px 400px at 85% 6%, rgba(230, 193, 104, 0.15), transparent 62%),
    linear-gradient(180deg, #06091e 0%, #08102a 55%, #06091e 100%);
}

/* GPU-accelerated ambient motion */
@keyframes dcAmbientGlow {
  0%, 100% {
    opacity: 0.85;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.01);
  }
}

@keyframes dcRevealUp {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Typography & Links */
body[data-dc-archetype] h1,
body[data-dc-archetype] h2,
body[data-dc-archetype] h3,
body[data-dc-archetype] h4 {
  font-family: var(--dc-font-display);
  color: var(--dc-ink);
  letter-spacing: -0.02em;
  line-height: 1.24;
  margin-top: 0;
}

body[data-dc-archetype] p,
body[data-dc-archetype] li {
  color: var(--dc-muted);
}

body[data-dc-archetype] strong {
  color: var(--dc-ink);
}

body[data-dc-archetype] a {
  color: var(--dc-gold-bright);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

body[data-dc-archetype] a:hover {
  color: var(--dc-cyan);
}

body[data-dc-archetype] a:focus-visible,
body[data-dc-archetype] button:focus-visible,
body[data-dc-archetype] input:focus-visible,
body[data-dc-archetype] select:focus-visible,
body[data-dc-archetype] textarea:focus-visible,
body[data-dc-archetype] summary:focus-visible {
  outline: 2px solid var(--dc-cyan);
  outline-offset: 2px;
}

body[data-dc-archetype] img,
body[data-dc-archetype] video {
  max-width: 100%;
  height: auto;
}

/* Skip link */
.dp-skip,
.ru-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: var(--dc-radius-sm);
  background: var(--dc-gold);
  color: #06091e;
  font-weight: 700;
}

.dp-skip:focus,
.ru-skip-link:focus {
  left: 12px;
}

/* Shared Shell Containers (_site-v3, Knowledge, Catalog, Universe) */
.dp-container,
.ru-wrap,
.dc-arch-wrap {
  width: min(var(--dc-max-w), calc(100% - 32px));
  margin-inline: auto;
}

/* Topbar & Header */
.dp-topbar {
  background: rgba(5, 8, 25, 0.94);
  border-bottom: 1px solid var(--dc-border-soft);
  font-size: 0.84rem;
  color: var(--dc-muted);
  padding: 7px 0;
}

.dp-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.dp-topbar a {
  color: var(--dc-gold);
  font-weight: 600;
}

.dp-header,
.ru-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 9, 30, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dc-border);
}

.dp-header-inner,
.ru-topbar-inner {
  width: min(var(--dc-max-w), calc(100% - 32px));
  margin-inline: auto;
  min-height: 70px;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

.dp-brand,
.ru-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dc-ink);
  font-weight: 800;
}

.dp-brand img,
.ru-brand img,
.dc-brand-lockup-img {
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.dp-brand-title {
  display: block;
  font-family: var(--dc-font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--dc-ink);
}

.dp-brand-sub,
.ru-brand small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--dc-gold);
}

.dp-nav,
.ru-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.dp-nav a,
.ru-nav a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--dc-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.dp-nav a:hover,
.dp-nav a[aria-current="page"],
.ru-nav a:hover,
.ru-nav a[aria-current="page"] {
  color: var(--dc-ink);
  background: var(--dc-gold-soft);
}

.dp-header-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Buttons & Badges */
.dp-btn,
.ru-btn,
.dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--dc-border);
  cursor: pointer;
  text-decoration: none;
}

.dp-btn-primary,
.ru-btn-gold,
.dc-btn-gold {
  background: linear-gradient(135deg, #f3d47c 0%, #d4a647 100%);
  color: #06091e;
  border-color: transparent;
}

.dp-btn-primary:hover,
.ru-btn-gold:hover,
.dc-btn-gold:hover {
  color: #06091e;
  transform: translate3d(0, -1px, 0);
  filter: brightness(1.05);
}

.dp-btn-whatsapp,
.ru-btn-wa,
.dc-btn-wa {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.42);
}

.dp-btn-whatsapp:hover,
.ru-btn-wa:hover,
.dc-btn-wa:hover {
  color: #ecfdf5;
  background: rgba(16, 185, 129, 0.28);
}

.dp-btn-outline,
.ru-btn-ghost,
.dc-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--dc-ink);
  border-color: var(--dc-border);
}

.dp-btn-sm {
  padding: 7px 13px;
  font-size: 0.84rem;
}

.dp-badge,
.ru-eyebrow,
.dc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--dc-gold-soft);
  color: var(--dc-gold-bright);
  border: 1px solid var(--dc-border);
}

.dc-concierge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(230, 193, 104, 0.18), rgba(56, 189, 248, 0.14));
  color: var(--dc-gold-bright);
  border: 1px solid rgba(230, 193, 104, 0.36);
}

/* Sections, Heroes & Cards */
.dp-hero,
.ru-hero,
.dc-arch-hero {
  padding: 36px 0 28px;
  animation: dcRevealUp 0.38s ease-out both;
}

.dp-section,
.dc-section,
.dc-arch-section {
  padding: 28px 0;
}

.dp-section-alt {
  background: rgba(10, 15, 42, 0.65);
  border-top: 1px solid var(--dc-border-soft);
  border-bottom: 1px solid var(--dc-border-soft);
}

.dp-card,
.ru-card,
.dc-arch-card {
  background: var(--dc-bg-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--dc-radius-md);
  padding: 22px;
  box-shadow: var(--dc-shadow-card);
}

.dp-grid,
.dp-grid-2,
.dp-grid-3,
.dp-grid-4,
.ru-grid,
.dc-arch-grid-2,
.dc-arch-grid-3 {
  display: grid;
  gap: 18px;
}

.dp-grid-2,
.dc-arch-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.dp-grid-3,
.dc-arch-grid-3,
.ru-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dp-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Breadcrumbs */
.dp-breadcrumb,
.ru-breadcrumb,
.kh-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--dc-subtle);
}

.dp-breadcrumb a,
.ru-breadcrumb a,
.kh-breadcrumbs a {
  color: var(--dc-gold);
}

/* 40-60 Word Direct AEO Answer Lead Callout */
.dc-aeo-lead,
.kh-answer {
  margin: 18px 0 22px;
  padding: 18px 22px;
  border-radius: var(--dc-radius-md);
  background: linear-gradient(135deg, rgba(18, 28, 72, 0.95), rgba(12, 20, 52, 0.92));
  border: 1px solid var(--dc-border-cyan);
  border-left: 4px solid var(--dc-gold);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.44);
}

.dc-aeo-lead-kicker,
.kh-answer-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dc-cyan);
}

.dc-aeo-lead p,
.kh-answer p {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--dc-ink);
}

/* Engineering Spec, HSN/GST, Compatibility & Fault Probability Tables */
.dc-table-scroll,
.kh-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 6px;
  border-radius: var(--dc-radius-md);
  border: 1px solid var(--dc-border);
  background: rgba(8, 13, 36, 0.88);
}

.dc-spec-table,
.dc-hsn-table,
.dc-compat-table,
.dc-fault-table,
.kh-table,
body[data-dc-archetype] table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--dc-muted);
}

.dc-spec-table th,
.dc-hsn-table th,
.dc-compat-table th,
.dc-fault-table th,
.kh-table th,
body[data-dc-archetype] table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dc-gold-bright);
  background: rgba(230, 193, 104, 0.1);
  border-bottom: 1px solid var(--dc-border);
}

.dc-spec-table td,
.dc-hsn-table td,
.dc-compat-table td,
.dc-fault-table td,
.kh-table td,
body[data-dc-archetype] table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  vertical-align: top;
  color: var(--dc-muted);
}

.dc-spec-table tbody tr:hover td,
.dc-hsn-table tbody tr:hover td,
.dc-compat-table tbody tr:hover td,
.dc-fault-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

.dc-price-band {
  display: inline-block;
  font-weight: 800;
  color: var(--dc-emerald);
  white-space: nowrap;
}

.dc-prob-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--dc-cyan);
}

/* Archetype 1: Trust & Legal Clean Editorial Layout */
body[data-dc-archetype="archetype-trust-legal"] main .dp-container,
body[data-dc-archetype="archetype-trust-legal"] .dc-legal-shell {
  max-width: 920px;
}

/* Archetype 3: Category Showroom Video Reel Shell */
.dc-showroom-reel-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: var(--dc-radius-lg);
  background: linear-gradient(145deg, rgba(16, 24, 62, 0.94), rgba(10, 15, 42, 0.94));
  border: 1px solid var(--dc-border);
  box-shadow: var(--dc-shadow-card);
}

.dc-showroom-reel-frame {
  position: relative;
  border-radius: var(--dc-radius-md);
  overflow: hidden;
  border: 1px solid var(--dc-border-cyan);
  background: #040717;
  aspect-ratio: 16 / 9;
}

.dc-showroom-reel-frame video,
.dc-showroom-reel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Concierge Ambassador Card */
.dc-concierge-spotlight {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--dc-radius-md);
  background: var(--dc-bg-surface);
  border: 1px solid var(--dc-border);
}

.dc-concierge-spotlight img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid var(--dc-border);
}

/* Knowledge Hub Dark Layout */
.kh-page {
  padding: 24px 0 48px;
}

.kh-layout {
  width: min(var(--dc-max-w), calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.kh-toc {
  position: sticky;
  top: 90px;
  padding: 18px;
  border-radius: var(--dc-radius-md);
  background: var(--dc-bg-surface);
  border: 1px solid var(--dc-border);
}

.kh-toc ol,
.kh-toc ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.kh-article {
  min-width: 0;
  padding: 28px;
  border-radius: var(--dc-radius-lg);
  background: var(--dc-bg-surface);
  border: 1px solid var(--dc-border);
}

.kh-article-hero {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--dc-border-soft);
}

/* Forms & Inputs */
body[data-dc-archetype] input:not([type="checkbox"]):not([type="radio"]),
body[data-dc-archetype] select,
body[data-dc-archetype] textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(6, 10, 32, 0.92);
  color: var(--dc-ink);
  border: 1px solid rgba(148, 163, 184, 0.34);
  font-family: inherit;
  font-size: 0.95rem;
}

body[data-dc-archetype] label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dc-ink);
}

/* FAQ Accordion */
.dp-faq details,
.ru-faq details,
.dc-faq details {
  background: var(--dc-bg-surface);
  border: 1px solid var(--dc-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.dp-faq summary,
.ru-faq summary,
.dc-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dc-ink);
}

/* Footer */
.dp-footer,
.ru-footer {
  margin-top: 44px;
  padding: 38px 0 28px;
  background: rgba(4, 7, 22, 0.96);
  border-top: 1px solid var(--dc-border);
  color: var(--dc-muted);
}

.dp-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.dp-footer h2,
.dp-footer h3,
.dp-footer h4 {
  font-size: 0.96rem;
  color: var(--dc-gold-bright);
  margin-bottom: 10px;
}

.dp-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-footer li {
  margin-bottom: 7px;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .dc-showroom-reel-shell {
    grid-template-columns: 1fr;
  }
  .kh-layout {
    grid-template-columns: 1fr;
  }
  .kh-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .dp-header-inner,
  .ru-topbar-inner {
    padding: 8px 0;
  }
  .dc-concierge-spotlight {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .dc-concierge-spotlight img {
    width: 112px;
    height: 112px;
  }
  .dp-card,
  .ru-card,
  .dc-arch-card,
  .kh-article {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}
