/* ====== Landing Page Styles ====== */
:root {
    --primary: #1E40AF;
    --primary-light: #3B82F6;
    --primary-lighter: #60A5FA;
    --primary-100: #DBEAFE;
    --primary-50: #EFF6FF;
    --accent: #FFD700;
    --dark: #0F172A;
    --dark-700: #1E293B;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --white: #FFFFFF;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.hidden { display: none !important; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== HEADER ====== */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.landing-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon { width: 36px; height: 36px; }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

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

.btn-login {
    font-weight: 600 !important;
    color: var(--primary) !important;
}

.btn-register {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.btn-register:hover {
    background: var(--primary-light) !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    z-index: 99;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(16,185,129,0.06) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 80px 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-100);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.btn-outline {
    background: white;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid var(--primary-100);
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-light);
}

.btn-lg { font-size: 16px; padding: 16px 32px; }
.btn-full { width: 100%; justify-content: center; }

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--gray-400); font-weight: 500; }

/* Dog mascot */
.hero-mascot {
    position: absolute;
    left: 12%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.hero-mascot-img {
    width: 260px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
    animation: mascotFloat 4s ease-in-out infinite;
}

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

/* Phone mockup */
.hero-phone-mockup {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--dark);
    border-radius: 40px;
    padding: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #EFF6FF, #FFFFFF);
    border-radius: 28px;
    padding: 48px 16px 16px;
    overflow: hidden;
}

.mock-header {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    font-style: italic;
    margin-bottom: 20px;
}

.mock-level {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mock-level.completed {
    border-left: 4px solid var(--primary-light);
}

.mock-level.active {
    border-left: 4px solid var(--primary);
    background: var(--primary-50);
}

.mock-level.locked {
    opacity: 0.5;
}

.mock-check, .mock-num, .mock-lock {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.mock-check { background: #D1FAE5; color: #059669; }
.mock-num { background: var(--primary-100); color: var(--primary); }
.mock-lock { background: var(--gray-100); }

.mock-level strong { font-size: 16px; display: block; }
.mock-level small { font-size: 12px; color: var(--gray-400); }

/* ====== FEATURES ====== */
.features {
    padding: 100px 0;
    background: var(--gray-100);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 17px;
    margin-bottom: 60px;
}

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

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-100);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ====== HOW IT WORKS ====== */
.how-section {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 220px;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-600); line-height: 1.5; }

.step-arrow {
    font-size: 28px;
    color: var(--gray-400);
    padding-top: 16px;
}

/* ====== TRY/DEMO ====== */
.try-section {
    padding: 0 0 20px;
}

.try-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.try-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(59,130,246,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.try-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

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

.try-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
}

.try-card p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 480px;
}

.try-btn {
    font-size: 17px !important;
    padding: 16px 32px !important;
}

.try-visual {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.try-dog-img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
    animation: mascotFloat 4s ease-in-out infinite;
}

.btn-demo-mobile {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* ====== CTA ====== */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary), #1D4ED8, var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-mascot {
    position: absolute;
    right: 24px;
    bottom: -10px;
    opacity: 0.13;
    pointer-events: none;
}

.cta-mascot-img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.cta-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cta-card .btn-primary:hover {
    background: var(--primary-50);
}

/* ====== FOOTER ====== */
.landing-footer {
    padding: 32px 0;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 13px;
    color: var(--gray-400);
}

/* ====== AUTH MODAL ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 36px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    margin: 16px;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-400);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.2s;
}

.modal-close:hover { background: var(--gray-100); }

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: var(--gray-100);
    border-radius: 12px;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
    color: var(--gray-600);
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-light);
}

.form-error {
    color: #EF4444;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}

.auth-demo {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.auth-demo p {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.auth-demo strong { color: var(--gray-600); }

/* ====== RESPONSIVE ====== */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 40px;
    }
    
    .hero-mascot {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
        margin-top: 32px;
        margin-bottom: -16px;
    }
    
    .hero-mascot-img {
        width: 160px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 24px 24px 32px;
    }
    
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .hero-phone-mockup {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
    }
    
    .phone-frame {
        width: 220px;
        height: 440px;
        border-radius: 32px;
        padding: 12px;
    }
    
    .phone-frame::before {
        width: 60px;
        height: 20px;
    }
    
    .phone-screen {
        border-radius: 24px;
        padding: 40px 12px 12px;
    }
    
    .mock-level {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
    
    .mock-check, .mock-num, .mock-lock {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .mock-level strong { font-size: 14px; }
    .mock-level small { font-size: 11px; }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-arrow { display: none; }
    .steps { gap: 32px; }
    
    .try-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }
    
    .try-card p {
        max-width: 100%;
    }
    
    .try-dog-img {
        width: 140px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .hero-mascot-img {
        width: 130px;
    }
}
