/* ============================================================
   DEALSGALA CASE STUDY — Unique Premium Design System
   Bright / Geometric / Professional
   Completely distinct from HiddenGems (project5) aesthetic
   ============================================================ */

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

/* ---------- Design Tokens ---------- */
:root {
  --dg-bg: #FAFBFF;
  --dg-bg-cream: #FFF8E7;
  --dg-bg-blue-subtle: #EEF4FF;
  --dg-white: #FFFFFF;
  --dg-primary: #2563EB;
  --dg-primary-dark: #1D4ED8;
  --dg-primary-light: #DBEAFE;
  --dg-gold: #ffffff;
  --dg-gold-light: #FEF3C7;
  --dg-gold-glow: rgba(245, 197, 66, 0.25);
  --dg-text-dark: #111827;
  --dg-text-body: #4B5563;
  --dg-text-muted: #9CA3AF;
  --dg-border: #E5E7EB;
  --dg-font-heading: 'Sora', 'Inter', sans-serif;
  --dg-font-body: 'Inter', -apple-system, sans-serif;
  --dg-content-w: 1100px;
  --dg-pad: 80px;
  --dg-radius: 20px;
  --dg-radius-sm: 12px;
  --dg-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --dg-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --dg-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --dg-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

.dg-page {
  font-family: var(--dg-font-body);
  color: var(--dg-text-body);
  background: var(--dg-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  width: 100%;
}

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

.dg-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   ANIMATIONS — geometric floats, shimmer, tilt
   ============================================================ */
@keyframes floatGeo {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(4deg);
  }

  66% {
    transform: translateY(10px) rotate(-2deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes gentleSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--dg-gold-glow);
  }

  50% {
    box-shadow: 0 0 40px 10px var(--dg-gold-glow);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blobMorph {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  33% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  66% {
    border-radius: 50% 40% 60% 50% / 40% 60% 50% 60%;
  }
}

.dg-blob--animate {
  animation: blobMorph 15s ease-in-out infinite alternate;
}

.dg-blob--static {
  animation: none !important;
}

@keyframes tagFloat {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -12px);
  }
}

@keyframes tagFloatSide {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Geometric Decorators ---------- */
.dg-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.dg-float-hover {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dg-float-hover:hover {
  transform: translateY(-10px) scale(1.02);
}

.dg-geo--circle {
  border: 2px solid rgba(37, 99, 235, 0.1);
  background: transparent;
}

.dg-geo--filled {
  background: var(--dg-gold-light);
  opacity: 0.5;
}

.dg-geo--blue {
  background: var(--dg-primary-light);
  opacity: 0.4;
}

.dg-geo--float {
  animation: floatGeo 8s ease-in-out infinite;
}

@keyframes floatParallax {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
  }

  25% {
    transform: translateY(-40px) translateX(20px) scale(1.05) rotate(5deg);
  }

  50% {
    transform: translateY(-10px) translateX(-30px) scale(0.95) rotate(-3deg);
  }

  75% {
    transform: translateY(-30px) translateX(10px) scale(1.02) rotate(2deg);
  }
}

@keyframes meshShift {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  }

  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  67% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 40%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  }
}

/* ---------- Premium Abstract Shapes ---------- */
.dg-abstract-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  filter: blur(10px);
  /* Further reduced for performance */
  animation: floatParallax 30s ease-in-out infinite alternate, meshShift 25s ease-in-out infinite alternate;
  background-size: 200% 200%;
}

.dg-shape--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 30% 30%, var(--dg-primary) 0%, transparent 70%),
    radial-gradient(circle at 70% 70%, var(--dg-gold) 0%, transparent 70%);
  opacity: 0.18;
}

@media (max-width: 768px) {
  .dg-shape--1 {
    width: 300px;
    height: 300px;
  }
}

.dg-shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, var(--dg-primary-light) 0%, transparent 60%);
  border: 2px solid var(--dg-primary);
  opacity: 0.1;
  filter: blur(10px);
}

@media (max-width: 768px) {
  .dg-shape--2 {
    width: 250px;
    height: 250px;
  }
}

.dg-shape--3 {
  width: 600px;
  height: 300px;
  background: linear-gradient(135deg, var(--dg-primary) 0%, var(--dg-gold) 100%);
  clip-path: polygon(10% 0%, 100% 20%, 90% 100%, 0% 80%);
  opacity: 0.08;
  filter: blur(30px);
}

