/* ==========================================================================
   Cytrusst DPDP Page Stylesheet (Extends style-new.css)
   Pillars: CCM, UCM, DSR, DSPM, DAM, Grievance Redressal
   ========================================================================== */

/* ==========================================================================
   1. Main Banner (Hero Section) - Ultra Responsive
   ========================================================================== */
.hero-dpdp-page {
  position: relative;
  background: linear-gradient(145deg, #070e1e 0%, #0d1e3d 50%, #08152e 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 70px);
  overflow: hidden;
}

.hero-dpdp-page::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -80px;
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  background: radial-gradient(circle, rgba(15, 98, 254, 0.22) 0%, rgba(15, 98, 254, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-dpdp-page::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: clamp(260px, 40vw, 500px);
  height: clamp(260px, 40vw, 500px);
  background: radial-gradient(circle, rgba(60, 203, 127, 0.18) 0%, rgba(60, 203, 127, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-dpdp-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-dpdp-text {
  max-width: 100%;
}

.hero-dpdp-text .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 98, 254, 0.16);
  border: 1px solid rgba(145, 183, 255, 0.35);
  color: #91b7ff;
  font-size: clamp(11px, 1.1vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: clamp(14px, 2vw, 20px);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-dpdp-text .hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 clamp(14px, 2vw, 22px);
  word-break: break-word;
}

.hero-dpdp-text .hero-title .accent {
  background: linear-gradient(90deg, #5ac8ff 0%, #3ccb7f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-dpdp-text .hero-desc {
  font-size: clamp(14px, 1.25vw, 17.5px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 clamp(20px, 3vw, 32px);
  max-width: 620px;
}

.hero-dpdp-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-dpdp-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
  max-width: 600px;
}

.hero-dpdp-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11.5px, 1.1vw, 13px);
  font-weight: 600;
  color: #dde7f6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.hero-dpdp-badge-item svg {
  width: 15px;
  height: 15px;
  color: #3ccb7f;
  flex-shrink: 0;
}

/* Hero Live Widget / Preview Card */
.hero-dpdp-widget {
  background: rgba(13, 27, 54, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(145, 183, 255, 0.22);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(16px, 2.5vw, 26px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  width: 100%;
  box-sizing: border-box;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: clamp(12px, 1.5vw, 16px);
  margin-bottom: clamp(14px, 2vw, 20px);
  gap: 12px;
  flex-wrap: wrap;
}

.widget-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15, 98, 254, 0.2);
  color: #5ac8ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.widget-icon svg {
  width: 20px;
  height: 20px;
}

.widget-title-group h4 {
  margin: 0;
  font-size: clamp(13.5px, 1.2vw, 15px);
  font-weight: 700;
  color: #fff;
}

.widget-title-group p {
  margin: 0;
  font-size: 11px;
  color: #6781a6;
}

.widget-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(60, 203, 127, 0.15);
  border: 1px solid rgba(60, 203, 127, 0.35);
  color: #3ccb7f;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.widget-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ccb7f;
  box-shadow: 0 0 8px #3ccb7f;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.widget-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 12px);
  margin-bottom: clamp(14px, 2vw, 20px);
}

.widget-metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: clamp(8px, 1.2vw, 12px);
  text-align: center;
}

.widget-metric-num {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: #5ac8ff;
  line-height: 1.1;
  margin-bottom: 3px;
}

.widget-metric-label {
  font-size: clamp(9.5px, 0.9vw, 11px);
  color: #91b7ff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: clamp(11px, 1vw, 12px);
  gap: 8px;
}

.widget-log-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dde7f6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-log-left span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-log-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pill-ccm { background: rgba(15, 98, 254, 0.25); color: #5ac8ff; }
.pill-ucm { background: rgba(168, 85, 247, 0.25); color: #c084fc; }
.pill-dsr { background: rgba(60, 203, 127, 0.25); color: #3ccb7f; }
.pill-dspm { background: rgba(245, 158, 11, 0.25); color: #fbbf24; }
.pill-dam { background: rgba(239, 68, 68, 0.25); color: #f87171; }
.pill-grievance { background: rgba(14, 165, 233, 0.25); color: #38bdf8; }

.widget-log-time {
  color: #6781a6;
  font-size: 10.5px;
  font-family: monospace;
  flex-shrink: 0;
}

/* ==========================================================================
   2. Cookie Consent (CCM) & Deep Dive Tabs - Ultra Responsive
   ========================================================================== */
.deepdive-section {
  padding: clamp(50px, 7vw, 90px) 0 clamp(60px, 8vw, 100px);
  background: #f8fbff;
}

.deepdive-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 0 16px;
}

.deepdive-head .eyebrow {
  color: var(--primary-500);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.deepdive-head h2 {
  color: var(--neutral-900);
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.deepdive-head p {
  color: var(--neutral-700);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.6;
  margin: 0;
}

.deepdive-nav-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  padding: 0 10px;
}

.deepdive-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--white);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
  max-width: fit-content;
  box-sizing: border-box;
  width: 100%;
  overflow: auto;
  min-width: 0;
  scrollbar-width: none;
}

.deepdive-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--neutral-800);
  font-size: clamp(12.5px, 1.1vw, 13.5px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.deepdive-tab-btn svg {
  width: 16px;
  height: 16px;
  color: var(--neutral-700);
  transition: color 0.25s;
  flex-shrink: 0;
}

.deepdive-tab-btn:hover {
  color: var(--primary-500);
  background: var(--primary-50);
}

.deepdive-tab-btn:hover svg {
  color: var(--primary-500);
}

.deepdive-tab-btn.active {
  background: var(--primary-500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.3);
}

.deepdive-tab-btn.active svg {
  color: #fff;
}

.deepdive-content-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: clamp(16px, 2.5vw, 24px);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 44px);
  display: none;
  animation: fadeIn 0.35s ease-out;
  box-sizing: border-box;
}

.deepdive-content-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pillar-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.pillar-header-group {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.pillar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pillar-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.25;
  margin: 0 0 10px;
}

.pillar-desc {
  font-size: clamp(13.5px, 1.2vw, 15px);
  line-height: 1.65;
  color: var(--neutral-700);
  margin: 0 0 clamp(16px, 2.5vw, 24px);
}

.pillar-feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 14px);
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.pillar-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pillar-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-feature-icon svg {
  width: 13px;
  height: 13px;
}

.pillar-feature-text h5 {
  margin: 0 0 3px;
  font-size: clamp(13.5px, 1.1vw, 14.5px);
  font-weight: 700;
  color: var(--neutral-900);
}

.pillar-feature-text p {
  margin: 0;
  font-size: clamp(12.5px, 1vw, 13px);
  line-height: 1.5;
  color: var(--neutral-700);
}

.pillar-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f4ff;
  border: 1px solid #d0e0ff;
  color: #06296b;
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

/* Pillar Visual Mockups */
.pillar-visual {
  background: linear-gradient(135deg, #0a1835 0%, #112652 100%);
  border-radius: clamp(14px, 2vw, 18px);
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 16px 36px rgba(10, 24, 53, 0.25);
  width: 100%;
  box-sizing: border-box;
}

.pv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
  flex-wrap: wrap;
}

.pv-title {
  font-size: clamp(12.5px, 1.2vw, 13.5px);
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-title svg {
  width: 16px;
  height: 16px;
  color: #5ac8ff;
  flex-shrink: 0;
}

.pv-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pv-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.pv-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.pv-card-title {
  font-size: clamp(11.5px, 1vw, 12px);
  font-weight: 600;
  color: #dde7f6;
}

.pv-badge-success, .pv-badge-warning, .pv-badge-info {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.pv-badge-success { background: rgba(60, 203, 127, 0.2); color: #3ccb7f; }
.pv-badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.pv-badge-info { background: rgba(14, 165, 233, 0.2); color: #38bdf8; }

.pv-progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.pv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f62fe, #3ccb7f);
  border-radius: 999px;
}

/* ==========================================================================
   3. Media Queries & Responsive Breakpoints
   ========================================================================== */

/* Medium Laptops & Tablets (< 1024px) */
@media (max-width: 1024px) {
  .hero-dpdp-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pillar-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Tablets & Mobile Landscape (< 768px) */
@media (max-width: 768px) {
  .deepdive-nav-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 4px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .deepdive-nav-wrap::-webkit-scrollbar {
    display: none;
  }
  .deepdive-tabs {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    padding: 5px;
  }
  .deepdive-tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12.5px;
  }
  .deepdive-content-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .widget-metrics-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Mobile (< 560px) */
@media (max-width: 560px) {
  .hero-dpdp-page .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-dpdp-page .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    box-sizing: border-box;
  }
  .hero-dpdp-badges {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-dpdp-badge-item {
    font-size: 11px;
    padding: 6px 8px;
    white-space: normal;
  }
  .widget-metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .widget-metric-num {
    font-size: 15px;
  }
  .widget-metric-label {
    font-size: 9px;
  }
  .widget-log-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .widget-log-left {
    width: 100%;
  }
  .widget-log-time {
    align-self: flex-end;
  }
  .pv-card-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==========================================================================
   4. FAQ Accordion Styling Enhancement
   ========================================================================== */
.faq-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-list[hidden] {
  display: none !important;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item:hover {
  border-color: var(--primary-200);
}
.faq-item.is-open {
  border-color: var(--primary-500);
  box-shadow: 0 4px 16px rgba(15, 98, 254, 0.08);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-family: inherit;
}
.faq-question span {
  font-size: clamp(14px, 1.2vw, 15.5px);
  font-weight: 600;
  color: var(--neutral-900);
  line-height: 1.45;
}
.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--primary-500);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-answer {
  max-height: 500px;
}
.faq-answer p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: clamp(13px, 1.1vw, 14.5px);
  line-height: 1.7;
  color: var(--neutral-800);
}
