:root {
  color-scheme: light;
  --dl-bg: #fafafa;
  --dl-bg-soft: #f4f4f5;
  --dl-card: #ffffff;
  --dl-text: #0d0d0d;
  --dl-muted: #71717a;
  --dl-line: #e4e4e7;
  --dl-accent: #0d0d0d;
  --dl-accent-soft: rgba(13, 13, 13, 0.05);
  --dl-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  --dl-shadow-hover: 0 28px 64px rgba(0, 0, 0, 0.1);
  --dl-radius: 22px;
  --dl-glow: rgba(99, 102, 241, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 0;
  height: auto;
}

body {
  font-family: "Yekan Bakh", Tahoma, sans-serif;
  color: var(--dl-text);
  background: var(--dl-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.dl-page {
  position: relative;
  min-height: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.07), transparent 42%),
    radial-gradient(circle at 100% 50%, rgba(0, 0, 0, 0.03), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, var(--dl-bg) 100%);
}

.dl-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(var(--dl-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dl-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 72%);
}

.dl-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  animation: dl-drift 18s ease-in-out infinite alternate;
}

.dl-ambient-a {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -100px;
  background: var(--dl-glow);
  animation-delay: 0s;
}

.dl-ambient-b {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -80px;
  background: rgba(0, 0, 0, 0.04);
  animation-delay: -6s;
}

.dl-ambient-c {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(99, 102, 241, 0.06);
  animation-delay: -12s;
}

@keyframes dl-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(24px, -16px) scale(1.06);
  }
}

.dl-main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 32px;
}

.dl-hero {
  text-align: center;
  max-width: 100%;
  margin: 0 auto 48px;
  padding: 0 12px;
  animation: dl-rise 0.7s ease both;
}

.dl-hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  transition: opacity 0.2s ease;
}

.dl-hero-brand:hover {
  opacity: 0.78;
}

.dl-hero-brand img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dl-grid-shell {
  position: relative;
}

.dl-sheet-nav {
  display: none;
}

.dl-carousel {
  display: block;
}

.dl-sheet-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dl-sheet-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d4d4d8;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.dl-sheet-dot.is-active {
  width: 22px;
  background: #0d0d0d;
}

.dl-sheet-hint {
  margin: 12px 0 0;
  text-align: center;
  color: var(--dl-muted);
  font-size: 12px;
  font-weight: 600;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--dl-shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: dl-rise 0.7s ease both;
  overflow: hidden;
}

.dl-card:nth-child(1) { animation-delay: 0.06s; }
.dl-card:nth-child(2) { animation-delay: 0.1s; }
.dl-card:nth-child(3) { animation-delay: 0.14s; }
.dl-card:nth-child(4) { animation-delay: 0.18s; }
.dl-card:nth-child(5) { animation-delay: 0.22s; }
.dl-card:nth-child(6) { animation-delay: 0.26s; }

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow-hover);
  border-color: #d4d4d8;
}

.dl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.dl-card-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.dl-card-tags .dl-card-chip,
.dl-card-tags .dl-card-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.dl-card-tags .dl-card-chip-version,
.dl-card-tags .dl-card-chip-arch {
  margin: 0;
}

.dl-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.dl-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--dl-bg-soft);
  color: var(--dl-text);
}

.dl-card-icon svg {
  width: 22px;
  height: 22px;
}

/* Web — browser / cloud */
.dl-card-web {
  border-radius: 24px;
  border-color: rgba(99, 102, 241, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 44%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.14), transparent 46%),
    linear-gradient(165deg, #ffffff 0%, #f5f7ff 100%);
  box-shadow: 0 18px 44px rgba(99, 102, 241, 0.11);
}

