/* styles.css – Dark blue Cmdr-style docs */

/* Hero title with logo */
.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-logo {
    width: 2.1rem;  /* Same as h1 font-size */
    height: 2.1rem;
    object-fit: contain;
}


/* ===== Theme ===== */
:root {
    --bg-body: #020617;          /* dark navy */
    --bg-sidebar: #020617;
    --bg-content: #020617;
    --bg-code: #020617;

    --border-subtle: #111827;
    --border-strong: #020617;

    --text-main: #e5e7eb;
    --text-muted: #cbd5e1;
    --text-soft: #9ca3af;
    --text-link: #38bdf8;

    --accent: #38bdf8;           /* cyan-blue for active */
    --accent-soft: rgba(56, 189, 248, 0.12);

    --sidebar-width: 260px;

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;

    --transition-fast: 140ms;
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Fix: Remove underline from links */
a {
    color: var(--text-link);
    text-decoration: none;
}
a:hover {
    text-decoration: none; /* Changed from underline to none */
}

/* Fix: Ensure framework card links don't underline */
.framework-card {
    text-decoration: none;
}

.framework-card:hover {
    text-decoration: none;
}

/* Fix: Community links hover without underline */
.community-link:hover {
    background: rgba(15, 23, 42, 1);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* Fix: All feature badges, buttons stay clean */
.feature-badge:hover,
.btn-primary:hover,
.btn-secondary:hover,
.card-link:hover {
    text-decoration: none;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: #020617;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: #60d0fc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--accent);
}

/* ===== Stats Section ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed from auto-fit to fixed 4 columns */
    gap: 1rem;
    margin-bottom: 3rem;
}


.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.2rem 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1.2rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* ===== Sections ===== */
.frameworks-section,
.features-section,
.quickstart-section,
.community-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-soft);
    font-size: 1rem;
}

/* ===== Framework Cards Extensions ===== */
.framework-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.5rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 0.8rem;
}

.card-description {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 0.3rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.feature-badge i {
    font-size: 0.7rem;
}

.card-link-wrapper {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.framework-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.framework-card:hover .card-link i {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.coming-soon:hover {
    transform: none;
    border-color: #111827;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 0.3rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: auto;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.feature-item:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: #374151;
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== Quick Start Steps ===== */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #020617;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.code-inline {
    background: var(--bg-code);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
}

.code-inline code {
    font-size: 0.85rem;
    color: var(--accent);
}

/* ===== Community Section ===== */
.community-card {
    display: flex;
    gap: 1.5rem;
    background: radial-gradient(circle at top left, #0f172a 0, #020617 70%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.community-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 2rem;
}

.community-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.community-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.community-link:hover {
    background: rgba(15, 23, 42, 1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
    
    .step-item {
        flex-direction: column;
    }
    
    .community-card {
        flex-direction: column;
        text-align: center;
    }
    
    .community-icon {
        margin: 0 auto;
    }
    
    .community-links {
        justify-content: center;
    }
}



/* ===== Overview Info Boxes ===== 
   Used for API documentation overview sections
   Shows: execution context, script type, returns, and effects */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.overview-item {
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid #1f2937;
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-fast);
}

.overview-item:hover {
  background-color: rgba(15, 23, 42, 0.7);
  border-color: #374151;
}

.overview-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.overview-value {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.overview-value code {
  background-color: rgba(30, 41, 59, 0.6);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  color: #38bdf8;
  font-size: 0.85em;
}




/* ===== Parameter Tables ===== */
.param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  background-color: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #111827;
}

.param-table thead {
  background-color: rgba(15, 23, 42, 0.9);
}

.param-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid #1f2937;
}

.param-table td {
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid #111827;
}

.param-table tbody tr:last-child td {
  border-bottom: none;
}

.param-table tbody tr:hover {
  background-color: rgba(15, 23, 42, 0.6);
}

.param-table code {
  background-color: rgba(30, 41, 59, 0.6);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  color: #38bdf8;
  font-size: 0.85em;
}


/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== Layout ===== */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
    border-right: 1px solid var(--border-strong);
    padding: 1.3rem 1.1rem 2rem;
    overflow-y: auto;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Content */
.content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: radial-gradient(circle at top left, #020617 0, #020617 60%);
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2.4rem 3rem;
}

/* ===== Sidebar logo/title (replaces search bar) ===== */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.4rem 0.5rem 0.4rem;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #1f2937;
}

.sidebar-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.6rem;
}

.sidebar-logo-icon:has(img) {
    background: none;
}

.sidebar-logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 0.6rem;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #0b1120;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-logo-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-main);
}

.sidebar-logo-subtitle {
    font-size: 0.6rem;
    color: var(--text-soft);
}

