/* =========================================================
   Developers hub — brand-aligned with product / about pages
   Palette: #EC2E5E · #8B1538 · #1A1A1A
   ========================================================= */

.developers-page .dev-hero.product-hero {
    min-height: clamp(380px, 50vh, 540px);
}

.developers-page .dev-hero .product-hero-content {
    grid-template-columns: 1fr;
    max-width: 48rem;
}

.developers-page .dev-hero .dd-hero-text {
    color: #fff;
}

.developers-page .dev-hero .highlight {
    background: linear-gradient(135deg, #FF8AA8 0%, #EC2E5E 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Sections */
.dev-section,
.dev-apis,
.dev-quickstart,
.dev-demos,
.dev-security,
.dev-resources {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.dev-apis {
    background: #fff;
}

.dev-quickstart {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.dev-demos {
    background: #fff;
}

.dev-security {
    background: #f8fafc;
}

.dev-resources {
    background: #fff;
}

.developers-page .section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
}

.developers-page .section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1A1A1A;
    margin: 0.15rem 0 0.65rem;
}

.developers-page .section-subtitle {
    font-size: clamp(0.98rem, 2vw, 1.1rem);
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* API choice cards */
.dev-api-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: min(1120px, 100%);
    margin: 0 auto 1.5rem;
}

.dev-api-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: clamp(1.35rem, 3vw, 1.85rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dev-api-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EC2E5E 0%, #8B1538 100%);
}

.dev-api-card.soap::before {
    background: linear-gradient(90deg, #1A1A1A 0%, #8B1538 100%);
}

.dev-api-card:hover {
    transform: translateY(-3px);
    border-color: rgba(236, 46, 94, 0.28);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
}

.dev-api-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.dev-api-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dev-api-card.soap .dev-api-icon {
    background: linear-gradient(145deg, #2C2C2C 0%, #1A1A1A 100%);
}

.dev-api-card .tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dev-api-card .tag-recommended {
    background: rgba(236, 46, 94, 0.12);
    color: #8B1538;
}

.dev-api-card .tag-legacy {
    background: rgba(26, 26, 26, 0.08);
    color: #374151;
}

.dev-api-card h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

.dev-api-card > p {
    margin: 0;
    color: #555;
    line-height: 1.65;
    font-size: 0.95rem;
    flex: 1;
}

.dev-api-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.dev-api-points li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
}

.dev-api-points li i {
    color: #EC2E5E;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.dev-api-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.dev-api-actions .btn {
    border-radius: 999px;
}

/* MCP highlight strip */
.dev-mcp-strip {
    max-width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}

.dev-mcp-strip .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.dev-mcp-strip h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #1A1A1A;
}

.dev-mcp-strip p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.dev-mcp-strip .btn {
    border-radius: 999px;
    white-space: nowrap;
}

/* Quick start steps */
.dev-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    max-width: min(1120px, 100%);
    margin: 0 auto;
    counter-reset: step;
}

.dev-step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem 1.1rem;
    text-align: center;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dev-step:hover {
    border-color: rgba(236, 46, 94, 0.28);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.dev-step-num {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.dev-step h3 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    color: #1A1A1A;
}

.dev-step p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.45;
}

.dev-step a {
    color: #EC2E5E;
    font-weight: 600;
    text-decoration: none;
}

.dev-step a:hover {
    text-decoration: underline;
}

/* Demo cards */
.dev-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: min(1120px, 100%);
    margin: 0 auto;
}

.dev-demo-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dev-demo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(236, 46, 94, 0.3);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
}

.dev-demo-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dev-demo-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #1A1A1A;
}

.dev-demo-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.dev-demo-card .link-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #EC2E5E;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Security panel */
.dev-security-panel {
    max-width: min(900px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.05);
}

.dev-security-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dev-security-panel h3 .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dev-security-panel > p {
    margin: 0 0 1rem;
    color: #555;
    line-height: 1.6;
}

.dev-security-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.dev-security-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.45;
}

.dev-security-list li i {
    color: #EC2E5E;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.dev-security-list strong {
    color: #1A1A1A;
}

/* Resource cards */
.dev-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: min(1120px, 100%);
    margin: 0 auto;
}

.dev-resource-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem 1.15rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 100%;
}

.dev-resource-card:hover {
    transform: translateY(-3px);
    border-color: rgba(236, 46, 94, 0.3);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.dev-resource-card i {
    font-size: 1.25rem;
    color: #EC2E5E;
}

.dev-resource-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #1A1A1A;
}

.dev-resource-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.45;
}

/* Final CTA */
.developers-page .dd-cta {
    background: linear-gradient(135deg, #1A1A1A 0%, #3a1020 50%, #8B1538 100%) !important;
}

.developers-page .dd-cta .cta-content {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.developers-page .dd-cta h2 {
    color: #fff;
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.developers-page .dd-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.developers-page .dd-cta .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.developers-page .dd-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}

.developers-page .dd-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Responsive */
@media (max-width: 1000px) {
    .dev-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dev-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dev-api-grid,
    .dev-demo-grid {
        grid-template-columns: 1fr;
    }

    .dev-mcp-strip {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .dev-mcp-strip .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 640px) {
    .dev-steps {
        grid-template-columns: 1fr 1fr;
    }

    .dev-resource-grid {
        grid-template-columns: 1fr;
    }

    .dev-api-actions {
        flex-direction: column;
    }

    .dev-api-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .dev-steps {
        grid-template-columns: 1fr;
    }
}