.dg-shape--4 {
  width: 150px;
  height: 150px;
  border: 40px solid var(--dg-gold-light);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.15;
}

.dg-shape--square {
  width: 300px;
  height: 300px;
  background: var(--dg-primary-light);
  border-radius: 40px;
  opacity: 0.08;
  transform: rotate(15deg);
}

.dg-shape--oval {
  width: 600px;
  height: 250px;
  background: var(--dg-gold-light);
  border-radius: 50%;
  opacity: 0.1;
}

/* ---------- Organic Blobs ---------- */
.dg-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: blur(25px);
  /* Further reduced */
  opacity: 0.22;
  transition: opacity 1.2s ease;
  will-change: transform;
  /* Only transform, not border-radius */
}

.dg-blob--yellow {
  background: var(--dg-gold-light);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.dg-blob--blue {
  background: var(--dg-primary-light);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.dg-blob--lg {
  width: 600px;
  height: 600px;
}

.dg-blob--md {
  width: 400px;
  height: 400px;
}

.dg-blob--sm {
  width: 250px;
  height: 250px;
}

@media (max-width: 768px) {
  .dg-blob--lg {
    width: 300px;
    height: 300px;
  }

  .dg-blob--md {
    width: 200px;
    height: 200px;
  }

  .dg-blob--sm {
    width: 150px;
    height: 150px;
  }
}

/* Solid Transition Blobs */
.dg-blob--solid {
  opacity: 1;
  filter: blur(20px);
}

/* ---------- Contained Section Blobs ---------- */
.dg-section-blob-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px;
  z-index: 1;
  display: block;
}

.dg-section-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: opacity 1s ease;
  animation: meshShift 30s ease-in-out infinite alternate;
}

.dg-section-blob--cream {
  background: var(--dg-bg-cream);
  border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
}

.dg-section-blob--blue {
  background: var(--dg-primary-light);
  border-radius: 30% 70% 60% 40% / 50% 40% 70% 50%;
  opacity: 0.8;
}

.dg-section-blob--alt {
  border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
}

/* Modifier to remove full-width backgrounds */
.dg-section--transparent {
  background: transparent !important;
}

.dg-section--full-width {
  background: var(--dg-white) !important;
}

.dg-section--cream-full {
  background: var(--dg-bg-cream) !important;
}

.dg-section--blue-full {
  background: var(--dg-bg-blue-subtle) !important;
}

/* Irregular Section Entry/Exit */
.dg-section--organic-top {
  padding-top: 120px;
  margin-top: -60px;
}

.dg-section--organic-bottom {
  padding-bottom: 120px;
  margin-bottom: -60px;
}

/* ---------- Premium Decorators ---------- */
.dg-glow-ring {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.dg-glow-ring--primary {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.dg-glow-ring--gold {
  border-color: rgba(245, 197, 66, 0.3);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.1);
}

.dg-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.dg-rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

/* ---------- Dot-Grid Pattern ---------- */
.dg-dotgrid {
  position: relative;
}

.dg-dotgrid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Scroll Reveal ---------- */
.dg-reveal {
  opacity: 0;
  transform: translateY(20px);
  /* Even smaller distance */
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dg-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO — Bright gradient + geometric shapes
   ============================================================ */
.dg-hero {
  position: relative;
  background: linear-gradient(145deg, #0e1d4d 0%, #173065 35%, #224f86d6 65%, #929292cc 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}

.dg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.12)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.dg-hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.dg-hero-text {
  text-align: left;
}

.dg-hero-title {
  font-family: var(--dg-font-heading);
  font-size: 82px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 40px rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.5));
}

.dg-hero-title .dg-hero-accent {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

@keyframes floatSymbol {

  0%,
  100% {
    transform: translate(0, 0) rotate(-5deg);
  }

  33% {
    transform: translate(2px, -12px) rotate(4deg);
  }

  66% {
    transform: translate(-2px, -4px) rotate(-2deg);
  }
}

.dg-floating-symbol {
  display: inline-block;
  font-size: 0.6em;
  vertical-align: middle;
  margin-left: -5px;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
  animation: floatSymbol 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-origin: center bottom;
}

.dg-hero-tagline {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 28px;
  max-width: 340px;
}

.dg-hero-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dg-hero-mockup-frame {
  position: relative;
  padding: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  animation: pulseGlow 5s ease-in-out infinite;
  transition: transform 0.5s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.dg-hero-mockup-frame:hover {
  transform: scale(1.03) rotate(-1deg);
}

.dg-hero-mockup-frame img {
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  display: block;
}

/* Hero Pill Tags */
.dg-pill-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--dg-text-dark);
  border-radius: 100px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  z-index: 10;
  white-space: nowrap;
  font-family: var(--dg-font-body);
  border: 1px solid rgba(255, 255, 255, 0.3);
  will-change: transform;
}

.dg-pill-tag--top {
  top: -15px;
  left: 50%;
  animation: tagFloat 5s ease-in-out infinite;
}

.dg-pill-tag--left {
  top: 40%;
  left: -60px;
  animation: tagFloatSide 6s ease-in-out infinite;
}

.dg-pill-tag--right {
  bottom: 80px;
  right: -50px;
  animation: tagFloatSide 5.5s ease-in-out infinite;
  animation-delay: -1s;
}

.dg-pill-tag .dg-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero Meta */
.dg-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  padding-left: 32px;
}

