/* ==========================================================
   NESTMATE SUITE - STYLES & DESIGN SYSTEM
   Modern, Sleek, High-Precision Dark & Light Theme
   ========================================================== */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Dark Theme Default */
    --bg-base: #090d16;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #151f38;
    --bg-surface-card: rgba(21, 31, 56, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.75);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(99, 102, 241, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-accent: #818cf8;

    /* Brand Accents */
    --brand-indigo: #6366f1;
    --brand-violet: #8b5cf6;
    --brand-cyan: #06b6d4;
    --brand-emerald: #10b981;
    --brand-amber: #f59e0b;
    --brand-orange: #f97316;
    --brand-rose: #f43f5e;

    /* Shadows & Glows */
    --glow-indigo: 0 0 35px -5px rgba(99, 102, 241, 0.35);
    --glow-emerald: 0 0 35px -5px rgba(16, 185, 129, 0.35);
    --glow-amber: 0 0 35px -5px rgba(245, 158, 11, 0.35);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-card: rgba(255, 255, 255, 0.88);
    --bg-glass: rgba(255, 255, 255, 0.82);

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.14);
    --border-accent: rgba(99, 102, 241, 0.3);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --text-accent: #4f46e5;

    --glow-indigo: 0 0 30px -5px rgba(99, 102, 241, 0.2);
    --glow-emerald: 0 0 30px -5px rgba(16, 185, 129, 0.2);
    --glow-amber: 0 0 30px -5px rgba(245, 158, 11, 0.2);
    --shadow-card: 0 10px 25px -10px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    position: relative;
}

/* Ambient Background Lights */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.65;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
}

.blob-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
    top: -150px;
    left: 10%;
    animation: floatBlob 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
    top: 40%;
    right: -100px;
    animation: floatBlob 22s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: 20%;
    animation: floatBlob 20s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 60px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Grid Overlay */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 50%, #059669 100%);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.01em;
}

.announcement-badge {
    background: rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    padding: 0.15rem 0.6rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Navigation Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: var(--bg-glass);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-medium);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    padding: 1px;
    transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
    transform: scale(1.05);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    color: var(--brand-indigo);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-item a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Quick Search Button (⌘K) */
.cmd-search-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cmd-search-btn:hover {
    border-color: var(--brand-indigo);
    color: var(--text-main);
}

.kbd-shortcut {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.45rem;
    color: var(--text-dim);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--text-main);
    border-color: var(--border-medium);
}

/* Hero Section */
.hero-section {
    padding: 5.5rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--brand-indigo);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    animation: fadeInDown 0.6s ease;
}

[data-theme="light"] .hero-pill {
    background: rgba(99, 102, 241, 0.08);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #10b981 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-craft {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-qr {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-calc {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid var(--border-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--text-accent);
}

/* Metric / Trust Stats Ticker */
.trust-metrics-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
}

.metric-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon-wrap.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand-emerald);
}

.metric-icon-wrap.indigo {
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-indigo);
}

.metric-icon-wrap.amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--brand-amber);
}

.metric-icon-wrap.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--brand-cyan);
}

.metric-value {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Category Filter Bar */
.filter-section {
    padding: 2.5rem 0 1.5rem;
}

.filter-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: var(--border-medium);
}

.filter-btn.active {
    background: var(--brand-indigo);
    color: #ffffff;
    border-color: var(--brand-indigo);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.filter-count {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
}

/* Product Showcase Cards */
.products-container {
    padding: 2rem 0 5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.product-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-accent);
}

.product-card.quotecraft:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: var(--glow-emerald);
}

.product-card.qrstudio:hover {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--glow-indigo);
}

.product-card.omnicalc:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: var(--glow-amber);
}

.product-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    padding: 2.75rem;
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* Product Content Column */
.product-info {
    display: flex;
    flex-direction: column;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-category-badge {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: var(--brand-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge-free {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.product-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.product-tagline {
    font-size: 1.05rem;
    color: var(--text-accent);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.product-description-text {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

/* Feature Checkpoints Grid */
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .product-features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-point {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-main);
}

.feature-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.72rem;
    margin-top: 2px;
}

.quotecraft .feature-check-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--brand-emerald);
}

.qrstudio .feature-check-icon {
    background: rgba(99, 102, 241, 0.2);
    color: var(--brand-indigo);
}

.omnicalc .feature-check-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--brand-amber);
}

/* Tech Spec Pill Tags */
.spec-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.25rem;
}

.spec-pill {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-family: var(--font-mono);
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-sm);
}

/* Product Action Row */
.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Interactive Sandbox / Playground Side */
.sandbox-column {
    display: flex;
    flex-direction: column;
}

