/* ==========================================================================
   QRGENX ULTRA - HIGH-END MODERN DESIGN SYSTEM (DARK EDITION ONLY)
   ========================================================================== */

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

:root {
    /* Pure Space Dark Palette */
    --bg-primary: #030303;
    --bg-secondary: rgba(8, 8, 12, 0.75);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accents (RGB formats for dynamic transparency control) */
    --color-primary: #10b981;
    --color-primary-rgb: 16, 185, 129;
    --color-secondary: #9333ea;
    --color-secondary-rgb: 147, 51, 234;
    --color-accent: #0ea5e9;
    --color-accent-rgb: 14, 165, 233;
    
    /* UI Borders & Surfaces */
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    --card-bg: rgba(10, 10, 15, 0.6);
    --card-bg-hover: rgba(16, 16, 24, 0.85);
    --input-bg: rgba(6, 6, 9, 0.9);
    --input-focus-border: rgba(16, 185, 129, 0.5);
    
    /* Shadow & Neon Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.95);
    --glow-primary: 0 0 25px rgba(16, 185, 129, 0.25);
    --glow-secondary: 0 0 25px rgba(147, 51, 234, 0.25);
    --glow-accent: 0 0 25px rgba(14, 165, 233, 0.25);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   BACKGROUND METALLIC GRID & RADIAL LIGHTS
   ========================================================================== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    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);
    background-size: 40px 40px;
    pointer-events: none;
}

.bg-gradient {
    position: fixed;
    inset: -30%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.07), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.04), transparent 50%);
    animation: bgMovement 30s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgMovement {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, 3%) scale(1.08); }
}

/* Glowing Blob Elements */
.glowing-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transition: var(--transition);
}

.blob-1 {
    top: 10%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-primary), transparent 70%);
    animation: floatBlob1 25s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary), transparent 70%);
    animation: floatBlob2 30s ease-in-out infinite alternate;
}

.blob-3 {
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-accent), transparent 70%);
    transform: translate(-50%, -50%);
    animation: floatBlob3 20s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -40px) scale(1.05); }
}

@keyframes floatBlob3 {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.15); }
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loading-animation {
    position: fixed;
    inset: 0;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(16, 185, 129, 0.05);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 0.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    box-shadow: var(--glow-primary);
}

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 8%;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: 1.6rem;
    -webkit-text-fill-color: initial;
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================================================
   HERO / HOME SECTION
   ========================================================================== */
.hero {
    min-height: 95vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 9rem 8% 4rem 8%;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.animated-text {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 10%, var(--color-accent) 60%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.15));
}

.typing-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.01em;
}

.cursor {
    font-weight: 400;
    color: var(--color-primary);
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
    font-weight: 400;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5), var(--glow-primary);
}

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

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Hero Orbits & Image Visuals */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.circle-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.orbit-1 {
    width: 110%;
    height: 110%;
    animation: rotateOrbit 40s linear infinite;
}

.orbit-2 {
    width: 90%;
    height: 90%;
    border: 1px solid rgba(16, 185, 129, 0.05);
    animation: rotateOrbitReverse 30s linear infinite;
}

.orbit-3 {
    width: 70%;
    height: 70%;
    animation: rotateOrbit 20s linear infinite;
}

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

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

.hero-img-card {
    position: relative;
    max-width: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.hero-img-card img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(16, 185, 129, 0.1));
    transition: var(--transition);
}

.hero-img-card:hover img {
    transform: scale(1.04) rotate(1deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 30px rgba(16, 185, 129, 0.25));
}

/* Floating Icons around Hero Image */
.floating-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    z-index: 4;
    transition: var(--transition);
}

.floating-icon:hover {
    color: var(--text-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    transform: scale(1.15);
}

.icon-top {
    top: -20px;
    left: 45%;
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-right {
    top: 45%;
    right: -25px;
    animation: iconFloat 4s ease-in-out infinite 1s;
}

.icon-bottom {
    bottom: -20px;
    left: 45%;
    animation: iconFloat 4s ease-in-out infinite 2s;
}

.icon-left {
    top: 45%;
    left: -25px;
    animation: iconFloat 4s ease-in-out infinite 3s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 5;
}

.scroll-indicator:hover {
    color: var(--text-primary);
}

.mouse-scroll {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    width: 26px;
    height: 44px;
    position: relative;
}

.mouse-scroll .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 8px; opacity: 1; }
}

.mouse-scroll .arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 48px;
}

.mouse-scroll .arrow span {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transform: rotate(45deg);
    margin: -3px 0;
    animation: scrollArrow 1.5s infinite;
}

.mouse-scroll .arrow span:nth-child(2) { animation-delay: 0.15s; }
.mouse-scroll .arrow span:nth-child(3) { animation-delay: 0.3s; }

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-2px, -2px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(2px, 2px); }
}

