/* Modern Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #0f0f23;
    --accent: #ec4899;
    --accent-alt: #14b8a6;
    --text: #18181b;
    --text-muted: #52525b;
    --text-light: #a1a1aa;
    --surface: #ffffff;
    --surface-alt: #fafafa;
    --bg: #f8f9fc;
    --border: rgba(0, 0, 0, 0.06);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-full: 9999px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header - Glassmorphism */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.04);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-xs);
}

.mobile-menu-btn:hover { background: rgba(0, 0, 0, 0.04); }

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero - Modern Gradient Mesh */
.hero {
    padding: 160px 0 100px;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 100% 50%, rgba(236, 72, 153, 0.08), transparent),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(20, 184, 166, 0.08), transparent),
        var(--bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    padding: 8px 16px 8px 10px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    letter-spacing: -0.01em;
}

.hero-badge::before {
    content: '✦';
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 12px; }

/* Buttons - Modern Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: rgba(0,0,0,0.1);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 340px;
    filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.12));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

/* Features - Card Grid */
.features {
    padding: 120px 0;
    background: var(--surface);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--surface-alt);
    padding: 32px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

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

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Login Section */
.login-section {
    padding: 120px 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.08), transparent),
        var(--bg);
}

.login-section .section-header h2 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    background: var(--surface-alt);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--surface);
}

.form-group input::placeholder { color: var(--text-light); }

.form-btn {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    font-size: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary);
    font-weight: 600;
}

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

/* Messages */
.message {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 14px;
    animation: slideIn 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.show { display: flex; }

.message-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.message-warning {
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border: 1px solid #fcd34d;
    color: #92400e;
}

.message-warning .message-icon { background: #f59e0b; color: white; }

.message-info {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    border: 1px solid #c4b5fd;
    color: #5b21b6;
}

.message-info .message-icon { background: var(--primary); color: white; }

/* Footer */
.footer {
    background: var(--surface);
    padding: 72px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul { display: flex; flex-direction: column; gap: 14px; }

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

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: 
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.1), transparent),
        var(--bg);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.page-header .date, .page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Content Section */
.content-section {
    padding: 64px 0 100px;
    background: var(--surface);
}

.content-section .container { max-width: 720px; }

.content-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}

.content-section h2:first-child { margin-top: 0; }

.content-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.75;
}

.content-section strong { color: var(--text); }
.content-section a { color: var(--primary); font-weight: 500; }
.content-section a:hover { text-decoration: underline; }

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.contact-card {
    background: var(--surface-alt);
    padding: 28px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info a { color: var(--primary); }

/* Auth Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 50% 50% at 100% 50%, rgba(236, 72, 153, 0.06), transparent),
        var(--bg);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    padding: 48px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.auth-header p { color: var(--text-muted); font-size: 0.95rem; }

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    background: var(--surface-alt);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: var(--radius-xs);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.auth-tab.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    border-radius: 4px;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-group a { color: var(--primary); font-weight: 500; }

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-content { order: 1; }
    .hero-image { order: 0; }
    .hero p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; }
    .nav-menu a { padding: 14px 16px; border-radius: var(--radius-xs); }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 140px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .auth-container { padding: 36px 28px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .section-header h2 { font-size: 1.6rem; }
    .login-container, .auth-container { padding: 32px 24px; }
}
