/* =========================================
   FEATURES PAGE STYLES
   ========================================= */

/* --- Layout Utilities --- */
.section-py { padding: 6rem 0; }
.bg-darker { background-color: rgba(2, 6, 23, 0.5); border-top: 1px solid var(--slate-800); border-bottom: 1px solid var(--slate-800); }
.grid { display: grid; gap: 3rem; }
.lg-grid-cols-2 { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
    .lg-grid-cols-2 { grid-template-columns: 1fr 1fr; }
    .lg-order-1 { order: 1; }
    .lg-order-2 { order: 2; }
}

/* --- Hero Section --- */
.feature-hero {
    padding: 8rem 0 4rem 0;
    background: radial-gradient(circle at center 0%, #1e293b 0%, #020617 70%);
}

.feature-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--slate-400);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .feature-hero h1 { font-size: 3.5rem; }
}

/* --- Typography & Text Content --- */
.text-muted { color: var(--slate-500); font-size: 0.6em; font-weight: 400; vertical-align: middle; }
.lead { font-size: 1.15rem; color: var(--slate-300); line-height: 1.7; margin-bottom: 1.5rem; }
.highlight-text { color: var(--emerald-400); font-weight: 500; margin-top: 1rem; }

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-icon { font-size: 1rem; line-height: 0; }

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--slate-400);
    font-size: 1rem;
}

.feature-list .icon {
    width: 20px;
    height: 20px;
    color: var(--emerald-500);
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- Sub-Features (Mini Blocks) --- */
.mini-feature { margin-top: 2rem; }
.mini-feature h3 { font-size: 1.1rem; color: var(--emerald-400); margin-bottom: 0.5rem; }
.mini-feature p { color: var(--slate-400); font-size: 0.95rem; }
.mini-feature code {
    background: rgba(255,255,255,0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: var(--white);
    font-size: 0.85em;
}

/* --- Visual: Comparison Card (Decaf Mode) --- */
.comparison-wrapper {
    position: relative;
    padding: 1rem;
}

.comparison-card {
    display: flex;
    flex-direction: column;
    background: var(--slate-950);
    border: 1px solid var(--slate-800);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .comparison-card { flex-direction: row; }
}

.comp-col { flex: 1; display: flex; flex-direction: column; }
.source .col-header { background: rgba(239, 68, 68, 0.1); color: var(--red-400); border-bottom: 1px solid rgba(239, 68, 68, 0.2); }
.target .col-header { background: rgba(16, 185, 129, 0.1); color: var(--emerald-400); border-bottom: 1px solid rgba(16, 185, 129, 0.2); }

.col-header {
    padding: 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.data-block {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.target .data-block {
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid var(--slate-800);
    height: 100%;
}

.data-row { display: flex; flex-direction: column; gap: 0.25rem; }
.label { color: var(--slate-500); font-size: 0.75rem; }
.value { font-weight: 500; }
.text-white { color: var(--white); }
.text-red { color: var(--red-400); }
.text-emerald { color: var(--emerald-400); }

.comp-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--slate-800);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--slate-950); /* Fake transparency mask */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* --- Visual: Terminal Window --- */
.terminal-window {
    background: var(--slate-950);
    border: 1px solid var(--slate-800);
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
    background: var(--slate-900);
    border-bottom: 1px solid var(--slate-800);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.circle { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }
.title { margin-left: auto; color: var(--slate-500); font-size: 0.75rem; }

.terminal-body { padding: 1.5rem; font-size: 0.9rem; color: var(--slate-300); }
.line { line-height: 1.6; }
.comment { color: var(--slate-500); }
.prompt { color: var(--emerald-400); margin-right: 0.5rem; }
.success { color: var(--emerald-400); }
.muted { color: var(--slate-600); font-size: 0.8rem; margin-top: 1rem; }

/* --- Visual: Code Editor --- */
.code-editor {
    background: var(--slate-950);
    border: 1px solid var(--slate-800);
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.editor-bar {
    background: var(--slate-900);
    border-bottom: 1px solid var(--slate-800);
    padding: 0.5rem 1rem;
    color: var(--slate-400);
    font-size: 0.8rem;
}

.editor-content { padding: 1.5rem; font-size: 0.9rem; line-height: 1.6; white-space: pre; overflow-x: auto; }
.c-gray { color: var(--slate-500); }
.c-key { color: var(--red-400); }
.c-str { color: var(--emerald-400); }

/* --- CTA Section --- */
.cta-text { font-size: 1.25rem; color: var(--slate-400); max-width: 36rem; margin: 1rem auto 2.5rem; }
.btn-primary {
    display: inline-flex;
    background: var(--emerald-500);
    color: var(--slate-950);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--emerald-400); }