.dg-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  font-family: var(--dg-font-heading);
}

.dg-meta-value {
  font-size: 16px;
  color: white;
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================
   SECTIONS — with diagonal cuts
   ============================================================ */
.dg-section {
  position: relative;
  padding: 100px 0;
  /* overflow: visible to allow organic blobs to bleed into neighboring sections */
}

.dg-section--cream {
  background: var(--dg-bg-cream);
}

.dg-section--blue-subtle {
  background: var(--dg-bg-blue-subtle);
}

.dg-section--white {
  background: var(--dg-white);
}

/* Irregular section entry/exit removed in favor of organic blobs */
.dg-section--diagonal-top {
  margin-top: -60px;
  padding-top: 140px;
}

/* Diagonal cut at bottom */
.dg-section--diagonal-bottom {
  padding-bottom: 140px;
}

.dg-section-inner {
  width: 100%;
  max-width: var(--dg-content-w);
  margin: 0 auto;
  padding: 0 var(--dg-pad);
  position: relative;
  z-index: 1;
}

/* ---------- Section Heading with Accent Bar ---------- */
.dg-heading-block {
  margin-bottom: 56px;
}

.dg-watermark-text {
  font-family: var(--dg-font-heading);
  font-size: 80px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(37, 99, 235, 0.08);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: 4px;
}

.dg-heading-block h2 {
  font-family: var(--dg-font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--dg-text-dark);
  margin: -18px 0 0 0;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.dg-heading-block h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--dg-primary), var(--dg-gold));
  border-radius: 4px;
  margin-top: 16px;
}

.dg-heading-block h2.dg-heading-centered {
  text-align: center;
}

.dg-heading-block h2.dg-heading-centered::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Divider ---------- */
.dg-divider {
  border: none;
  height: 1px;
  background: var(--dg-border);
  margin: 0 0 64px;
}

/* ---------- Grids ---------- */
.dg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
}

.dg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---------- Body Text ---------- */
.dg-body-text {
  font-family: var(--dg-font-body);
  font-size: 16px;
  color: var(--dg-text-body);
  line-height: 1.8;
  margin: 0 0 16px;
}

.dg-body-text strong {
  color: var(--dg-text-dark);
  font-weight: 700;
}

.dg-section-heading {
  font-family: var(--dg-font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--dg-text-dark);
  margin: 0 0 32px;
}

.dg-sub-heading {
  font-family: var(--dg-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dg-text-dark);
  margin: 0 0 16px;
}

/* ============================================================
   CARDS — Gradient-border on hover
   ============================================================ */
.dg-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border-radius: var(--dg-radius);
  padding: 40px 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform var(--dg-transition), box-shadow var(--dg-transition), border-color var(--dg-transition), background var(--dg-transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dg-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   IMPACT CARDS
   ============================================================ */
/* Impact styles removed in favor of organic blobs */


/* Stat Blobs as seen in reference */
.dg-stat-blob {
  position: relative;
  width: 260px;
  height: 260px;
  background: #D1E5FF;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  box-shadow: 0 15px 45px rgba(37, 99, 235, 0.1);
  z-index: 5;
  animation: floatGeo 10s ease-in-out infinite alternate, blobMorph 12s ease-in-out infinite alternate;
  overflow: visible !important;
}

.dg-stat-blob::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -5px;
  width: 50px;
  height: 50px;
  background: #FFF8E7;
  /* Soft yellow accent circle from screenshot */
  border-radius: 50%;
  z-index: -1;
}

.dg-stat-blob .dg-stat-value {
  font-family: var(--dg-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--dg-text-dark);
  line-height: 1.1;
  margin-bottom: 5px;
}

