@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Theme Tokens & Reset --- */
:root {
    --hue-purple: 270;
    --hue-blue: 195;
    
    --bg-base: #06090e;
    --bg-surface: #0c1017;
    --bg-surface-glass: rgba(12, 16, 23, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    
    --accent-purple: hsl(var(--hue-purple), 85%, 60%);
    --accent-purple-glow: hsl(var(--hue-purple), 85%, 60%, 0.15);
    --accent-blue: hsl(var(--hue-blue), 95%, 50%);
    --accent-blue-glow: hsl(var(--hue-blue), 95%, 50%, 0.15);
    
    --accent-gradient: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    --accent-gradient-hover: linear-gradient(135deg, hsl(var(--hue-purple), 95%, 65%) 0%, hsl(var(--hue-blue), 100%, 55%) 100%);
    
    --text-primary: #f3f5f9;
    --text-secondary: #90a0b5;
    --text-muted: #5e6d82;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
    
    --blur-val: 100px;
    --opacity-val: 0.65;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

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

/* --- Background Glow Blobs --- */
.blob-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(var(--blur-val));
    opacity: 0.14;
    pointer-events: none;
    z-index: -1;
    transition: var(--transition-smooth);
}

.blob-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 75%);
    animation: floatGlow1 25s infinite ease-in-out alternate;
}

.blob-2 {
    top: 25%;
    right: -250px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 75%);
    animation: floatGlow2 32s infinite ease-in-out alternate;
}

.blob-3 {
    bottom: -150px;
    left: 15%;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 75%);
    animation: floatGlow1 28s infinite ease-in-out alternate-reverse;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(80px, 50px) scale(1.15) rotate(180deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1.1) rotate(0deg); }
    50% { transform: translate(-60px, 80px) scale(0.9) rotate(-180deg); }
    100% { transform: translate(0, 0) scale(1.1) rotate(-360deg); }
}

/* --- Scroll Animation Classes --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* --- Typography & Headings --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #1c2330;
    border-radius: 5px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: #2a3547;
}

/* --- Buttons Layout --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: none;
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover::before {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { left: 150%; }
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-gradient);
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: var(--bg-base);
    border-radius: 4px;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

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

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-quick);
}

/* --- Hero Section --- */
.hero-section {
    padding: 10rem 2rem 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: hsl(var(--hue-purple), 100%, 75%);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus {
    font-size: 1.4rem;
    color: var(--accent-purple);
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Downloader URL Input Component --- */
.downloader-input-box {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 24px;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.downloader-input-box.shake-error {
    animation: shake-error 0.5s ease-in-out;
    border-color: #ef4444 !important;
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.25),
                0 0 15px rgba(239, 68, 68, 0.1) !important;
}

@keyframes shake-error {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.downloader-input-box:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.25),
                0 0 15px rgba(138, 43, 226, 0.1);
}

.downloader-input-box .input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    padding: 6px 6px 6px 16px;
    border-radius: 14px;
}

.input-icon {
    font-size: 1.5rem;
    color: #ff0000; /* YouTube Red color */
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.4));
    transition: var(--transition-smooth);
}

.downloader-input-box:focus-within .input-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.8));
}

.downloader-input-box input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    width: 100%;
}

.downloader-input-box input::placeholder {
    color: var(--text-muted);
}

.input-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-left: 6px;
}

/* --- Console Downloader Result Panel --- */
.hero-mockup-container {
    perspective: 1000px;
}

