/* Tech Toboggan - Main Styles */
/* Synthwave-inspired design with 80s aesthetic */

/* ========== CSS Variables ========== */
:root {
    /* Synthwave Dark Theme (Default) */
    --bg: #0a0a12;
    --bg-alt: #12121f;
    --bg-card: #1a1a2e;
    --text: #e8e6e3;
    --text-muted: #9d9d9d;
    --text-bright: #ffffff;
    
    /* Neon accent colors */
    --accent: #00ffff;
    --accent-hover: #00cccc;
    --accent-secondary: #ff00ff;
    --accent-warm: #ff6b35;
    --accent-gold: #ffcc00;
    
    --border: rgba(0, 255, 255, 0.15);
    --border-bright: rgba(0, 255, 255, 0.3);
    
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 4px 20px rgba(0, 255, 255, 0.15);
    
    /* Gradients */
    --gradient-sunset: linear-gradient(180deg, #0a0818 0%, #35105a 40%, #aa1155 70%, #ff6622 90%, #ffcc00 100%);
    --gradient-header: linear-gradient(135deg, #0a0818 0%, #1a1a2e 50%, #35105a 100%);
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.3);
    --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.3);
}

body.light {
    --bg: #fafafa;
    --bg-alt: #ffffff;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #555;
    --text-bright: #000;
    --accent: #667eea;
    --accent-hover: #5a67d8;
    --accent-secondary: #cc0088;
    --border: #e0e0e0;
    --border-bright: #ccc;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 4px 16px rgba(102, 126, 234, 0.2);
    --glow-cyan: none;
    --glow-magenta: none;
}

/* ========== Base Styles ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ========== Hero Header ========== */
.hero-header {
    position: relative;
    min-height: 280px;
    max-height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

/* Full-width background SVG */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Content overlay */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem 1rem 0.75rem;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 10, 18, 1) 0%, rgba(10, 10, 18, 0.85) 15%, rgba(10, 10, 18, 0.3) 50%, transparent 100%);
}

body.light .hero-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

body.light .hero-bg {
    opacity: 0.4;
    mix-blend-mode: overlay;
}

body.light .hero-content {
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 15%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

#theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

#theme-toggle:hover {
    background: var(--accent);
    color: #0a0a12;
    box-shadow: var(--glow-cyan);
}

body.light #theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: #764ba2;
    color: #764ba2;
}

body.light #theme-toggle:hover {
    background: #764ba2;
    color: #fff;
}

h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 4px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.4));
    text-shadow: none;
}

body.light h1 {
    background: linear-gradient(135deg, #0088cc 0%, #764ba2 50%, #cc0088 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
}

.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

body.light .tagline {
    color: #764ba2;
    text-shadow: none;
}

/* Brand Logo */
.brand-logo {
    margin-bottom: 0.25rem;
}

.logo-mark {
    width: 180px;
    height: 72px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.4));
}

body.light .logo-mark {
    filter: drop-shadow(0 2px 8px rgba(118, 75, 162, 0.3));
}

body.light .logo-mark path[stroke="#00ffff"],
body.light .logo-mark line[stroke="#00ffff"] {
    stroke: #667eea;
}

