/* DSC Certificate page — page-specific tweaks */
.prod-hero .nf-eyebrow { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Gradient icon badges — DSC uses a navy/blue accent to read as
   "enterprise/cryptographic" and stay visually distinct from the Aadhaar
   page's green/teal badges while sharing the same component shape.
   ========================================================================== */
.dsc-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nf-blue-500), var(--nf-navy-800));
    box-shadow: 0 6px 16px rgba(12, 36, 68, 0.24);
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dsc-icon-badge svg { display: block; color: #fff; }

.dsc-icon-badge:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 26px rgba(12, 36, 68, 0.34);
}

.dsc-eyebrow-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.dsc-eyebrow-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--nf-blue-500);
    opacity: 0.6;
    animation: dscPulseRing 2.4s ease-out infinite;
}

@keyframes dscPulseRing {
    0% { transform: scale(0.75); opacity: 0.55; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* Scroll-reveal pop-in, mirrors the Aadhaar page's reveal pattern */
.dsc-reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dsc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   "What is a DSC Digital Signature?" intro + feature row
   ========================================================================== */
.dsc-about {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.dsc-about .nf-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.dsc-about .nf-title { margin-top: 2px; }

.dsc-about p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--nf-text-muted);
    margin-top: 16px;
}

.dsc-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dsc-feature-card {
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-md);
    padding: 26px 20px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dsc-feature-card:hover {
    box-shadow: var(--nf-shadow-md);
    transform: translateY(-3px);
}

.dsc-feature-card .dsc-icon-badge {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
}

.dsc-feature-card .dsc-icon-badge svg { width: 24px; height: 24px; }

.dsc-feature-card h4 {
    font-size: 15px;
    color: var(--nf-navy-900);
    margin-bottom: 8px;
}

.dsc-feature-card p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--nf-text-muted);
}

.dsc-feature-card.dsc-reveal:nth-child(1) { transition-delay: 0s; }
.dsc-feature-card.dsc-reveal:nth-child(2) { transition-delay: 0.08s; }
.dsc-feature-card.dsc-reveal:nth-child(3) { transition-delay: 0.16s; }
.dsc-feature-card.dsc-reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 991px) {
    .dsc-feature-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dsc-feature-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   "Sign with DSC Certificate in 5 Steps" — vertical step timeline +
   animated digital-certificate verification card
   ========================================================================== */
.dsc-flow {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.dsc-flow__steps .nf-eyebrow { display: inline-flex; align-items: center; gap: 8px; }

.dsc-step-list {
    position: relative;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsc-step-list::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--nf-border) 0 6px, transparent 6px 12px);
}

.dsc-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 14px;
    margin: 0 -14px;
    border-radius: var(--nf-radius-md);
    transition: background 0.3s ease;
}

.dsc-step__icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--nf-border);
    color: var(--nf-text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.dsc-step__icon svg { width: 19px; height: 19px; }

.dsc-step h4 {
    font-size: 15px;
    color: var(--nf-navy-900);
    margin-bottom: 3px;
}

.dsc-step p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--nf-text-muted);
}

.dsc-step.is-current { background: rgba(37, 99, 235, 0.06); }

.dsc-step.is-current .dsc-step__icon {
    background: linear-gradient(135deg, var(--nf-blue-500), var(--nf-navy-800));
    border-color: transparent;
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(12, 36, 68, 0.28);
}

/* ---- Certificate verification visual ---- */
.dsc-flow__art { display: flex; justify-content: center; }

.dsc-cert-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-lg);
    box-shadow: 0 24px 60px rgba(10, 28, 56, 0.14);
    padding: 26px 26px 22px;
    overflow: hidden;
}

.dsc-cert-card__glow {
    position: absolute;
    inset: -40% -30%;
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.14), transparent 55%),
        radial-gradient(circle at 90% 90%, rgba(10, 28, 56, 0.16), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.dsc-cert-card > * { position: relative; z-index: 1; }

.dsc-cert-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--nf-border);
}

.dsc-cert-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--nf-blue-500), var(--nf-navy-800));
    color: #fff;
}

.dsc-cert-chip svg { width: 16px; height: 16px; }

