/* ==========================================================================
   sudam.site Main Design System & Theme Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Dark Theme Variables (Default) */
    --bg-main: #090d16;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --bg-pill: rgba(255, 255, 255, 0.08);
    --bg-nav: rgba(9, 13, 22, 0.82);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.35);
    --border-glow: rgba(99, 102, 241, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

    --canvas-dot-color: rgba(99, 102, 241, 0.7);
    --canvas-line-color: rgba(99, 102, 241, 0.15);
    --canvas-dot-cyan: rgba(6, 182, 212, 0.8);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-heading: 'Outfit', 'Pretendard', sans-serif;
    --font-body: 'Pretendard', system-ui, -apple-system, sans-serif;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --bg-pill: rgba(0, 0, 0, 0.05);
    --bg-nav: rgba(248, 250, 252, 0.85);
    
    --border-color: rgba(203, 213, 225, 0.8);
    --border-highlight: rgba(79, 70, 229, 0.4);
    --border-glow: rgba(79, 70, 229, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.3);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 30px -5px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

    --canvas-dot-color: rgba(79, 70, 229, 0.6);
    --canvas-line-color: rgba(79, 70, 229, 0.12);
    --canvas-dot-cyan: rgba(8, 145, 178, 0.7);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- Top Navigation Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-cyan);
}

.badge-vibe {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    margin-left: 0.25rem;
}

.badge-vibe svg {
    width: 12px;
    height: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}

.nav-item svg {
    width: 16px;
    height: 16px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: var(--bg-pill);
}

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

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-emerald);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

.status-dot.online {
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25 ease;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-2px);
}

.sun-icon { display: none; width: 20px; height: 20px; color: var(--accent-amber); }
.moon-icon { display: block; width: 20px; height: 20px; color: var(--primary); }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* --- Hero Section with Canvas --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 4rem;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-main) 90%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--border-glow);
    backdrop-filter: blur(8px);
}

.hero-tag svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.gradient-text {
    display: inline;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 40%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: #ffffff;
    box-shadow: 0 8px 25px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- Main Layout Sections --- */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon svg {
    width: 24px;
    height: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-pill);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.refresh-indicator svg {
    width: 14px;
    height: 14px;
}

.spin-icon {
    animation: spin 6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- 4 Server Dashboard Metric Cards --- */
.dashboard-section {
    margin-bottom: 4.5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.metric-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.cpu-theme { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.memory-theme { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.disk-theme { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.uptime-theme { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    background: var(--bg-pill);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.card-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.card-value-group {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.card-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.card-value.uptime-text {
    font-size: 1.6rem;
}

.card-unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-pill);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cpu-bar { background: linear-gradient(90deg, #6366f1, #818cf8); }
.memory-bar { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.disk-bar { background: linear-gradient(90deg, #a855f7, #c084fc); }

.uptime-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.uptime-badge svg {
    width: 14px;
    height: 14px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    color: var(--text-muted);
}

.foot-value {
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Feature Portfolio Section --- */
.features-section {
    margin-bottom: 4.5rem;
}
/* --- Minimal & Bold Feature Action Buttons --- */
.feature-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .feature-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feature-buttons-grid {
        grid-template-columns: 1fr;
    }
}

.feature-btn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding: 2.2rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.feature-btn-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fb-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fb-icon svg {
    width: 34px;
    height: 34px;
}

.fb-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.fb-arrow {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    margin-top: -0.2rem;
}

/* Color Themes for Feature Buttons */
.btn-rex-theme { color: #f59e0b; }
.btn-rex-theme .fb-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.btn-dash-theme { color: #6366f1; }
.btn-dash-theme .fb-icon { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

.btn-db-theme { color: #10b981; }
.btn-db-theme .fb-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.btn-file-theme { color: #06b6d4; }
.btn-file-theme .fb-icon { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }

.btn-vibe-theme { color: #a855f7; }
.btn-vibe-theme .fb-icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* Hover Effects */
.feature-btn-card:hover {
    transform: translateY(-8px);
    border-color: currentColor;
    box-shadow: 0 16px 35px -5px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.2);
}

.feature-btn-card:hover::after {
    opacity: 1;
}

.feature-btn-card:hover .fb-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor;
}

.feature-btn-card:hover .fb-arrow {
    color: currentColor;
    transform: translate(3px, -3px);
}


/* --- Embedded File Viewer Section --- */
.file-viewer-section {
    margin-bottom: 4.5rem;
}

.fv-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.fv-auth-box {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 440px;
    margin: 0 auto;
}

.fv-auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.fv-auth-input-group {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.fv-auth-input-group input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
}

.fv-error-msg {
    font-size: 0.85rem;
    color: #f43f5e;
}

.fv-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.fv-path-crumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    background: var(--bg-pill);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.fv-search {
    position: relative;
    width: 240px;
}

.fv-search svg {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.fv-search input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.2rem;
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}

.fv-table-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.fv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fv-table th {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.fv-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.fv-row:hover {
    background: var(--bg-pill);
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
}

/* --- Tech Specs Section --- */
.tech-spec-section {
    margin-bottom: 3rem;
}

.tech-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.tech-badge svg {
    width: 14px;
    height: 14px;
}

.tech-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.tech-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-pill);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.spec-item svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

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

.spec-val {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links a svg {
    width: 16px;
    height: 16px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Modal Backdrop & Box --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 540px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-close svg {
    width: 22px;
    height: 22px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 22px;
    height: 22px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-list {
    list-style: none;
    margin-top: 1rem;
}

.modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.modal-list li svg {
    width: 18px;
    height: 18px;
    color: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* Floating Survey CTA Button */
.floating-poll-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-poll-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

.floating-poll-btn svg {
    width: 18px;
    height: 18px;
}

