/* ============================================
   Storm Tecnologia - Plataforma Tecnológica
   Estilos específicos desta página.
   Reaproveita a base de subacesso-b2b.css.
   ============================================ */

.plataforma-page .hero-container {
    align-items: center;
}

/* Stack visual da plataforma (topo do hero, substitui o GIF) */
.platform-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 28px;
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.platform-stack-layer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-stack-layer-top {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.platform-stack-layer-api {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(99, 102, 241, 0.25) 100%);
    border-color: rgba(148, 163, 255, 0.35);
}

.platform-stack-layer-core {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.platform-stack-layer .stack-label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.platform-stack-layer strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.platform-stack-layer .stack-sub {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

/* Robustez */
.robustness-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.robustness-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

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

@media (max-width: 600px) {
    .robustness-grid {
        grid-template-columns: 1fr;
    }
}

.robustness-card {
    padding: 2rem 1.75rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.robustness-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.robustness-metric {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.robustness-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.robustness-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.robustness-note {
    margin-top: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text);
}

.robustness-note strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

/* API */
.api-section {
    padding: 5rem 2rem;
    background: #f8fafc;
}

.api-section > .section-header {
    max-width: 1200px;
    margin: 0 auto;
}

.api-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

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

@media (max-width: 600px) {
    .api-grid {
        grid-template-columns: 1fr;
    }
}

.api-card {
    padding: 1.75rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.api-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.api-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.api-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0;
}

.api-endpoints {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.api-endpoints li {
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.api-endpoints code {
    font-family: 'JetBrains Mono', 'Menlo', Consolas, monospace;
    font-size: 0.82rem;
    color: var(--color-text);
    background: transparent;
    padding: 0;
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.api-footer {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.api-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 640px;
}

.api-footer-copy strong {
    font-size: 1.05rem;
    color: var(--color-text);
}

.api-footer-copy span {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Histórias / Jornadas: número ao lado do título (em vez de acima) */
.plataforma-page .story-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plataforma-page .story-copy .story-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.plataforma-page .story-copy .story-title-row .story-tag {
    margin-bottom: 0;
    flex-shrink: 0;
}

.plataforma-page .story-copy .story-title-row h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.plataforma-page .story-copy > p {
    margin: 0;
}

@media (max-width: 720px) {
    .plataforma-page .story-copy .story-title-row {
        gap: 0.75rem;
    }

    .plataforma-page .story-copy .story-title-row .story-tag {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }
}

/* Histórias / Jornadas: destaque ao invés de demo-placeholder */
.story-highlight {
    position: relative;
    padding: 1.75rem;
    border-radius: 20px;
    background: linear-gradient(155deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 220px;
    justify-content: center;
}

.story-highlight .highlight-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 255, 0.85);
    font-weight: 600;
}

.story-highlight strong {
    font-size: 1.2rem;
    font-weight: 600;
}

.story-highlight p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

/* Personas */
.personas-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.persona-card {
    padding: 1.75rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.persona-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.persona-card p {
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0;
}

/* Chamada da home para a nova página */
.home-platform-callout {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.home-platform-callout .callout-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(148, 163, 255, 0.18);
    color: #e0e7ff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.home-platform-callout h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-platform-callout p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.home-platform-callout .callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-platform-callout .btn-primary {
    background: #fff;
    color: #0f172a;
}

.home-platform-callout .btn-primary:hover {
    background: #e0e7ff;
}

.home-platform-callout .btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.home-platform-callout .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.home-platform-callout .callout-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-platform-callout .callout-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.home-platform-callout .callout-list li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #60a5fa;
    margin-top: 0.4rem;
    transform: rotate(45deg);
}

/* Responsividade */
@media (max-width: 900px) {
    .home-platform-callout {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .api-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 720px) {
    .robustness-section,
    .personas-section,
    .api-section {
        padding: 3.5rem 1.25rem;
    }

    .platform-stack {
        padding: 1rem;
    }

    .platform-stack-layer {
        padding: 1rem 1.1rem;
    }

    .robustness-metric {
        font-size: 2.1rem;
    }
}
