/* =============================================================================
   DCODE TECHNOLOGY — Page styles (/dcode)
============================================================================= */

/* ─── HERO ─── */
.dc-hero {
    background: linear-gradient(135deg, #1a2e10 0%, #14161A 50%, #0e1012 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.dc-hero-glow {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(123,185,62,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Tagline row: logo | divider | label (like TimberID / SoP pattern) */
.dc-hero-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.dc-hero-brand-logo {
    height: 26px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.dc-hero-brand-divider {
    width: 3px;
    height: 20px;
    background: var(--primary-green);
    flex-shrink: 0;
}

.dc-hero-brand-label {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-green);
}

.dc-hero-title {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.dc-hero-title span { color: var(--primary-green); }

.dc-hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 1.75rem;
}

.dc-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    border: 1px solid var(--primary-green);
    color: #ffffff;
    border-radius: var(--btn-radius);
    padding: 0.85rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.dc-hero-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.dc-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--btn-radius);
    padding: 0.85rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.dc-hero-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #ffffff; }

.dc-hero-img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(123, 185, 62, 0.2);
}

.dc-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── SPEC ACCURACY TAGS ─── */
.dc-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.dc-spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--light-green);
    border: 1px solid rgba(123, 185, 62, 0.35);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-green-dark);
}

.dc-spec-tag i { font-size: 0.7rem; }

/* Dark background variant */
.dc-spec-tag--dark {
    background: rgba(123, 185, 62, 0.12);
    border-color: rgba(123, 185, 62, 0.25);
    color: var(--primary-green);
}

/* ─── BENEFIT LIST ─── */

/* ─── SECTION LABEL (pill badge) ─── */
.dc-section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-green-dark);
    background: var(--light-green);
    border: 1px solid rgba(123, 185, 62, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1rem;
}

.dc-section-label.is-dark {
    background: rgba(123, 185, 62, 0.15);
    color: var(--primary-green);
    border-color: rgba(123, 185, 62, 0.2);
}

/* ─── PATENT TAG ─── */
.dc-patent-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #dc2626;
}

.dc-patent-tag i { font-size: 0.6rem; }

/* Dark background variant */
.dc-patent-tag--dark {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
    color: #f87171;
}

/* ─── INLINE LINKS ─── */
.dc-link {
    color: var(--primary-green-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.dc-link:hover { color: var(--primary-green); }

/* =============================================================================
   SECTION 2 — Process Steps (How It Works)
============================================================================= */

.dc-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: stretch;
}

.dc-process-step {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dc-process-step:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
    transform: translateY(-6px);
}

/* ─── IMAGE AREA ─── */
.dc-step-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
    background: var(--neutral-100);
}

/* Ghost step number watermark */
.dc-step-image-wrap::before {
    content: attr(data-step);
    position: absolute;
    top: 0.25rem;
    right: 0.75rem;
    font-size: 5.5rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.14);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

/* Dark gradient overlay */
.dc-step-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 26, 0.08) 30%, rgba(20, 22, 26, 0.62) 100%);
    z-index: 1;
    pointer-events: none;
}

.dc-step-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dc-process-step:hover .dc-step-image-wrap img {
    transform: scale(1.05);
}