/* ==========================================================================
   GENERATOR SECTION
   ========================================================================== */
.generator-section {
    padding: 8rem 8%;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
}

.input-section, .result-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.input-section:hover, .result-section:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.input-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

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

.emoji-container {
    position: relative;
    width: 100%;
}

textarea {
    width: 100%;
    min-height: 140px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition);
    outline: none;
}

textarea:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.12);
}

.emoji-toggle {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.emoji-toggle:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.emoji-picker {
    position: absolute;
    bottom: 4rem;
    right: 1rem;
    width: 330px;
    height: 250px;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.25rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.emoji-picker.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.emoji-picker span {
    font-size: 1.4rem;
    cursor: pointer;
    text-align: center;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.emoji-picker span:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.2);
}

.large-content-support {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Upload & previews */
.upload-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    color: var(--color-primary);
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.upload-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
}

.upload-btn input[type="file"] {
    display: none;
}

#file-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.clear-btn:hover {
    transform: scale(1.15);
}

.image-preview {
    max-width: 90px;
    max-height: 90px;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.progress-container {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.25s ease;
}

/* Shape selection panel */
.logo-options {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.logo-options h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.logo-size-option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.logo-size-option input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
}

.logo-size-option input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--glow-primary);
}

.logo-size-option input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.shape-options {
    display: flex;
    gap: 1.25rem;
}

.shape-option {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.shape-option:hover {
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

.shape-option.active {
    border-color: var(--color-primary);
    background: rgba(16, 185, 129, 0.05);
    color: var(--color-primary);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.05);
}

/* Customizer parameters options section */
.options-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.option input[type="color"] {
    -webkit-appearance: none;
    border: 1px solid var(--border-color);
    width: 100%;
    height: 46px;
    border-radius: 12px;
    cursor: pointer;
    background: var(--input-bg);
    padding: 5px;
    transition: var(--transition);
}

.option input[type="color"]:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.option input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}


.option input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 7px;
}

.option select {
    height: 46px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0 1rem;
    outline: none;
    font-weight: 500;
    transition: var(--transition);
}

.option select:focus {
    border-color: var(--color-primary);
}

.generate-btn {
    width: 100%;
    margin-bottom: 1.25rem;
}

#clear-all {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

#clear-all:hover {
    color: var(--error);
    border-color: rgba(239, 68, 110, 0.3);
    background: rgba(239, 68, 110, 0.05);
}

/* Result panel structure */
.result-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.qr-container {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-lg), inset 0 0 20px rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: var(--transition);
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: scanAnimation 3s linear infinite;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 8px var(--color-primary);
}

@keyframes scanAnimation {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
}

.qr-placeholder i {
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qr-placeholder p {
    font-size: 1rem;
    font-weight: 600;
}

#qr-result {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.download-section {
    display: flex;
    gap: 1.25rem;
    width: 100%;
}

.download-btn {
    flex: 1.3;
}

.download-btn:disabled, .share-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.share-dropdown {
    flex: 0.7;
    position: relative;
}

.share-btn {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.share-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 190px;
    background: #0f0f16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
}

.share-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 9rem 8%;
    background: rgba(4, 4, 6, 0.7);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 5.5rem;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(147, 51, 234, 0.02));
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-accent);
}

.feature-icon-container {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.75rem;
    color: var(--color-accent);
    box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.05);
}

.feature-icon {
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

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

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-it-works {
    padding: 9rem 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    max-width: 800px;
    position: relative;
    margin-top: 3rem;
    width: 100%;
}

.steps-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    width: 2px;
    height: calc(100% - 60px);
    background: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #0a0a0f;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.step:hover .step-number {
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    transform: scale(1.15);
}

.step-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    flex: 1;
    transition: var(--transition);
}

.step:hover .step-content {
    border-color: var(--border-color-hover);
    background: rgba(16, 16, 24, 0.6);
}

.step-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 9rem 8%;
    background: rgba(4, 4, 6, 0.7);
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.35rem;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.contact-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

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

.form-group input, .form-group textarea {
    height: 50px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 1.25rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    height: 130px;
    padding: 1.25rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.12);
}

.submit-btn {
    width: 100%;
    padding: 0.95rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: 5rem 8% 2.5rem 8%;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo i {
    -webkit-text-fill-color: initial;
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
        padding-top: 8rem;
        gap: 4rem;
    }
    .hero-content {
        align-items: center;
    }
    .status-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .container {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.25rem 5%;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #060608;
        border-bottom: 1px solid var(--border-color);
        padding: 2.5rem;
        gap: 1.75rem;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    .animated-text {
        font-size: 3rem;
    }
}