.dg-stat-blob .dg-stat-desc {
  font-size: 20px;
  font-weight: 600;
  color: var(--dg-text-dark);
}

/* ============================================================
   USABILITY CARDS — 2x2 Grid
   ============================================================ */
.dg-usability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.dg-usability-card {
  background: var(--dg-white);
  padding: 36px;
  border-radius: var(--dg-radius);
  border: 1px solid var(--dg-border);
  box-shadow: var(--dg-shadow-sm);
  position: relative;
  overflow: hidden;
}

.dg-usability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--dg-primary), var(--dg-gold));
}

.dg-usability-card--accent {
  background: linear-gradient(135deg, var(--dg-primary), var(--dg-primary-dark));
  border: none;
  color: white;
}

.dg-usability-card--accent::before {
  display: none;
}

.dg-usability-card--accent h3 {
  color: white;
}

.dg-usability-card--accent p {
  color: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   COMPARISON
   ============================================================ */
.dg-comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.dg-comparison-col {
  background: var(--dg-white);
  border-radius: var(--dg-radius);
  padding: 32px;
  box-shadow: var(--dg-shadow);
  border: 1px solid var(--dg-border);
}

.dg-comparison-col--new {
  border: 2px solid var(--dg-primary);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.dg-comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  padding-top: 100px;
  background: linear-gradient(135deg, var(--dg-primary), var(--dg-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dg-version-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  background: var(--dg-primary-light);
  color: var(--dg-primary);
  font-family: var(--dg-font-heading);
}

/* ============================================================
   IMAGE GALLERY
   ============================================================ */
.dg-image-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.dg-image-group img {
  max-width: 48%;
  border-radius: var(--dg-radius-sm);
  box-shadow: var(--dg-shadow);
  border: 1px solid var(--dg-border);
}

.dg-image-full {
  width: 100%;
  border-radius: var(--dg-radius-sm);
  box-shadow: var(--dg-shadow);
  border: 1px solid var(--dg-border);
  margin-top: 24px;
}

/* ============================================================
   METRICS & NEXT STEPS
   ============================================================ */
.dg-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dg-metric-card {
  background: var(--dg-white);
  border-radius: var(--dg-radius-sm);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--dg-shadow-sm);
  border: 1px solid var(--dg-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dg-metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--dg-primary);
}

.dg-metric-icon {
  font-size: 28px;
}

.dg-metric-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dg-text-dark);
  font-family: var(--dg-font-heading);
}

.dg-next-steps-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dg-next-steps-list li {
  background: var(--dg-white);
  padding: 24px 32px;
  border-radius: var(--dg-radius-sm);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--dg-border);
  box-shadow: var(--dg-shadow-sm);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.dg-next-steps-list li:hover {
  border-color: var(--dg-gold);
  transform: translateX(6px);
}

.dg-step-icon {
  font-size: 24px;
  flex-shrink: 0;
}

/* ============================================================
   COLLAPSIBLE
   ============================================================ */
.dg-collapsible summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dg-primary);
  padding: 12px 0;
  font-size: 16px;
  font-family: var(--dg-font-heading);
}

.dg-collapsible .dg-collapsible-content {
  padding: 16px 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.dg-btn {
  display: inline-block;
  padding: 12px 28px;
  background: white;
  color: var(--dg-primary);
  text-decoration: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--dg-font-heading);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
}

.dg-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dg-btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: white;
}

.dg-btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.dg-btn--primary {
  background: var(--dg-primary);
  color: white;
  border: none;
}

.dg-btn--primary:hover {
  background: var(--dg-primary-dark);
}

.dg-btn--glass {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(37, 99, 235, 0.7));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: white !important;
  font-weight: 700;
}

.dg-btn--glass:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(37, 99, 235, 0.85));
  box-shadow: 0 15px 45px rgba(37, 99, 235, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px) scale(1.02);
}

.dg-link {
  color: var(--dg-primary);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--dg-gold);
  transition: border-color 0.2s;
}

.dg-link:hover {
  border-color: var(--dg-primary);
}

/* ============================================================
   PROTOTYPE PLACEHOLDER
   ============================================================ */
