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

:root {
    --bg-color: #080B10;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent-cyan: #00F2FE;
    --accent-blue: #4FACFE;
    --accent-glow: rgba(0, 242, 254, 0.15);
    --success: #00F5A0;
    --error: #FF5E62;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: #05070f;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(79, 172, 254, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(0, 242, 254, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 65%);
}

.circuit-left {
    position: fixed;
    top: 10%;
    left: 0;
    width: 320px;
    height: 700px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='700' viewBox='0 0 320 700' fill='none'%3E%3Cpath d='M 0 120 L 140 120 L 190 170 L 290 170' stroke='rgba(0,242,254,0.18)' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='290' cy='170' r='3.5' fill='%2300F2FE' fill-opacity='0.8'/%3E%3Cpath d='M 0 240 L 90 240 L 140 290 L 140 420 L 240 420' stroke='rgba(79,172,254,0.15)' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='240' cy='420' r='3' fill='%234FACFE' fill-opacity='0.7'/%3E%3Cpath d='M 0 520 L 130 520 L 180 470 L 280 470' stroke='rgba(139,92,246,0.12)' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='280' cy='470' r='3' fill='%238B5CF6' fill-opacity='0.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    z-index: -1;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.35));
}

.circuit-right {
    position: fixed;
    top: 10%;
    right: 0;
    width: 320px;
    height: 700px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='700' viewBox='0 0 320 700' fill='none'%3E%3Cpath d='M 320 120 L 180 120 L 130 170 L 30 170' stroke='rgba(0,242,254,0.18)' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='30' cy='170' r='3.5' fill='%2300F2FE' fill-opacity='0.8'/%3E%3Cpath d='M 320 240 L 230 240 L 180 290 L 180 420 L 80 420' stroke='rgba(79,172,254,0.15)' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='80' cy='420' r='3' fill='%234FACFE' fill-opacity='0.7'/%3E%3Cpath d='M 320 520 L 190 520 L 140 470 L 40 470' stroke='rgba(139,92,246,0.12)' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='40' cy='470' r='3' fill='%238B5CF6' fill-opacity='0.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    z-index: -1;
    pointer-events: none;
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.35));
}

/* Background animation grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo:hover svg {
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.nav-menu .nav-link:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
}

.btn-login {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-login:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 60%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 300;
}

/* Glassmorphism Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.25rem;
    width: 100%;
    max-width: 760px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 242, 254, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.4) 0%, rgba(79, 172, 254, 0.15) 50%, rgba(139, 92, 246, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition);
    z-index: 2;
}

.card:hover::before {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.8) 0%, rgba(79, 172, 254, 0.4) 50%, rgba(139, 92, 246, 0.7) 100%);
}

.card-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 102%;
    height: 102%;
    background: linear-gradient(135deg, 
        rgba(0, 242, 254, 0.28) 0%, 
        rgba(139, 92, 246, 0.28) 50%, 
        rgba(0, 245, 160, 0.2) 100%
    );
    filter: blur(70px);
    z-index: 1;
    pointer-events: none;
    border-radius: 40px;
    opacity: 0.85;
    transition: var(--transition);
}

.card-wrapper:hover .card-aura {
    width: 106%;
    height: 106%;
    opacity: 1;
    filter: blur(80px);
}

.card:hover {
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 242, 254, 0.18),
        0 0 45px rgba(139, 92, 246, 0.12);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.25rem;
}

.input-wrapper input {
    flex: 1;
}

.input-wrapper .btn {
    width: auto;
    padding: 1rem 2rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    .input-wrapper .btn {
        width: 100%;
    }
}

input[type="text"], input[type="url"], input[type="password"], input[type="date"] {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.btn {
    padding: 1rem;
    background: linear-gradient(135deg, #00F5A0 0%, #00D9F6 50%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    color: #05070f;
    font-family: var(--font-sans);
    font-weight: 750;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(0, 242, 254, 0.5),
        0 0 15px rgba(139, 92, 246, 0.4);
    filter: brightness(1.15);
}

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

/* Accordion Options */
.toggles-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.option-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

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

.option-toggle svg {
    transition: var(--transition);
}

.option-toggle.active {
    color: var(--accent-cyan);
}

.option-toggle.active svg {
    transform: rotate(90deg);
}

.collapsible-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-section.open {
    max-height: 120px;
    margin-top: 1.25rem;
}

/* Result Section */
.result-section {
    margin-top: 1.5rem;
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

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

.result-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.result-url {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent-cyan);
    font-weight: 500;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* QR Code */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.qr-code {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 12px;
}

.qr-code img {
    display: block;
}

.card-footer-login {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

.card-footer-login a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
}

.card-footer-login a:hover {
    text-decoration: underline;
}

/* Features Grid Section */
.features-section {
    margin-top: 6rem;
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(0, 242, 254, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 242, 254, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.08);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

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

.toast-success svg {
    color: var(--success);
}

.toast-error svg {
    color: var(--error);
}

footer {
    width: 100%;
    padding: 4rem 2rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 6rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* QR Code Reveal Animation */
@keyframes qrReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-container.visible {
    animation: qrReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