.dl-card-web::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 34px;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 18px 17px, #f87171 4px, transparent 4px),
    radial-gradient(circle at 34px 17px, #fbbf24 4px, transparent 4px),
    radial-gradient(circle at 50px 17px, #4ade80 4px, transparent 4px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  pointer-events: none;
}

.dl-card-web:hover {
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 26px 56px rgba(99, 102, 241, 0.16);
}

.dl-card-web .dl-card-top {
  margin-top: 18px;
}

.dl-card-web .dl-card-icon {
  background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.dl-card-web .dl-card-badge {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.dl-card-web .dl-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #38bdf8 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.32);
}

.dl-card-web .dl-btn-primary:hover {
  opacity: 1;
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 45%, #0ea5e9 100%);
}

/* Android — Material Design */
.dl-card-android {
  border-radius: 28px;
  border-color: rgba(52, 168, 83, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 220, 132, 0.14), transparent 42%),
    linear-gradient(165deg, rgba(52, 168, 83, 0.07) 0%, #ffffff 58%);
  box-shadow: 0 18px 44px rgba(52, 168, 83, 0.1);
}

.dl-card-android:hover {
  border-color: rgba(52, 168, 83, 0.42);
  box-shadow: 0 26px 56px rgba(52, 168, 83, 0.16);
}

.dl-card-android .dl-card-icon {
  background: linear-gradient(145deg, #3ddc84 0%, #34a853 100%);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(52, 168, 83, 0.28);
}

.dl-card-android .dl-card-badge {
  background: rgba(52, 168, 83, 0.14);
  color: #137333;
}

.dl-card-android .dl-card-chip-version {
  border-color: rgba(52, 168, 83, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.dl-card-android .dl-card-chip-version .dl-card-chip-v {
  color: #137333;
}

.dl-card-android .dl-btn-primary {
  background: linear-gradient(135deg, #34a853 0%, #1e8e3e 100%);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(52, 168, 83, 0.32);
}

.dl-card-android .dl-btn-secondary {
  border-color: rgba(52, 168, 83, 0.28);
  background: rgba(52, 168, 83, 0.08);
  color: #137333;
  border-radius: 999px;
}

.dl-card-android .dl-btn-secondary:hover {
  background: rgba(52, 168, 83, 0.14);
}

.dl-card-android .dl-btn-disabled {
  background: rgba(52, 168, 83, 0.08);
  color: rgba(19, 115, 51, 0.55);
  border: 1px solid rgba(52, 168, 83, 0.16);
  border-radius: 999px;
}

.dl-card-ios {
  border-radius: 26px;
  border-color: rgba(0, 0, 0, 0.07);
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 55%, #efeff4 100%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.dl-card-ios:hover {
  border-color: rgba(0, 122, 255, 0.22);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 122, 255, 0.08);
}

.dl-card-ios .dl-card-icon {
  background: linear-gradient(145deg, #ffffff 0%, #e8e8ed 100%);
  color: #1d1d1f;
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 16px rgba(0, 0, 0, 0.1);
}

.dl-card-ios .dl-card-badge {
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  border: 1px solid rgba(0, 122, 255, 0.16);
}

.dl-card-ios .dl-btn-disabled {
  background: rgba(245, 245, 247, 0.95);
  color: rgba(29, 29, 31, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

/* TV — Android TV / cinematic */
.dl-card-tv {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(249, 115, 22, 0.28), transparent 55%),
    linear-gradient(180deg, #17171c 0%, #23232b 100%);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dl-card-tv::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.75), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.dl-card-tv:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(249, 115, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dl-card-tv .dl-card-title {
  color: #f8fafc;
}

.dl-card-tv .dl-card-text {
  color: rgba(226, 232, 240, 0.78);
}

.dl-card-tv .dl-card-icon {
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
  color: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(249, 115, 22, 0.35);
}

.dl-card-tv .dl-card-badge {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.28);
}

.dl-card-tv .dl-card-chip-version {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.dl-card-tv .dl-card-chip-k {
  color: rgba(226, 232, 240, 0.72);
}

.dl-card-tv .dl-card-chip-v {
  color: #f8fafc;
}

.dl-card-tv .dl-card-chip-size {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.78);
}

.dl-card-tv .dl-btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.dl-card-tv .dl-btn-disabled {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Windows — Fluent Design */
.dl-card-windows {
  border-radius: 10px;
  border-color: rgba(0, 120, 212, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.09) 0%, rgba(0, 120, 212, 0.02) 38%, #ffffff 100%);
  box-shadow:
    0 18px 44px rgba(0, 120, 212, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dl-card-windows::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.14) 0%, rgba(0, 120, 212, 0.14) 50%, rgba(0, 188, 242, 0.14) 50%, rgba(0, 188, 242, 0.14) 100%);
  opacity: 0.35;
  pointer-events: none;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.dl-card-windows:hover {
  border-color: rgba(0, 120, 212, 0.38);
  box-shadow:
    0 26px 56px rgba(0, 120, 212, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dl-card-windows .dl-card-icon {
  background: linear-gradient(145deg, #0078d4 0%, #005a9e 100%);
  color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 120, 212, 0.28);
}

.dl-card-windows .dl-card-badge {
  background: rgba(0, 120, 212, 0.12);
  color: #0078d4;
  border: 1px solid rgba(0, 120, 212, 0.18);
}

.dl-card-windows .dl-card-chip-version {
  border-color: rgba(0, 120, 212, 0.24);
  background: rgba(255, 255, 255, 0.95);
}

.dl-card-windows .dl-card-chip-version .dl-card-chip-v {
  color: #0078d4;
}

.dl-card-windows .dl-btn-primary {
  background: #0078d4;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.28);
}

.dl-card-windows .dl-btn-primary:hover {
  background: #106ebe;
}

.dl-card-windows .dl-btn-disabled {
  background: rgba(0, 120, 212, 0.08);
  color: rgba(0, 90, 158, 0.55);
  border: 1px solid rgba(0, 120, 212, 0.14);
  border-radius: 4px;
}

/* IDE Agent — code editor */
.dl-card-ide_agent {
  border-radius: 12px;
  border-color: rgba(124, 58, 237, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.16), transparent 42%),
    linear-gradient(180deg, #1e1e1e 0%, #252526 100%);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dl-card-ide_agent::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.dl-card-ide_agent::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 16px 0 0 #f59e0b, 32px 0 0 #22c55e;
  opacity: 0.85;
  pointer-events: none;
}

.dl-card-ide_agent:hover {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(124, 58, 237, 0.18);
}

.dl-card-ide_agent .dl-card-top {
  margin-top: 14px;
}

.dl-card-ide_agent .dl-card-title {
  color: #f4f4f5;
}

.dl-card-ide_agent .dl-card-text {
  color: rgba(212, 212, 216, 0.78);
}

.dl-card-ide_agent .dl-card-icon {
  background: linear-gradient(145deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.25),
    0 8px 20px rgba(124, 58, 237, 0.35);
}

.dl-card-ide_agent .dl-card-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.32);
}

.dl-card-ide_agent .dl-card-chip-version {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.dl-card-ide_agent .dl-card-chip-k {
  color: rgba(212, 212, 216, 0.72);
}

.dl-card-ide_agent .dl-card-chip-v {
  color: #f4f4f5;
}

.dl-card-ide_agent .dl-card-chip-size {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(212, 212, 216, 0.78);
}

.dl-card-ide_agent .dl-btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}

.dl-card-ide_agent .dl-btn-disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(212, 212, 216, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.dl-card-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--dl-accent-soft);
  color: var(--dl-muted);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dl-card-title {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-card-text {
  margin: 0;
  color: var(--dl-muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

.dl-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}

.dl-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--dl-line);
  border-radius: 999px;
  background: var(--dl-bg-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.dl-card-chip-k {
  color: var(--dl-muted);
  font-weight: 700;
}

.dl-card-chip-v {
  color: var(--dl-text);
}

.dl-card-chip-version {
  background: #ffffff;
}

.dl-card-chip-arch {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
}

.dl-card-windows .dl-card-chip-arch {
  background: rgba(59, 130, 246, 0.12);
}

.dl-card-chip-size {
  background: #ffffff;
  color: var(--dl-muted);
  font-weight: 700;
}

.dl-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.dl-card-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dl-card-actions-grid .dl-btn {
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.dl-card-web .dl-card-actions {
  justify-content: stretch;
}

.dl-card-web .dl-btn-primary {
  width: 100%;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dl-btn:hover {
  transform: translateY(-1px);
}

.dl-btn-primary {
  background: var(--dl-accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 13, 13, 0.14);
}

.dl-btn-primary:hover {
  opacity: 0.94;
  box-shadow: 0 14px 28px rgba(13, 13, 13, 0.18);
}

.dl-btn-secondary {
  border: 1px solid var(--dl-line);
  background: var(--dl-bg-soft);
  color: var(--dl-text);
}

.dl-btn-secondary:hover {
  background: #ececee;
}

.dl-btn-disabled {
  background: var(--dl-bg-soft);
  color: var(--dl-muted);
  cursor: not-allowed;
}

.dl-btn-disabled:hover {
  transform: none;
}

@keyframes dl-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 861px) {
  html,
  body {
    min-height: 100%;
  }

  .dl-page {
    min-height: 100vh;
  }

  .dl-slide {
    display: contents;
  }
}

@media (max-width: 1200px) {
  .dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  html,
  body {
    height: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.07), transparent 42%),
      radial-gradient(circle at 100% 50%, rgba(0, 0, 0, 0.03), transparent 36%),
      linear-gradient(180deg, #ffffff 0%, var(--dl-bg) 100%);
  }

  body {
    overflow-x: hidden;
  }

  .dl-page {
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
  }

  .dl-grid-bg {
    position: fixed;
    inset: 0;
    opacity: 0.32;
    mask-image: none;
    z-index: 0;
  }

  .dl-ambient {
    position: fixed;
    opacity: 0.45;
    z-index: 0;
  }

  .dl-main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding:
      max(16px, env(safe-area-inset-top))
      16px
      max(12px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .dl-hero {
    flex: 0 0 auto;
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .dl-hero-brand {
    margin-bottom: 0;
  }

  .dl-carousel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0;
  }

  .dl-grid-shell {
    flex: 1 1 auto;
    min-height: 0;
    width: calc(100% + 32px);
    margin-inline: -16px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0;
  }

  .dl-grid-shell::-webkit-scrollbar {
    display: none;
  }

  .dl-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: max-content;
    min-height: 100%;
    padding: 0;
    direction: rtl;
  }

  .dl-slide {
    flex: 0 0 100vw;
    width: 100vw;
    box-sizing: border-box;
    padding: 0 16px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dl-grid .dl-card {
    width: 100%;
    max-width: none;
    min-height: auto;
    height: auto;
    margin: 0;
  }

  .dl-grid .dl-card .dl-card-actions {
    margin-top: 0;
    padding-top: 16px;
  }

  .dl-grid .dl-card:hover {
    transform: none;
  }

  .dl-sheet-nav {
    flex: 0 0 auto;
    display: block;
    margin-top: 0;
    padding: 14px 4px 0;
  }

  .dl-sheet-hint {
    margin-top: 8px;
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .dl-main {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .dl-hero {
    margin-bottom: 14px;
  }

  .dl-card {
    padding: 18px;
  }

  .dl-card-actions:not(.dl-card-actions-grid) {
    flex-direction: column;
  }

  .dl-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-ambient,
  .dl-hero,
  .dl-card {
    animation: none;
  }

  .dl-card:hover,
  .dl-btn:hover {
    transform: none;
  }
}
