/* ============================================
   CoreMatrix — Digital Infrastructure Marketplace
   Design System v1.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Geist:wght@400;500;600;700&display=swap');

:root {
  /* Base — Deep Charcoal Void */
  --void: #0a0a0f;
  --void-light: #12121a;
  --void-lighter: #1a1a24;
  --void-soft: #222230;
  --void-muted: #2a2a3a;

  /* Surface */
  --surface: #13131c;
  --surface-hover: #1c1c28;
  --surface-elevated: #181824;

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-tertiary: #6e6e80;
  --text-dim: #4a4a5c;
  --text-inverse: #0a0a0f;

  /* Accent — Electric Coral */
  --coral: #ff6b6b;
  --coral-bright: #ff8585;
  --coral-deep: #e85555;
  --coral-dim: rgba(255, 107, 107, 0.1);
  --coral-glow: rgba(255, 107, 107, 0.15);

  /* Secondary — Electric Blue */
  --electric: #4ecdc4;
  --electric-dim: rgba(78, 205, 196, 0.1);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-medium: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-coral: rgba(255, 107, 107, 0.2);

  /* Gradients */
  --grad-coral: linear-gradient(135deg, #ff6b6b 0%, #ff8585 100%);
  --grad-void: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
  --grad-surface: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.7);
  --shadow-coral: 0 0 30px rgba(255, 107, 107, 0.15);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Transitions */
  --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-head: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Geist', -apple-system, sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--void);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul {
  list-style: none;
}

/* ============================================
   Matrix Background
   ============================================ */

.matrix-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.orb-coral {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.12) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.orb-void {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,107,107,0.15), transparent);
  animation: scan 8s linear infinite;
  opacity: 0.3;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

/* ============================================
   Layout
   ============================================ */

.cm-container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.zone-padded {
  padding: 5.5rem 0;
}

.zone-dark {
  background: var(--void-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* ============================================
   Header
   ============================================ */

.cm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.brand-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-icon {
  width: 36px;
  height: 36px;
  color: var(--coral);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Nav */
.site-nav {
  display: flex;
  gap: 0.2rem;
}

.nav-item {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  position: relative;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

/* ============================================
   Buttons
   ============================================ */

.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
  white-space: nowrap;
  line-height: 1.5;
}

.cm-btn-primary {
  background: var(--grad-coral);
  color: var(--text-inverse);
  border: none;
  box-shadow: 0 2px 12px rgba(255, 107, 107, 0.25);
}

.cm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.35);
}

.cm-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.cm-btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral-bright);
  background: var(--coral-dim);
}

.cm-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.cm-btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  border-color: var(--border-medium);
}

.cm-btn-xl {
  padding: 0.8rem 1.6rem;
  font-size: 0.92rem;
}

.cm-btn.full {
  width: 100%;
}

/* Pill */
.cm-pill {
  min-width: 18px;
  height: 18px;
  padding: 0 0.35rem;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--coral);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Hero
   ============================================ */

.hero-zone {
  padding: 4.5rem 0 5.5rem;
  position: relative;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--coral-dim);
  border: 1px solid var(--border-coral);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-bright);
  margin-bottom: 1.25rem;
}

.tag-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,107,107,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255,107,107,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
}

.title-highlight {
  color: var(--coral);
}

