/* ================================================================
   DYRES Landing Page — Supplemental Styles
   ================================================================
   Rules:
   1. Every selector uses the "dyres-" prefix.
   2. We REUSE the master CSS variables and components;
      we do NOT redefine :root, .container, section, .btn-primary,
      .btn-secondary, .section-header, .cta, .contact-btn, etc.
   3. We do NOT touch *, html, body, a, img.
   4. The master site already provides .product-logo-dyres — we use it.
   ================================================================ */

/* ---------- HERO ---------- */
.dyres-hero {
    position: relative;
    padding: 6.5rem 0 5.5rem;
    overflow: hidden;
    color: #fff;
}

.dyres-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .dyres-hero__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.dyres-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 90, 156, 0.88) 0%,
        rgba(0, 66, 114, 0.92) 50%,
        rgba(11, 18, 32, 0.95) 100%);
    z-index: 1;
}

.dyres-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.dyres-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.8rem;
}

    .dyres-hero__pill svg {
        width: 14px;
        height: 14px;
        color: var(--accent-orange);
    }

.dyres-hero__title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

    .dyres-hero__title span {
        color: var(--accent-orange);
    }

.dyres-hero__sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    opacity: 0.82;
    max-width: 640px;
    margin: 0 auto 2.2rem;
    line-height: 1.7;
}

.dyres-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.dyres-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-orange);
    color: #fff;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

    .dyres-hero__btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(242, 140, 40, 0.4);
    }

.dyres-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

    .dyres-hero__btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }

/* Hero stats */
.dyres-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.dyres-stat {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.dyres-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    display: block;
}

.dyres-stat__label {
    font-size: 0.7rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
    display: block;
}

/* ---------- FEATURE CARDS ---------- */
/* We map to the master's .service-card grid pattern */
.dyres-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.dyres-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .dyres-feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--brand-blue), var(--accent-orange));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .dyres-feature-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-soft);
    }

        .dyres-feature-card:hover::before {
            opacity: 1;
        }

.dyres-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 90, 156, 0.2);
}

    .dyres-feature-card__icon svg {
        width: 22px;
        height: 22px;
        color: #fff;
    }

.dyres-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--brand-blue);
}

.dyres-feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- ARCHITECTURE ---------- */
.dyres-arch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.dyres-arch-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.dyres-arch-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.dyres-arch-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 90, 156, 0.2);
}

    .dyres-arch-item__icon svg {
        width: 20px;
        height: 20px;
        color: #fff;
    }

.dyres-arch-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dyres-arch-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Architecture stack diagram */
.dyres-arch-stack {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.dyres-stack-layer {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

    .dyres-stack-layer--protocol {
        background: linear-gradient(135deg, rgba(0, 90, 156, 0.1), rgba(0, 90, 156, 0.05));
        color: var(--brand-blue);
        border: 1px solid rgba(0, 90, 156, 0.2);
    }

    .dyres-stack-layer--modules {
        background: linear-gradient(135deg, rgba(0, 90, 156, 0.08), rgba(242, 140, 40, 0.05));
        border: 1px solid rgba(0, 90, 156, 0.15);
    }

    .dyres-stack-layer--storage {
        background: linear-gradient(135deg, rgba(242, 140, 40, 0.1), rgba(242, 140, 40, 0.05));
        color: var(--accent-orange);
        border: 1px solid rgba(242, 140, 40, 0.2);
    }

    .dyres-stack-layer--logs {
        background: linear-gradient(135deg, rgba(100, 116, 139, 0.1), rgba(100, 116, 139, 0.05));
        color: var(--text-muted);
        border: 1px solid rgba(100, 116, 139, 0.2);
    }

/* ---------- QUICK START STEPS ---------- */
.dyres-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
}

.dyres-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.2rem;
}

    .dyres-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 44px;
        bottom: 0;
        width: 2px;
        background: var(--border-color);
    }

.dyres-step__num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 90, 156, 0.25);
    z-index: 1;
}

.dyres-step__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.dyres-step__body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.dyres-code-block {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: auto;
}

/* Security note */
.dyres-security-note {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.08), rgba(242, 140, 40, 0.03));
    border: 1px solid rgba(242, 140, 40, 0.2);
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

    .dyres-security-note svg {
        width: 20px;
        height: 20px;
        color: var(--accent-orange);
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .dyres-security-note h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--accent-orange);
        margin-bottom: 0.2rem;
    }

    .dyres-security-note p {
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.6;
    }

/* ---------- DOCUMENTATION CARDS ---------- */
.dyres-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.dyres-doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

    .dyres-doc-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-soft);
        border-color: rgba(0, 90, 156, 0.3);
    }

.dyres-doc-card__icon {
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

    .dyres-doc-card__icon svg {
        width: 32px;
        height: 32px;
    }

.dyres-doc-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--brand-blue);
}

.dyres-doc-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.2rem;
}

.dyres-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
    transition: color 0.2s ease;
}

    .dyres-doc-link:hover {
        color: var(--accent-orange);
    }

    .dyres-doc-link svg {
        width: 14px;
        height: 14px;
    }

/* ---------- API ENDPOINTS ---------- */
.dyres-api-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.dyres-endpoint {
    display: grid;
    grid-template-columns: 72px 1fr auto 80px;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

    .dyres-endpoint:hover {
        border-color: rgba(0, 90, 156, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

.dyres-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

    .dyres-method--get {
        background: rgba(0, 90, 156, 0.1);
        color: var(--brand-blue);
    }

    .dyres-method--post {
        background: rgba(34, 197, 94, 0.1);
        color: #16a34a;
    }

    .dyres-method--put {
        background: rgba(242, 140, 40, 0.1);
        color: var(--accent-orange);
    }

    .dyres-method--delete {
        background: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }

.dyres-path {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.82rem;
    color: var(--text-main);
}

.dyres-ep-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dyres-ep-auth {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    opacity: 0.7;
}

/* ---------- ANIMATIONS ---------- */
@keyframes dyres-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.dyres-animate {
    animation: dyres-fade-up 0.7s ease-out forwards;
    opacity: 0;
}

.dyres-delay-1 {
    animation-delay: 0.1s;
}

.dyres-delay-2 {
    animation-delay: 0.2s;
}

.dyres-delay-3 {
    animation-delay: 0.3s;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .dyres-arch-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .dyres-features-grid,
    .dyres-docs-grid {
        grid-template-columns: 1fr;
    }

    .dyres-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dyres-endpoint {
        grid-template-columns: 60px 1fr;
        gap: 0.4rem;
    }

    .dyres-ep-desc,
    .dyres-ep-auth {
        display: none;
    }
}

@media (max-width: 768px) {

    .dyres-hero {
        padding: 4rem 0 3rem;
    }

    .dyres-step {
        gap: 1rem;
    }

    .dyres-hero__stats {
        gap: 0.6rem;
    }

    .dyres-stat__value {
        font-size: 1.2rem;
    }
}