/* ===== Sidebar nav (no extra titles) ===== */
.sidebar-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Top-level parent rows */
.nav-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* Parent link text */
.nav-link-parent {
    display: block;
    padding: 0.3rem 0.2rem;
    font-size: 0.9rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

/* Active parent (Overview highlight) */
.nav-link-parent.active {
    color: var(--accent);
    font-weight: 600;
}

/* Hover for non-active parents */
.nav-link-parent:not(.active):hover {
    background-color: rgba(15, 23, 42, 0.85);
}

/* chevron */
.nav-chevron {
    font-size: 0.7rem;
    color: var(--text-soft);
    margin-left: 0.4rem;
    transition: transform var(--transition-fast) ease;
}
.nav-chevron.open {
    transform: rotate(90deg);
}

/* nested lists */
.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.05rem;
}

/* children containers */
.nav-children {
    list-style: none;
    margin-top: 0.15rem;
    margin-left: 0.6rem;
    padding-left: 0.6rem;
    border-left: 1px solid #1f2937;
}

.nav-children.hidden {
    display: none;
}

/* child links */
.nav-child-link {
    display: block;
    padding: 0.18rem 0.1rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.nav-child-link:hover {
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
}

/* active child */
.nav-child-link.active {
    color: var(--accent);
    background-color: var(--accent-soft);
    font-weight: 500;
}

/* ===== Content typography ===== */
h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f9fafb;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    color: #e5e7eb;
}

p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

a {
    color: var(--text-link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;             
    margin-top: 1.3rem;
}

.card {
    background: radial-gradient(circle at top left, #0f172a 0, #020617 70%);
    border-radius: 0.85rem;
    border: 1px solid #111827;
    padding: 0.8rem 0.9rem 0.95rem;  
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card h3 {
    margin-bottom: 0.35rem; 
    font-size: 0.95rem; 
    color: #f9fafb;
}

.card p {
    font-size: 0.85rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;             
    margin-top: 0.45rem;     
    font-size: 0.82rem;   
    color: var(--text-link);
}

.card-link i {
    font-size: 0.8rem;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* ===== Code blocks ===== */
.code-block-wrapper {
    margin: 1.4rem 0;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-code);
    color: #e5e7eb;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 0.8rem;
    border: 1px solid #111827;
    border-bottom: none;
}

.copy-btn {
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
    background-color: #020617;
    color: #e5e7eb;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #111827;
}

pre {
    margin: 0;
    padding: 1rem;
    background-color: var(--bg-code) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 0.86rem;
    overflow-x: auto;
    border: 1px solid #111827;
}

/* ===== CCTFF Overview Page Styles ===== */

/* Hero Section */
.cctff-hero {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.cctff-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cctff-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.cctff-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: #f9fafb;
}

.cctff-hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cctff-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cctff-hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stats Grid */
.cctff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.cctff-stat-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}

.cctff-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.cctff-stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Structure Grid */
.cctff-structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cctff-structure-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.cctff-structure-title {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cctff-structure-item code {
  display: block;
  background: rgba(30, 41, 59, 0.6);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0.3rem 0;
}

/* Feature Sections */
.cctff-feature-section {
  margin-bottom: 4rem;
  padding: 2rem;
  background: radial-gradient(circle at top left, #0f172a 0%, #020617 70%);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
}

.cctff-feature-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.cctff-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 1.5rem;
}

.cctff-feature-icon.gold {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}

.cctff-feature-icon.yellow {
  background: rgba(255, 255, 0, 0.15);
  color: #ffff00;
}

.cctff-feature-section h2 {
  font-size: 1.8rem;
  margin: 0;
  color: #f9fafb;
}

.cctff-feature-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

/* Preview Box */
.cctff-preview {
  margin-bottom: 1.5rem;
}

.cctff-preview-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.cctff-preview-box {
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.cctff-preview-line {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.cctff-preview-line:last-child {
  margin-bottom: 0;
}

/* Code Blocks */
.cctff-code-section {
  margin-bottom: 1.5rem;
}

.cctff-code-section:last-child {
  margin-bottom: 0;
}

.cctff-code-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.cctff-code-section pre {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  margin: 0;
}

/* Benefits Grid */
.cctff-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.cctff-benefit-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: all var(--transition-fast);
}

.cctff-benefit-item:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: #374151;
  transform: translateY(-2px);
}

.cctff-benefit-emoji {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.cctff-benefit-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.cctff-benefit-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Final CTA Section */
.cctff-final-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.85rem;
  margin-top: 4rem;
}

.cctff-final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f9fafb;
}

.cctff-final-cta p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cctff-final-cta strong {
  color: var(--accent);
}

/* Button Hover Effects */
.btn-primary:hover {
  background: #60d0fc !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .cctff-hero h1 {
    font-size: 2rem;
  }
  
  .cctff-stats {
    grid-template-columns: 1fr;
  }
  
  .cctff-feature-section h2 {
    font-size: 1.5rem;
  }
}



/* inline code */
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86em;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .content-wrapper {
        margin-left: 0;
    }
    .content-inner {
        padding: 1.8rem 1.4rem 2.5rem;
    }
}