.dsc-cert-card__type {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--nf-text-soft);
}

.dsc-cert-field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--nf-border);
}

.dsc-cert-field:last-child { border-bottom: none; }

.dsc-cert-field span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nf-text-soft);
    flex-shrink: 0;
}

.dsc-cert-field strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--nf-navy-900);
    text-align: right;
}

.dsc-mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; letter-spacing: 0.02em; }

.dsc-cert-hash {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 12px;
    background: var(--nf-bg-muted);
    border-radius: var(--nf-radius-sm);
}

.dsc-cert-hash span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--nf-text-soft);
}

.dsc-cert-hash code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    color: var(--nf-navy-800);
    letter-spacing: 0.03em;
}

.dsc-cert-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: var(--nf-radius-pill);
    background: rgba(37, 99, 235, 0.08);
    transition: background 0.4s ease;
}

.dsc-cert-status[data-state="verified"] { background: rgba(22, 163, 74, 0.1); }

.dsc-cert-status__icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--nf-blue-500);
}

.dsc-cert-status[data-state="verified"] .dsc-cert-status__icon { color: var(--nf-green-600); }

.dsc-cert-status__icon svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dsc-lock-icon { opacity: 1; transform: scale(1); }
.dsc-check-icon { opacity: 0; transform: scale(0.5); }

.dsc-cert-status[data-state="verifying"] .dsc-lock-shackle {
    transform-origin: 8px 11px;
    animation: dscShackleJiggle 1.1s ease-in-out infinite;
}

@keyframes dscShackleJiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-6deg); }
}

.dsc-cert-status[data-state="verified"] .dsc-lock-icon { opacity: 0; transform: scale(0.5); }
.dsc-cert-status[data-state="verified"] .dsc-check-icon { opacity: 1; transform: scale(1); }

.dsc-cert-status__text {
    font-size: 13px;
    font-weight: 600;
    color: var(--nf-navy-900);
}

.dsc-cert-scanline {
    position: absolute;
    left: 6%;
    right: 6%;
    height: 46px;
    top: 0;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.16), transparent);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.dsc-cert-card[data-scan="on"] .dsc-cert-scanline {
    opacity: 1;
    animation: dscScan 2.6s ease-in-out infinite;
}

@keyframes dscScan {
    0% { top: 6%; }
    50% { top: 82%; }
    100% { top: 6%; }
}

@media (max-width: 991px) {
    .dsc-flow { grid-template-columns: 1fr; gap: 40px; }
    .dsc-flow__art { order: -1; }
}

/* ==========================================================================
   "Trusted for Every Regulatory Filing" legal/compliance grid
   ========================================================================== */
.dsc-legal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dsc-legal-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--nf-border);
    border-radius: var(--nf-radius-md);
    padding: 22px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dsc-legal-card:hover {
    box-shadow: var(--nf-shadow-md);
    transform: translateY(-3px);
}

.dsc-legal-card .dsc-icon-badge { width: 46px; height: 46px; }
.dsc-legal-card .dsc-icon-badge svg { width: 20px; height: 20px; }

.dsc-legal-card h4 {
    font-size: 14.5px;
    color: var(--nf-navy-900);
    margin-bottom: 6px;
    line-height: 1.35;
}

.dsc-legal-card p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--nf-text-muted);
}

.dsc-legal-card.dsc-reveal:nth-child(1) { transition-delay: 0s; }
.dsc-legal-card.dsc-reveal:nth-child(2) { transition-delay: 0.07s; }
.dsc-legal-card.dsc-reveal:nth-child(3) { transition-delay: 0.14s; }
.dsc-legal-card.dsc-reveal:nth-child(4) { transition-delay: 0.21s; }
.dsc-legal-card.dsc-reveal:nth-child(5) { transition-delay: 0.28s; }
.dsc-legal-card.dsc-reveal:nth-child(6) { transition-delay: 0.35s; }

@media (max-width: 991px) {
    .dsc-legal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .dsc-legal-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .dsc-eyebrow-icon::after,
    .dsc-cert-status[data-state="verifying"] .dsc-lock-shackle,
    .dsc-cert-card[data-scan="on"] .dsc-cert-scanline {
        animation: none;
    }
}