.sandbox-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.sandbox-header {
    background: var(--bg-surface-elevated);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.sandbox-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-main);
}

.sandbox-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-emerald);
    box-shadow: 0 0 8px var(--brand-emerald);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.sandbox-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Form Styles for Sandboxes */
.input-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.input-field, .select-field {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.input-field:focus, .select-field:focus {
    outline: none;
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

/* QuoteCraft Interactive Mini Invoice */
.quote-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.quote-items-table th {
    text-align: left;
    color: var(--text-dim);
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.quote-items-table td {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.quote-item-del-btn {
    background: none;
    border: none;
    color: var(--brand-rose);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem;
}

.btn-add-item {
    background: none;
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-accent);
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-add-item:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--brand-emerald);
    color: var(--brand-emerald);
}

.quote-summary-box {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.summary-line.total {
    border-top: 1px solid var(--border-medium);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-emerald);
}

/* QR Studio Interactive Generator */
.qr-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    position: relative;
}

.qr-canvas-holder {
    background: #ffffff;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#qrLiveCanvas {
    display: block;
    width: 170px;
    height: 170px;
}

.wcag-indicator {
    margin-top: 0.85rem;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-emerald);
    font-weight: 600;
}

.color-presets-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.35rem;
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--transition-fast);
}

.color-swatch:hover, .color-swatch.active {
    transform: scale(1.15);
    border-color: #ffffff;
}

/* OmniCalc Interactive Calculator */
.calc-nav-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.5rem;
}

.calc-tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.calc-tab-btn.active {
    color: var(--brand-amber);
    border-bottom-color: var(--brand-amber);
}

.range-slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
}

.slider-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-main);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-amber);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.calc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.calc-stat-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
}

.stat-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.stat-num {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.stat-num.highlight {
    color: var(--brand-amber);
}

.chart-visual-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

#emiDonutCanvas {
    width: 120px;
    height: 120px;
}

/* Comparison Matrix Section */
.comparison-section {
    padding: 5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.matrix-table-wrap {
    overflow-x: auto;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.94rem;
}

.matrix-table th {
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface);
    font-weight: 700;
    border-bottom: 1px solid var(--border-medium);
}

.matrix-table th.col-nestmate {
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-indigo);
    font-size: 1.05rem;
}

.matrix-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.matrix-table tr:last-child td {
    border-bottom: none;
}

.matrix-table td.col-nestmate {
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-main);
    font-weight: 600;
}

.badge-tag-good {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-emerald);
    font-weight: 700;
}

.badge-tag-bad {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-rose);
}

/* Manifesto Section */
.manifesto-section {
    padding: 5rem 0;
}

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

.manifesto-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.manifesto-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
}

.manifesto-num {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--brand-indigo);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.manifesto-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.manifesto-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Community Roadmap & Suggest Tool */
.roadmap-section {
    padding: 5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

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

.pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pipeline-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pipeline-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pipeline-icon {
    font-size: 1.75rem;
}

.pipeline-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.pipeline-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.pipeline-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    color: var(--brand-indigo);
    border: 1px solid rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

/* Suggest Box Form */
.suggest-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.suggest-box-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.suggest-box-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-card:hover {
    border-color: var(--border-medium);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-icon-arrow {
    font-size: 1rem;
    color: var(--text-dim);
    transition: transform var(--transition-smooth);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.65;
    display: none;
}

.faq-card.open .faq-answer {
    display: block;
}

.faq-card.open .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--brand-indigo);
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-col-title {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-link-list a:hover {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Modal / Command Palette */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.cmd-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 620px;
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    animation: scaleUp 0.25s ease;
}

.cmd-modal-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cmd-modal-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.15rem;
    font-family: inherit;
    outline: none;
}

.cmd-results-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 0.75rem;
    list-style: none;
}

.cmd-result-item {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-fast);
}

.cmd-result-item:hover, .cmd-result-item.highlighted {
    background: var(--bg-surface-elevated);
}

.cmd-item-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.cmd-item-title {
    font-weight: 600;
    font-size: 0.94rem;
}

.cmd-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Toast Notification */
.toast-notice {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: var(--shadow-elevated);
    z-index: 2000;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* Tech Spec Modal */
.spec-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 750px;
    box-shadow: var(--shadow-elevated);
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.25rem;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInDown {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================
   Google AdSense Layout & Slots
   ========================================================== */
.ad-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.ad-banner-slot {
    width: 100%;
    min-height: 90px;
    background: var(--bg-surface-elevated);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    transition: all var(--transition-fast);
}

.ad-placeholder-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    padding: 1rem;
}