/* Step number + name overlaid at bottom of image */
.dc-step-overlay {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dc-step-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-green);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 14px rgba(123, 185, 62, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.dc-step-label {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ─── CONTENT AREA ─── */
.dc-step-content {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 2px solid transparent;
    transition: border-color 0.3s ease;
    border-radius: 0 0 16px 16px;
}

.dc-process-step:hover .dc-step-content {
    border-top-color: var(--primary-green);
}

.dc-step-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.dc-step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.dc-step-tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: var(--light-green);
    border: 1px solid rgba(123, 185, 62, 0.3);
    border-radius: 20px;
    font-size: 0.63rem;
    font-weight: 500;
    color: var(--primary-green-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dc-step-tag-link i { display: none; }

.dc-step-tag-link:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
}

/* =============================================================================
   SECTION: ECOSYSTEM — Product Link Cards
============================================================================= */

/* =============================================================================
   SECTION 4 — Provenance Proof (dark background)
============================================================================= */

.dc-provenance {
    background: var(--navbar-bg);
    padding: 4rem 0;
}

.dc-proof-intro {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.dc-proof-rows {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dc-proof-row {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
}

.dc-proof-row:hover {
    background: rgba(123, 185, 62, 0.08);
    border-color: rgba(123, 185, 62, 0.25);
}

.dc-proof-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(123, 185, 62, 0.15);
    border: 1px solid rgba(123, 185, 62, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

.dc-proof-row-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.dc-proof-row-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.dc-proof-columns {
    align-items: stretch;
}

.dc-proof-columns > .column:last-child {
    display: flex;
    flex-direction: column;
}

.dc-proof-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    flex: 1;
    min-height: 300px;
}

.dc-proof-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================================================
   SECTION 5 — First Mile Geolocalisation
============================================================================= */

.dc-fm-columns {
    align-items: center;
}

.dc-fm-img {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dc-fm-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Chain visualization */
.dc-fm-chain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.dc-fm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.dc-fm-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--light-green);
    border: 1px solid rgba(123, 185, 62, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-green);
}

.dc-fm-step-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.dc-fm-arrow {
    color: var(--primary-green);
    font-size: 0.7rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.dc-highlight-box {
    background: var(--lighter-green);
    border-radius: var(--radius-small);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.dc-highlight-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.dc-highlight-box strong { color: var(--primary-green-dark); }

/* =============================================================================
   SECTION 6 — Phone Screen Gallery (Field to Platform)
============================================================================= */

.dc-phone-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.dc-phone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dc-phone-screen {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid #1a1a1a;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    background: #000;
}

.dc-phone-screen img,
.dc-phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================================================
   SECTION 7 — CTA
============================================================================= */

.dc-cta {
    background: linear-gradient(135deg, #14161A 0%, #1a2e10 100%);
    padding: 5rem 0;
    text-align: center;
}

.dc-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.dc-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(123, 185, 62, 0.9);
    display: block;
    margin-bottom: 1rem;
}

.dc-cta-title {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.dc-cta-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 auto 2.5rem;
}

.dc-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-green);
    border: 1px solid var(--primary-green);
    color: #ffffff;
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.dc-cta-btn-primary:hover { background: #96DC4B; border-color: #96DC4B; color: #ffffff; }

.dc-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--btn-radius);
    padding: 0.9rem 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    height: auto;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}
.dc-cta-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #ffffff; }

/* =============================================================================
   RESPONSIVE
============================================================================= */

@media screen and (max-width: 1024px) {
    .dc-process-grid { gap: 1.5rem; }
    .dc-phone-row { gap: 1rem; max-width: 700px; }

}

@media screen and (max-width: 768px) {
    .dc-hero { padding: 60px 0 50px; }
    .dc-hero-subtitle { max-width: 100%; text-align: center; }
    /* Hero mobile centering */
    .dc-hero .column:first-child { text-align: center; }
    .dc-hero-brand-row { justify-content: center; }
    .dc-spec-tags { justify-content: center; }
    .dc-hero .buttons { justify-content: center; }

    .dc-process-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .dc-step-image-wrap { aspect-ratio: 16 / 9; }
    .dc-step-content { padding: 1.25rem 1.5rem 1.5rem; }

    .dc-provenance { padding: 3rem 0; }
    .dc-proof-img { margin-top: 2rem; }

    /* Provenance section: center heading + label row, keep proof rows left-aligned */
    .dc-proof-columns .column.is-7 .title { text-align: center; }
    .dc-proof-columns .column.is-7 .dc-proof-intro { text-align: center; }
    .dc-proof-columns .column.is-7 > div:first-child { justify-content: center; }
    .dc-proof-row { text-align: left; }
    .dc-fm-img { margin-bottom: 2rem; min-height: 220px; }
    .dc-fm-chain { gap: 0.4rem; padding: 1rem; }
    .dc-fm-columns .column.is-7 p { text-align: center; }

    .dc-phone-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .dc-phone-screen { border-radius: 16px; border-width: 2px; }

    .dc-cta { padding: 3.5rem 0; }
    .dc-highlight-box { padding: 1rem 1.25rem; }
}

@media screen and (max-width: 480px) {
    .dc-phone-row { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .dc-spec-tags { gap: 0.4rem; }
    .dc-spec-tag { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
    .dc-fm-chain {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        justify-items: center;
    }
    .dc-fm-arrow { display: none; }
    .dc-fm-step-label { white-space: normal; text-align: center; }
}