.dg-prototype-placeholder {
  width: 375px;
  height: 667px;
  background: var(--dg-white);
  border: 2px dashed var(--dg-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  box-shadow: var(--dg-shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dg-prototype-placeholder:hover {
  border-color: var(--dg-primary);
  box-shadow: var(--dg-shadow);
}

.dg-prototype-icon {
  font-size: 64px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.dg-prototype-placeholder h3 {
  font-family: var(--dg-font-heading);
  font-size: 20px;
  color: var(--dg-text-dark);
  margin-bottom: 12px;
}

.dg-prototype-placeholder p {
  font-size: 14px;
  color: var(--dg-text-body);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .dg-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 0 20px;
  }

  .dg-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
  }

  .dg-hero-text div {
    justify-content: center !important;
  }

  .dg-hero-tagline {
    max-width: 100%;
  }

  .dg-hero-meta {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    text-align: center;
    max-width: 100%;
  }

  .dg-grid-2,
  .dg-usability-grid {
    grid-template-columns: 1fr;
  }

  .dg-impact-grid,
  .dg-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .dg-comparison-grid {
    grid-template-columns: 1fr;
  }

  .dg-comparison-arrow {
    transform: rotate(90deg);
    padding: 20px 0;
  }

  .dg-watermark-text {
    font-size: 48px;
  }

  .dg-section--diagonal-top {
    margin-top: -40px;
    padding-top: 100px;
  }

  .dg-section--diagonal-bottom {
    padding-bottom: 100px;
  }

  :root {
    --dg-pad: 32px;
  }

  .dg-section-blob-wrap {
    padding: 60px 20px;
    width: 100%;
  }

  .dg-pill-tag {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --dg-pad: 20px;
  }

  .dg-hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .dg-hero-title {
    font-size: 38px !important;
    letter-spacing: -0.02em;
  }

  .dg-hero-inner {
    padding: 0 16px;
  }

  .dg-hero-mockup-frame {
    padding: 8px;
    border-radius: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
  }

  .dg-hero-mockup-frame img {
    border-radius: 14px;
    width: 100%;
  }

  .dg-impact-grid,
  .dg-metrics-grid,
  .dg-grid-3 {
    grid-template-columns: 1fr;
  }

  .dg-watermark-text {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .dg-heading-block h2 {
    font-size: 24px;
  }

  .dg-section {
    padding: 60px 0;
    overflow: hidden;
  }

  .dg-section--diagonal-top {
    margin-top: -24px;
    padding-top: 70px;
  }

  .dg-section--diagonal-bottom {
    padding-bottom: 70px;
  }

  .dg-image-group img {
    max-width: 100%;
    width: 100%;
  }

  .dg-pill-tag {
    font-size: 11px;
    padding: 6px 12px;
  }

  .navbar {
    padding: 16px !important;
    flex-direction: column;
    gap: 16px;
  }

  .navbar .logo {
    font-size: 22px !important;
  }

  iframe,
  video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  iframe {
    aspect-ratio: 9 / 16;
  }

  .dg-hero-meta {
    gap: 16px;
    padding: 20px 0;
  }

  .dg-meta-value {
    font-size: 14px;
  }

  .dg-meta-label {
    font-size: 10px;
  }

  .dg-card,
  .dg-usability-card {
    padding: 20px;
  }

  .dg-sub-heading {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .dg-hero-title {
    font-size: 32px !important;
  }

  /* Hide decorations on very small mobile to prevent any overflow */
  .dg-hero-mockup-wrap .dg-pill-tag {
    display: none;
  }

  .dg-stat-blob {
    width: 200px;
    height: 200px;
    padding: 16px;
  }

  .dg-stat-blob .dg-stat-value {
    font-size: 20px;
  }

  .dg-stat-blob .dg-stat-desc {
    font-size: 14px;
  }

  .dg-heading-block {
    margin-bottom: 24px;
  }

  .dg-watermark-text {
    font-size: 24px;
  }

  .dg-btn {
    padding: 10px 20px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }
}

/* ---------- Tools Section Enhancement ---------- */
.dg-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 40px;
  width: 100%;
}

.dg-tool-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.dg-tool-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.dg-tool-icon-wrap {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--dg-text-dark);
}

.dg-tool-card:hover .dg-tool-icon-wrap {
  background: rgba(37, 99, 235, 0.1);
  color: var(--dg-primary);
  transform: rotate(12deg) scale(1.1);
  box-shadow: 
    0 15px 35px rgba(37, 99, 235, 0.1),
    inset 0 0 0 1px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.3);
}

.dg-tool-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dg-text-dark);
  font-family: var(--dg-font-heading);
  margin: 0;
}

.dg-tool-category {
  font-size: 11px;
  color: var(--dg-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .dg-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}