.hero-lead {
  max-width: 500px;
  margin-top: 1.1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-data {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.data-point {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.data-num {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.data-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.data-line {
  width: 1px;
  height: 28px;
  background: var(--border-medium);
}

/* Hero Card */
.hero-side {
  display: flex;
  justify-content: center;
}

.matrix-card {
  width: 100%;
  max-width: 340px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-dots {
  display: flex;
  gap: 0.3rem;
}

.card-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.card-dots span:nth-child(1) { background: var(--coral); }
.card-dots span:nth-child(2) { background: var(--electric); }
.card-dots span:nth-child(3) { background: var(--text-dim); }

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-mid {
  padding: 1.1rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.status-name {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.status-val {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral-bright);
}

.status-bar {
  height: 4px;
  background: var(--void-muted);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.status-fill {
  height: 100%;
  background: var(--grad-coral);
  border-radius: var(--r-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-bot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--void-light);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   Section Headers
   ============================================ */

.zone-head {
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.zone-head-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.zone-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.zone-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
}

/* ============================================
   Features
   ============================================ */

.feature-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-node {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: all var(--t-base);
}

.feature-node:hover {
  transform: translateY(-3px);
  border-color: var(--border-coral);
  box-shadow: var(--shadow-coral);
}

.node-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--coral-dim);
  color: var(--coral);
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.feature-node h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-node p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ============================================
   Products
   ============================================ */

.product-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-node {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
  position: relative;
}

.product-node:hover {
  transform: translateY(-4px);
  border-color: var(--border-coral);
  box-shadow: var(--shadow-coral), var(--shadow-lg);
}

.node-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-coral);
  opacity: 0;
  transition: opacity var(--t-base);
}

.product-node:hover .node-glow {
  opacity: 1;
}

.node-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.node-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--coral-dim);
  color: var(--coral);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.product-node h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.node-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: 0.9rem;
}

.node-specs {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  flex: 1;
}

.node-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.node-specs li i {
  color: var(--coral);
  font-size: 0.68rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.node-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--void-light);
}

.node-price {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ============================================
   CTA
   ============================================ */

.cta-zone {
  padding: 3.5rem 0;
}

.cta-block {
  background: var(--surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  max-width: 480px;
}

.cta-inner p {
  max-width: 440px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.cta-visual {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
}

.matrix-cube {
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 12s linear infinite;
}

.cube-face {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-coral);
  border-radius: var(--r-md);
}

.cube-face:nth-child(1) {
  transform: rotateY(0deg) translateZ(40px);
  background: var(--coral-dim);
}

.cube-face:nth-child(2) {
  transform: rotateY(90deg) translateZ(40px);
  background: rgba(255,107,107,0.05);
}

.cube-face:nth-child(3) {
  transform: rotateX(90deg) translateZ(40px);
  background: rgba(255,107,107,0.03);
}

@keyframes cube-spin {
  from { transform: rotateX(-15deg) rotateY(0deg); }
  to { transform: rotateX(-15deg) rotateY(360deg); }
}

/* ============================================
   Trusted
   ============================================ */

.trust-zone {
  padding: 3.5rem 0;
}

.trust-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.trust-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.trust-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}

.trust-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  max-width: 440px;
  margin: 0 auto;
}

.trust-node {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}

.trust-node:hover {
  transform: translateY(-2px);
  border-color: var(--border-coral);
  box-shadow: var(--shadow-coral);
}

.trust-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.trust-mark.jazzcash {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.trust-mark.easypaisa {
  background: linear-gradient(135deg, #dc2626, #f87171);
}

.trust-detail h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.trust-detail p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ============================================
   Process
   ============================================ */

.process-zone {
  padding: 4.5rem 0;
}

.process-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.process-node {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  transition: all var(--t-base);
}

.process-node:hover {
  transform: translateY(-3px);
  border-color: var(--border-coral);
  box-shadow: var(--shadow-coral);
}

.process-index {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--coral);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.process-node h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.process-node p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ============================================
   Footer
   ============================================ */

.cm-footer {
  background: var(--void-light);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 1.5rem;
}

.footer-matrix {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-block {
  max-width: 280px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
}

.footer-brand .brand-text {
  font-size: 1.05rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-tertiary);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color var(--t-fast);
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-base {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 0.4rem;
}

.footer-links a {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  transition: all var(--t-fast);
}

.footer-links a:hover {
  color: var(--coral);
  border-color: var(--coral);
  background: var(--coral-dim);
}

/* ============================================
   Floating Cart
   ============================================ */

.float-cart {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--grad-coral);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
  cursor: pointer;
  z-index: 120;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transition: all var(--t-base);
}

.float-cart:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.float-cart .cm-pill {
  position: absolute;
  top: -4px;
  right: -4px;
}

/* ============================================
   Overlay & Drawer
   ============================================ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 130;
}

.hidden {
  display: none !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--void-light);
  color: var(--text-primary);
  z-index: 140;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-top {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.drawer-top h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.close-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  border-radius: var(--r-md);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  transition: all var(--t-fast);
}

.close-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-dim);
}

.drawer-mid {
  padding: 1.1rem 1.25rem;
  flex: 1;
  overflow: auto;
}

.empty-state {
  border: 1px dashed var(--border-medium);
  border-radius: var(--r-lg);
  padding: 2.25rem 1rem;
  text-align: center;
  color: var(--text-dim);
}

.empty-state i {
  font-size: 1.6rem;
  color: var(--text-dim);
  opacity: 0.4;
  margin-bottom: 0.6rem;
}

.empty-state p {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.empty-state small {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.cart-line {
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  background: var(--surface-elevated);
  transition: border-color var(--t-fast);
}

.cart-line:hover {
  border-color: var(--border-coral);
}

.cart-line-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.cart-line-info p {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.line-total {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  grid-column: 2;
  text-align: right;
}

.qty-stepper {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--void-light);
}

.qty-stepper button {
  width: 28px;
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--t-fast);
}

.qty-stepper button:hover {
  background: var(--coral-dim);
  color: var(--coral);
}

.qty-stepper span {
  min-width: 30px;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
}

/* Related */
.related-wrap {
  border-top: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  background: var(--void-light);
}

.related-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.related-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.related-top h4 {
  font-size: 0.92rem;
  font-weight: 700;
}

.related-pill {
  min-width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 0.72rem;
  background: var(--grad-coral);
}

.related-list {
  display: grid;
  gap: 0.5rem;
  max-height: 300px;
  overflow: auto;
  padding-right: 0.2rem;
}

.related-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--surface-elevated);
  transition: border-color var(--t-fast);
}

.related-item:hover {
  border-color: var(--border-coral);
}

.related-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--coral);
  background: var(--coral-dim);
  font-size: 0.88rem;
}