body.light .logo-mark path[stroke="#ff00ff"],
body.light .logo-mark line[stroke="#ff00ff"] {
    stroke: #cc0088;
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero-header {
        min-height: 240px;
        max-height: 280px;
    }
    
    h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .tagline {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .logo-mark {
        width: 140px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .hero-header {
        min-height: 220px;
        max-height: 260px;
    }
    
    h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .logo-mark {
        width: 120px;
        height: 48px;
    }
}

/* ========== Navigation ========== */
nav {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.2s, text-shadow 0.2s;
}

nav a:hover {
    color: var(--accent);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.light nav {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light nav a:hover {
    text-shadow: none;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 4px;
}

/* ========== Main Content ========== */
main {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

section:last-child {
    border-bottom: none;
    margin-bottom: 2rem;
}

h2 {
    margin-top: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--text-bright);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    margin-top: 0.75rem;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

body.light h2::after {
    background: var(--accent);
    box-shadow: none;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
}

/* ========== Services Grid ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--accent);
}

body.light .service-card:hover {
    border-color: var(--border-bright);
}

.service-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

body.light .service-card h3 {
    text-shadow: none;
}

.service-card p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
}

.service-card li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* ========== Project Cards ========== */
.featured-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.project-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.project-card.featured {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.project-card.featured:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
    transition: all 0.3s ease;
    border-color: var(--accent-secondary);
}

body.light .project-card.featured:hover {
    border-color: var(--accent);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.project-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.project-subtitle {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

.project-card.featured > p:not(.project-subtitle) {
    flex: 1;
    margin: 0 0 1.5rem 0;
}

.project-links {
    margin-top: auto;
}

.project-links .btn-primary {
    display: inline-block;
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

.project-links .btn-primary:hover {
    text-decoration: none;
}

.subsection-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Remove h2::after from smaller headings and inline h3s */
.subsection-title::after,
.about-story h3::after,
.about-philosophy h3::after,
.service-card h3::after,
.project-card h3::after,
.oss-card h3::after,
.model-card h4::after,
.process-step h3::after {
    display: none;
}

.project-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    display: inline-block;
    margin-right: 1rem;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.status-development {
    background: #fff3cd;
    color: #856404;
}

.status-concept {
    background: #e2e3e5;
    color: #383d41;
}

.status-released {
    background: #d4edda;
    color: #155724;
}

body.dark .status-development {
    background: #5a4a00;
    color: #fff3cd;
}

body.dark .status-concept {
    background: #3a3a3a;
    color: #ccc;
}

body.dark .status-released {
    background: #0d5524;
    color: #d4edda;
}

.project-card p {
    margin: 1rem 0;
    color: var(--text-muted);
}

.project-card .details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.project-card .details p {
    margin: 0;
}

/* ========== Open Source Grid ========== */
.oss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.oss-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.oss-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

.oss-card p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
}

.oss-cta {
    font-weight: 600;
}

/* Affiliated Project Card */
.oss-card.affiliated-project {
    position: relative;
    border-color: var(--accent-secondary);
    border-width: 2px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(255, 0, 255, 0.05) 100%);
}

body.light .oss-card.affiliated-project {
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(204, 0, 136, 0.03) 100%);
    border-color: var(--accent-secondary);
}

.affiliated-badge {
    display: inline-block;
    position: absolute;
    top: -10px;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-secondary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(255, 0, 255, 0.3);
}

body.light .affiliated-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.oss-card.affiliated-project h3 {
    margin-top: 0.5rem;
}

.oss-card.affiliated-project h3::after {
    display: none;
}

/* ========== About Section ========== */
.about-content {
    max-width: 700px;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.experience-highlight {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: -4px 0 20px rgba(0, 255, 255, 0.1);
}

body.light .experience-highlight {
    box-shadow: none;
}

.experience-highlight h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.experience-highlight h3::after {
    display: none;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.experience-list strong {
    color: var(--accent);
}

/* ========== Contact Form ========== */
.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-alt);
    color: var(--text);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a12;
    border: none;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

body.light .btn-primary {
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
}

body.light .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
}

.form-status.success {
    background: #d4edda;
    color: #155724;
}

.form-status.error {
    background: #f8d7da;
    color: #721c24;
}

body.dark .form-status.success {
    background: #0d5524;
    color: #d4edda;
}

body.dark .form-status.error {
    background: #5a1a1a;
    color: #f8d7da;
}

.contact-alt {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-alt p {
    margin: 0 0 0.5rem 0;
    color: var(--text-muted);
}

.contact-email a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ========== Buttons ========== */
.toggle {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.toggle:hover {
    background: var(--accent);
    color: #fff;
}

/* ========== Footer ========== */
footer {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, #0a0818 100%);
    border-top: 1px solid var(--border);
    position: relative;
}

body.light footer {
    background: var(--bg-alt);
}

/* Footer grid pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

body.light footer::before {
    display: none;
}

footer > * {
    position: relative;
}

footer p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    margin: 0 0.75rem;
    color: var(--accent);
}

.footer-links a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.light .footer-links a:hover {
    text-shadow: none;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    header {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    #theme-toggle {
        position: static;
        margin-bottom: 1rem;
    }
    
    nav ul {
        gap: 0;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card h3 {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .status-badge {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.5rem 1rem;
    }
    
    section {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    .service-card,
    .project-card,
    .oss-card {
        padding: 1.25rem;
    }
}

/* ============================================================
   PRODUCT PAGES - Shared Styles
   ============================================================ */

.product-page {
    --product-accent: var(--accent);
}

.product-page main {
    max-width: 1100px;
}

.product-page section {
    border-bottom: none;
    margin-bottom: 0;
    padding: 4rem 1rem;
}

.product-page .container {
    max-width: 1000px;
    margin: 0 auto;
}

.product-page .section-dark {
    background: var(--bg-alt);
}

body.dark .product-page .section-dark {
    background: #0a0a0a;
}

/* Product Navigation */
.product-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-nav .nav-brand {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.product-nav .nav-brand:hover {
    opacity: 1;
    text-decoration: none;
}

.product-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.product-nav a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.product-nav a:hover {
    color: #fff;
    text-decoration: none;
}

.product-nav .nav-cta {
    background: var(--product-accent);
    border-radius: 4px;
    color: #fff;
    margin-left: 0.5rem;
}

.product-nav .nav-cta:hover {
    background: var(--accent-hover);
}

.product-nav .nav-theme {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.product-nav .nav-theme:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* Product Header / Hero */
.product-header {
    padding: 1rem 1rem 4rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin: 0 0 1.5rem 0;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-description p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--product-accent);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Problem/Why Grid */
.problem-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.problem-card,
.why-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

body.dark .problem-card,
body.dark .why-card {
    background: var(--bg-alt);
}

.problem-card h3,
.why-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    color: var(--product-accent);
}

.problem-card p,
.why-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

body.dark .feature-card {
    background: var(--bg-alt);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--product-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

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

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.use-case-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

body.dark .use-case-card {
    background: #1a1a1a;
}

.use-case-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    color: var(--product-accent);
}

.use-case-card > p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.use-case-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.use-case-card li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* Roadmap Timeline */
.roadmap-timeline {
    position: relative;
    padding-left: 2rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.roadmap-item {
    position: relative;
    padding-bottom: 2rem;
}

.roadmap-item:last-child {
    padding-bottom: 0;
}

.roadmap-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
}

.roadmap-item.completed .roadmap-marker {
    background: var(--product-accent);
    border-color: var(--product-accent);
}

.roadmap-item.current .roadmap-marker {
    background: var(--product-accent);
    border-color: var(--product-accent);
    box-shadow: 0 0 0 4px rgba(0, 170, 255, 0.2);
}

.roadmap-content {
    padding-left: 1rem;
}

.roadmap-phase {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.roadmap-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
}

.roadmap-content p {
    margin: 0 0 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.roadmap-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-current {
    background: #cce5ff;
    color: #004085;
}

.status-upcoming {
    background: #e2e3e5;
    color: #383d41;
}

body.dark .status-completed {
    background: #0d5524;
    color: #d4edda;
}

body.dark .status-current {
    background: #004085;
    color: #cce5ff;
}

body.dark .status-upcoming {
    background: #3a3a3a;
    color: #ccc;
}

/* Waitlist Section */
.waitlist-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.waitlist-box h2 {
    margin-bottom: 1rem;
}

.waitlist-box > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.waitlist-form {
    max-width: 100%;
}

.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-row input {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-alt);
    color: var(--text);
}

.form-row input:focus {
    outline: none;
    border-color: var(--product-accent);
}

.form-row .btn-primary {
    white-space: nowrap;
}

.waitlist-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer on product pages */
.product-page footer {
    background: #000;
    color: #fff;
    border-top: none;
}

.product-page footer p {
    color: rgba(255, 255, 255, 0.7);
}

.product-page footer a {
    color: rgba(255, 255, 255, 0.9);
}

.product-page footer a:hover {
    color: #fff;
}

.footer-disclaimer {
    font-size: 0.8rem;
    margin-top: 1rem;
    opacity: 0.6;
}

/* ============================================================
   SCCP-Specific Styles
   ============================================================ */

.sccp-page {
    --product-accent: #ff6b35;
}

.sccp-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

.classification-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.classification-level {
    color: #ff6b35;
    font-weight: 700;
}

.document-id {
    color: rgba(255, 255, 255, 0.6);
}

/* SRA Diagram */
.sra-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.sra-core {
    text-align: center;
}

.sra-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.sra-core p {
    margin: 1rem 0 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.sra-connections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    width: 100%;
}

.sra-connection {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.connection-label {
    display: block;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.sra-connection p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================================
   l2prompt-Specific Styles
   ============================================================ */

.l2prompt-page {
    --product-accent: #7c3aed;
}

.l2prompt-header {
    background: linear-gradient(135deg, #4c1d95 0%, #2e1065 100%);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #7c3aed;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
}

.step-card > p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-example {
    background: var(--bg);
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

body.dark .step-example {
    background: #0a0a0a;
}

.example-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7c3aed;
    margin-bottom: 0.5rem;
}

.step-example p {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.level-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

body.dark .level-card {
    background: var(--bg-alt);
}

.level-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.level-1 .level-badge { background: #e0e7ff; color: #3730a3; }
.level-2 .level-badge { background: #ddd6fe; color: #5b21b6; }
.level-3 .level-badge { background: #c4b5fd; color: #6d28d9; }
.level-4 .level-badge { background: #a78bfa; color: #fff; }
.level-5 .level-badge { background: #7c3aed; color: #fff; }

body.dark .level-1 .level-badge { background: #3730a3; color: #e0e7ff; }
body.dark .level-2 .level-badge { background: #5b21b6; color: #ddd6fe; }
body.dark .level-3 .level-badge { background: #6d28d9; color: #c4b5fd; }

.level-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.level-card > p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.level-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.level-card li {
    font-size: 0.85rem;
    padding: 0.3rem 0;
    color: var(--text);
}

.level-card li::before {
    content: '>';
    color: #7c3aed;
    margin-right: 0.5rem;
    font-weight: 700;
}

/* Game Modes */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mode-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.mode-card.featured {
    border-color: #7c3aed;
    box-shadow: 0 0 0 1px #7c3aed;
}

.mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #7c3aed;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mode-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

.mode-card > p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mode-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.mode-card li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* Challenge Types */
.challenge-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.challenge-type {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
}

body.dark .challenge-type {
    background: var(--bg-alt);
}

.challenge-type h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #7c3aed;
}

.challenge-type p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   Product Page Responsive
   ============================================================ */

@media (max-width: 768px) {
    .product-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .product-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .classification-banner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .sra-connections {
        grid-template-columns: 1fr;
    }
    
    .levels-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .product-page section {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid,
    .features-grid,
    .modes-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HOW WE WORK SECTION
   ============================================================ */

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

.process-step {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #0a0a12;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

body.light .process-number {
    color: #fff;
    box-shadow: none;
}

.process-step h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
}

.process-step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.engagement-models {
    margin-top: 2rem;
}

.model-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.model-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.model-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: var(--accent);
}

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

/* ============================================================
   EXPANDED ABOUT SECTION
   ============================================================ */

.about-intro {
    margin-bottom: 2rem;
}

.about-intro .lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.about-story {
    margin-bottom: 2rem;
}

.about-story h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin: 0 0 1rem 0;
}

.about-story p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-philosophy {
    margin: 2rem 0;
}

.about-philosophy h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin: 0 0 1rem 0;
}

.about-philosophy p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.about-philosophy p:last-child {
    margin-bottom: 0;
}

.about-philosophy strong {
    color: var(--text);
}

.about-closing {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.about-closing p {
    margin: 0;
    line-height: 1.7;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-page {
    --product-accent: var(--accent);
}

.blog-header {
    background: linear-gradient(135deg, #0a1628 0%, #1a1a2e 100%);
    padding: 1rem 1rem 3rem;
}

.blog-header nav {
    background: transparent;
    border-bottom: none;
}

.blog-hero {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.blog-hero .hero-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

.blog-main {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    margin-bottom: 0.5rem;
}

.topic-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.topic-list a:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

.topic-list a.active {
    background: rgba(0, 255, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 255, 0.25);
}

body.light .topic-list a.active {
    background: rgba(102, 126, 234, 0.12);
    color: var(--accent);
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.sidebar-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscribe-form input {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-alt);
    color: var(--text);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-small {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.post-card.featured-post {
    border-left: 4px solid var(--accent);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.post-topic {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--accent);
    text-decoration: none;
}

.post-excerpt {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

body.dark .tag {
    background: #1a1a1a;
}

/* Blog footer */
.blog-page footer {
    background: #000;
    color: #fff;
    border-top: none;
}

.blog-page footer p {
    color: rgba(255, 255, 255, 0.7);
}

.blog-page footer a {
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Blog & Product Nav: Light Mode Overrides ---- */

body.light .blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.light .blog-hero h1 {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

body.light .product-nav .nav-brand {
    color: var(--text-bright);
}

body.light .product-nav a {
    color: var(--text);
}

body.light .product-nav a:hover {
    color: var(--accent);
}

body.light .product-nav .nav-theme {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border);
    color: var(--text-muted);
}

body.light .product-nav .nav-theme:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(102, 126, 234, 0.08);
}

/* On blog-header specifically, keep nav text white since the header bg stays colorful */
body.light .blog-header nav {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

body.light .blog-header .product-nav .nav-brand,
body.light .blog-header .product-nav a {
    color: rgba(255, 255, 255, 0.9);
}

body.light .blog-header .product-nav a:hover {
    color: #fff;
}

body.light .blog-header .product-nav .nav-theme {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

body.light .blog-header .product-nav .nav-theme:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

body.light .blog-hero .hero-tagline {
    color: rgba(255, 255, 255, 0.9);
}

body.light .blog-page footer {
    background: var(--bg-alt);
    color: var(--text);
    border-top: 1px solid var(--border);
}

body.light .blog-page footer p {
    color: var(--text-muted);
}

body.light .blog-page footer a {
    color: var(--accent);
}

body.light .tag {
    background: #f0f0f5;
    border-color: #ddd;
    color: var(--text-muted);
}

/* ---- Blog Article Subpages ---- */

.blog-article {
    max-width: 760px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0;
    text-transform: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--text-bright);
    background-clip: unset;
    filter: none;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-body h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.4rem;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h2::after {
    display: none;
}

.article-body p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.back-to-blog {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.back-to-blog:hover {
    text-decoration: underline;
}

/* Further Reading Section */
.further-reading {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.further-reading h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.further-reading h3::after {
    display: none;
}

.further-reading ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.further-reading li {
    margin-bottom: 0.75rem;
}

.further-reading a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.further-reading a:hover {
    text-decoration: underline;
}

/* Article Footer CTA */
.article-cta {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.article-cta p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

.article-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.article-cta a:hover {
    text-decoration: underline;
}

/* Blog Responsive */
@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .post-card h2 {
        font-size: 1.15rem;
    }
}

/* ============================================================
   MAIN PAGE RESPONSIVE ADDITIONS
   ============================================================ */

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .model-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro .lead {
        font-size: 1.1rem;
    }
}

/* ============================================================
   FORM ENHANCEMENTS
   ============================================================ */

/* Optional field indicator */
.form-group .optional {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Field hint text */
.form-group .field-hint {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Blog subscribe form small button */
.btn-small {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
}

/* Subscribe form in blog sidebar */
.sidebar-section .subscribe-form input[type="email"] {
    width: 100%;
    margin-bottom: 0.75rem;
}

.sidebar-section .subscribe-form button {
    width: 100%;
}
