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

:root {
    /* Dark Mode Colors */
    --dark-bg: #0a0a0f;
    --dark-card: rgba(25, 25, 35, 0.85);
    --dark-text: #ffffff;
    --dark-text-secondary: #b4b4c8;
    --dark-border: rgba(255, 255, 255, 0.1);
    
    /* Bright Mode Colors */
    --bright-bg: #fef7ff;
    --bright-card: rgba(255, 255, 255, 0.95);
    --bright-text: #1a1a2e;
    --bright-text-secondary: #6b6b8c;
    --bright-border: rgba(0, 0, 0, 0.1);
    
    /* Accent Colors */
    --cyber-pink: #ff006e;
    --lavender: #b388ff;
    --cyber-blue: #00d9ff;
    --soft-peach: #ffb4a2;
    --deep-purple: #7209b7;
    --lime-green: #38ef7d;
    --sunset-orange: #ff6b6b;
    --teal-blue: #4ecdc4;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, var(--cyber-pink), var(--deep-purple));
    --gradient-2: linear-gradient(135deg, var(--cyber-blue), var(--lavender));
    --gradient-3: linear-gradient(135deg, var(--soft-peach), var(--cyber-pink));
    --gradient-4: linear-gradient(135deg, var(--lime-green), var(--teal-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--dark-text);
    min-height: 100vh;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body.bright-mode {
    background: var(--bright-bg);
    color: var(--bright-text);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 { width: 400px; height: 400px; background: var(--gradient-1); top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: var(--gradient-2); bottom: -100px; right: -100px; animation-delay: 7s; }
.orb-3 { width: 300px; height: 300px; background: var(--gradient-4); top: 50%; left: 50%; animation-delay: 14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

.floating-dove {
    position: absolute;
    font-size: 24px;
    opacity: 0.3;
    animation: floatDove 15s linear infinite;
}

.dove-1 { top: 20%; left: -50px; animation-delay: 0s; }
.dove-2 { top: 60%; left: -50px; animation-delay: 5s; }
.dove-3 { top: 40%; left: -50px; animation-delay: 10s; }

@keyframes floatDove {
    0% { transform: translateX(-50px) rotate(10deg); }
    100% { transform: translateX(100vw) rotate(-10deg); }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--dark-border);
    background: var(--dark-card);
    color: var(--dark-text);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bright-mode .theme-toggle {
    border-color: var(--bright-border);
    background: var(--bright-card);
    color: var(--bright-text);
}

/* Navigation */
.landing-nav {
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo-text {
    font-family: 'Chokokutai', cursive;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 2px;
    font-size: 3.5rem;
    background: linear-gradient(90deg, #ff006e 0%, #00d9ff 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 24px #ff006e55, 0 0px 8px #ffd70055;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* Main Layout */
.landing-main {
    width: 100%;
    flex: 1;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    text-align: center;
    gap: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--dark-text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.bright-mode .hero-subtitle {
    color: var(--bright-text-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

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

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyber-pink);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-text-secondary);
}

/* Auth Card */
.hero-auth-container {
    width: 100%;
    max-width: 400px;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 100%;
    animation: slideUp 0.5s ease;
}

.bright-mode .auth-card {
    background: var(--bright-card);
    border-color: var(--bright-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.hidden {
    display: none !important;
}
/* Typography */
h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.logo {
    margin-bottom: 30px;
}

.tagline, .subtitle {
    font-size: 18px;
    color: var(--dark-text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.bright-mode .tagline, 
.bright-mode .subtitle {
    color: var(--bright-text-secondary);
}

/* Buttons */
.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 0, 110, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

.bright-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--bright-text);
    border-color: var(--bright-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--dark-text-secondary);
}

.btn-gradient {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 217, 255, 0.4);
}

.back-btn {
    background: none;
    border: none;
    color: var(--dark-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--cyber-pink);
}

.input-group {
    margin-bottom: 24px;
    text-align: left;
}

input[type="text"] {
    width: 100%;
    padding: 18px 24px;
    border-radius: 18px;
    border: 2px solid var(--dark-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--dark-text);
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    transition: border-color 0.3s;
}

.bright-mode input[type="text"] {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--bright-border);
    color: var(--bright-text);
}

input[type="text"]:focus {
    border-color: var(--cyber-pink);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1);
}

.bright-mode input[type="text"]:focus {
    background: white;
}

.input-hint {
            font-size: 0.8rem;
    color: var(--dark-text-secondary);
    margin-top: 5px;
    display: block;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.code-display {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed var(--dark-border);
}

.bright-mode .code-display {
    background: rgba(0,0,0,0.05);
    border-color: var(--bright-border);
}

code {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--cyber-pink);
    font-weight: bold;
}

.copy-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--dark-text);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.warning-box {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--sunset-orange);
    text-align: left;
}

/* How It Works */
.how-it-works {
    padding: 80px 20px;
    background: rgba(0,0,0,0.2);
}

.bright-mode .how-it-works {
    background: rgba(255,255,255,0.5);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--dark-border);
}

.bright-mode .step-card {
    background: var(--bright-card);
    border-color: var(--bright-border);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Features */
.features-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-text p {
    color: var(--dark-text-secondary);
    line-height: 1.6;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 300px;
    height: 200px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
}

/* Quotes */
.quotes-section {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.quotes-scroll {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.quote-card {
    background: var(--dark-card);
    padding: 20px 30px;
    border-radius: 50px;
    border: 1px solid var(--dark-border);
    white-space: nowrap;
}

.bright-mode .quote-card {
    background: var(--bright-card);
    border-color: var(--bright-border);
}

/* Footer */
.page-footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--dark-border);
    background: var(--dark-bg);
    margin-top: auto;
}

.bright-mode .page-footer {
    border-color: var(--bright-border);
    background: var(--bright-bg);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 20px; }
    .feature-row { flex-direction: column; text-align: center; gap: 30px; }
    .feature-row.reverse { flex-direction: column; }
    .visual-card { width: 100%; max-width: 300px; }
}

/* ==================== CUSTOM DIALOG SYSTEM ==================== */
.custom-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.custom-dialog-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-dialog {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.bright-mode .custom-dialog {
    background: var(--bright-card);
    border-color: var(--bright-border);
}

.dialog-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.dialog-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--dark-text);
}

body.bright-mode .dialog-title {
    color: var(--bright-text);
}

.dialog-message {
    font-size: 16px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--dark-text-secondary);
    line-height: 1.5;
}

body.bright-mode .dialog-message {
    color: var(--bright-text-secondary);
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dialog-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.dialog-btn-primary {
    background: var(--gradient-1);
    color: white;
}

.dialog-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

.dialog-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

body.bright-mode .dialog-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--bright-text);
    border-color: var(--bright-border);
}

.dialog-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.bright-mode .dialog-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.dialog-btn-danger {
    background: linear-gradient(135deg, #ff006e, #ff006e);
    color: white;
}

.dialog-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

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

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