.related-meta h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.related-meta p {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.related-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.related-action strong {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 800;
}

/* Drawer Footer */
.drawer-bot {
  border-top: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  background: var(--void-light);
}

.total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.total-bar span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.total-bar strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
}

/* ============================================
   Checkout Modal
   ============================================ */

.modal-wrap {
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.checkout-box {
  width: min(500px, 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--void-light);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
}

.form-grid {
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.form-cell {
  display: grid;
  gap: 0.35rem;
}

.form-cell.wide {
  grid-column: span 2;
}

.form-cell span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-cell input {
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  padding: 0.65rem 0.85rem;
  font: inherit;
  background: var(--surface-elevated);
  color: var(--text-primary);
  transition: all var(--t-fast);
  font-size: 0.88rem;
}

.form-cell input::placeholder {
  color: var(--text-dim);
}

.form-cell input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-glow);
  background: var(--void-light);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-side {
    order: -1;
    justify-content: flex-start;
  }

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

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

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

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

  .cta-block {
    grid-template-columns: 1fr;
  }

  .cta-visual {
    display: none;
  }
}

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

  .hero-zone {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-data {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .data-line {
    display: none;
  }

  .feature-matrix,
  .product-matrix,
  .process-matrix,
  .footer-matrix,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-cell.wide {
    grid-column: span 1;
  }

  .zone-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-base {
    flex-direction: column;
    text-align: center;
  }

  .zone-padded {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .cm-btn {
    width: 100%;
  }

  .trust-matrix {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--void-muted);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ============================================
   Selection
   ============================================ */

::selection {
  background: rgba(255, 107, 107, 0.25);
  color: var(--text-primary);
}