.dashboard-mockup {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    overflow: hidden;
    transition: transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.downloader-panel {
    transform: rotateY(-6deg) rotateX(3deg);
    transition: var(--transition-smooth);
}

.downloader-panel:hover {
    transform: rotateY(-1deg) rotateX(1deg) scale(1.03);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 30px 65px rgba(138, 43, 226, 0.18), 
                0 0 30px rgba(0, 191, 255, 0.08);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-dots .red { background-color: #ff5f56; }
.mockup-dots .yellow { background-color: #ffbd2e; }
.mockup-dots .green { background-color: #27c93f; }

.mockup-title-bar {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 1rem;
    border-radius: 6px;
}

.mockup-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.status-indicator.busy {
    background-color: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

.status-indicator.error {
    background-color: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.downloader-console-content {
    padding: 1.5rem;
    width: 100%;
}

.console-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.spinner-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.04);
    border: 1.5px dashed var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
    animation: rotateAura 15s infinite linear;
}

.console-pulsing-icon {
    font-size: 2.2rem;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 8px var(--accent-purple));
    animation: rotateSlow 8s infinite linear;
}

@keyframes rotateAura {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.console-empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.console-empty-state p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.5;
}

/* --- Result Layout Styling --- */
.result-details {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
    align-items: center;
}

.thumbnail-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-glass);
    background-color: #000;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.thumbnail-wrapper:hover img {
    transform: scale(1.12);
}

.video-duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.metadata-wrapper h2 {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.author-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-text i {
    color: var(--accent-purple);
}

.divider {
    height: 1px;
    background: var(--border-glass);
    margin: 1.5rem 0;
}

.download-options-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.25rem;
}

.tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.opt-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 0.85rem 1.35rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.opt-btn:hover {
    border-color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.05);
    transform: translateX(6px) scale(1.01);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.15);
}

.opt-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-icon {
    font-size: 1.15rem;
}

.opt-icon.video-type {
    color: var(--accent-blue);
}

.opt-icon.audio-type {
    color: var(--accent-purple);
}

.opt-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.opt-ext {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.opt-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.opt-down-icon {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-quick);
}

.opt-btn:hover .opt-down-icon {
    color: var(--text-primary);
    transform: translateY(2px);
}

/* --- Progress Section --- */
.download-progress-area {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 1.25rem;
    border-radius: 14px;
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--accent-purple) 0%, 
        var(--accent-blue) 30%, 
        var(--accent-purple) 60%, 
        var(--accent-blue) 100%
    );
    background-size: 200% 100%;
    width: 0%;
    border-radius: 100px;
    box-shadow: 0 0 12px var(--accent-purple);
    transition: width 0.3s ease;
    animation: progress-glow 2s infinite linear;
}

@keyframes progress-glow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.progress-helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* --- Features Section --- */
.features-section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(300px circle at var(--x, 0) var(--y, 0), rgba(255,255,255,0.06), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 18px;
    border: 1px solid transparent;
    opacity: 0.4;
}

.purple-glow {
    background: rgba(138, 43, 226, 0.08);
    color: var(--accent-purple);
}
.purple-glow::after { border-color: var(--accent-purple); }

.blue-glow {
    background: rgba(0, 191, 255, 0.08);
    color: var(--accent-blue);
}
.blue-glow::after { border-color: var(--accent-blue); }

.pink-glow {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
}
.pink-glow::after { border-color: #f43f5e; }

.green-glow {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}
.green-glow::after { border-color: #10b981; }

.yellow-glow {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}
.yellow-glow::after { border-color: #f59e0b; }

.orange-glow {
    background: rgba(249, 115, 22, 0.08);
    color: #f97316;
}
.orange-glow::after { border-color: #f97316; }

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Interactive Design Lab Section --- */
.lab-section {
    padding: 6rem 2rem;
    position: relative;
}

.lab-container {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lab-controls h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.lab-controls p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.control-group {
    margin-bottom: 2rem;
}

.control-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-quick);
}

.color-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.15);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: #1c2330;
    outline: none;
    margin-bottom: 0.5rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    transition: var(--transition-quick);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-val {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.lab-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 250px;
}

.preview-card {
    background: rgba(12, 16, 23, var(--opacity-val));
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.preview-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.preview-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.preview-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 2rem;
}

.contact-card {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 4rem;
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.contact-list i {
    color: var(--accent-purple);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-quick);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.15);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-glass);
    background-color: #04060a;
    padding: 5rem 2rem 2.5rem;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 1.5rem 0;
    max-width: 250px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

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

/* --- Responsive Adaptations --- */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .dashboard-mockup {
        max-width: 600px;
        margin: 0 auto;
        transform: none !important;
    }
    .lab-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--bg-surface);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-glass);
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .result-details {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .thumbnail-wrapper {
        width: 180px;
    }
}
