/* ===== T2DPLM FORMAT (OCF) PAGE ===== */
.fmt-page { background: var(--color-bg-dark); color: var(--color-text-primary); }

.fmt-wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--spacing-md); }

.fmt-hero {
    position: relative;
    overflow: hidden;
    padding: 9rem 0 4rem;
    text-align: center;
    background:
        radial-gradient(circle at 20% 40%, rgba(124, 58, 237, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(34, 211, 238, 0.12) 0%, transparent 50%),
        var(--gradient-hero);
}

.fmt-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin: 0.5rem 0 1.25rem;
}

.fmt-hero p { max-width: 760px; margin: 0 auto; font-size: 1.15rem; color: var(--color-text-secondary); line-height: 1.7; }

.fmt-section { padding: 4rem 0; }
.fmt-section + .fmt-section { border-top: 1px solid rgba(255, 255, 255, 0.07); }

.fmt-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin: 0 0 1rem;
}

.fmt-lead { color: var(--color-text-secondary); font-size: 1.1rem; line-height: 1.75; max-width: 820px; }

.fmt-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.fmt-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fmt-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.fmt-card {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.fmt-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.fmt-card p { margin: 0 0 1rem; color: var(--color-text-secondary); line-height: 1.6; flex: 1; }

.fmt-step-num {
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient-primary); color: #fff; font-weight: 700; margin-bottom: 0.9rem;
}

.fmt-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1rem; }

.fmt-dl {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.8rem 1.4rem; border-radius: 12px; font-weight: 600; font-size: 1rem;
    color: #fff; text-decoration: none;
    border: 1.5px solid rgba(124, 58, 237, 0.7); background: rgba(124, 58, 237, 0.18);
    transition: all 0.25s ease;
}
.fmt-dl:hover { background: rgba(124, 58, 237, 0.38); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(124, 58, 237, 0.35); }

.fmt-code {
    background: #0A0E27; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px;
    padding: 1.25rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; margin-top: 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d6d9e5;
}

.fmt-legal { background: var(--color-bg-surface); border-left: 4px solid var(--color-secondary); border-radius: 12px; padding: 1.5rem 1.75rem; margin-top: 1.5rem; }
.fmt-legal ul { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--color-text-secondary); line-height: 1.75; }
.fmt-legal li { margin-bottom: 0.5rem; }
.fmt-legal strong { color: var(--color-text-primary); }
.fmt-legal a, .fmt-lead a, .fmt-card a:not(.fmt-dl) { color: var(--color-accent); }

@media (max-width: 600px) { .fmt-hero { padding-top: 7rem; } }

.fmt-lead { margin: 0 0 1.1rem; }

.fmt-hero .fmt-wrap { position: relative; z-index: 2; }
