﻿/* ============================================
   MENU-FREE - Base Styles & Landing Page
   Modern Premium Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Keyframe Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.2); }
    50% { box-shadow: 0 0 40px rgba(231, 76, 60, 0.4); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

/* ---- CSS Variables ---- */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #fef0ef;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;

    --dark: #1a1a2e;
    --gray-900: #2d2d44;
    --gray-800: #3d3d5c;
    --gray-700: #555;
    --gray-600: #777;
    --gray-500: #999;
    --gray-400: #bbb;
    --gray-300: #ddd;
    --gray-200: #e8e8e8;
    --gray-100: #f5f6fa;
    --white: #ffffff;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --border-radius: 14px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gray-100);
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--bounce);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: inherit;
}

.btn:hover::after { transform: scaleX(1); }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(231,76,60,0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover { background: var(--gray-200); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary); color: white; }

.btn-success { background: linear-gradient(135deg, #27ae60, #219a52); color: white; box-shadow: 0 4px 15px rgba(39,174,96,0.3); }
.btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; box-shadow: 0 4px 15px rgba(231,76,60,0.3); }
.btn-warning { background: linear-gradient(135deg, #f39c12, #e67e22); color: white; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font);
    transition: var(--transition);
    background: white;
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(231,76,60,0.08);
}

.form-control::placeholder { color: var(--gray-400); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.form-control { min-height: 100px; resize: vertical; }

/* ---- Alerts ---- */
.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease;
}

.alert-success { background: #eafaf1; color: #1a7a42; border: 1px solid #b8e6cc; }
.alert-danger { background: #fdf0ef; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-warning { background: #fef9e7; color: #9a6700; border: 1px solid #fce8a4; }
.alert-info { background: #edf7fd; color: #1a6fa5; border: 1px solid #b8dff5; }

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #eafaf1; color: #27ae60; }
.badge-warning { background: #fef9e7; color: #e67e22; }
.badge-danger { background: #fdf0ef; color: #e74c3c; }
.badge-info { background: #edf7fd; color: #3498db; }

/* ============================================
   Auth Pages - Login/Register
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    filter: blur(80px);
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    filter: blur(60px);
}

.auth-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.5s var(--bounce);
    position: relative;
    z-index: 1;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 32px;
    font-size: 15px;
}

.auth-card .form-control {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    background: var(--gray-100);
    border: 1.5px solid transparent;
}

.auth-card .form-control:focus {
    background: white;
    border-color: var(--primary);
}

.auth-card .btn {
    padding: 14px;
    width: 100%;
    font-size: 16px;
    border-radius: 14px;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-600);
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--primary);
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* ============================================
   Landing Page
   ============================================ */

/* Landing Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    transition: all 0.4s ease;
    background: transparent;
}

.landing-nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    padding: 10px 24px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.landing-nav.scrolled .nav-brand { color: var(--dark); }

.nav-brand i {
    font-size: 28px;
    color: var(--primary);
}

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

.nav-links .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 12px;
}

.nav-links .btn-ghost {
    background: rgba(255,255,255,0.12);
    color: white;
    border: none;
    backdrop-filter: blur(5px);
}

.landing-nav.scrolled .nav-links .btn-ghost {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(231,76,60,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52,152,219,0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s 0.1s both;
}

.hero-badge i { color: var(--primary); }

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    animation: fadeInUp 0.6s 0.2s both;
}

.hero h1 span {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 520px;
    margin-inline: auto;
    line-height: 1.7;
    animation: fadeInUp 0.6s 0.3s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.4s both;
}

.hero-cta .btn {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 14px;
}

.hero-cta .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.hero-cta .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Hero floating decorative element */
.hero-visual {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50px 50px 0 0;
}

/* Stats Section */
.stats-section {
    padding: 60px 24px;
    background: var(--gray-100);
}

.stats-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.5s ease both;
}

.stat-item:nth-child(2) { animation-delay: 0.1s; }
.stat-item:nth-child(3) { animation-delay: 0.2s; }

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 15px;
    color: var(--gray-600);
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.6;
}

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    transition: all 0.4s var(--bounce);
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #f39c12);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: white;
    border-color: rgba(0,0,0,0.04);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary);
    background: var(--primary-light);
    transition: all 0.3s var(--bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

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

/* CTA Section */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #0f0c29, #302b63);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(231,76,60,0.08);
    border-radius: 50%;
    right: -100px;
    top: -100px;
    filter: blur(80px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    line-height: 1.6;
}

.cta-content .btn {
    padding: 16px 40px;
    font-size: 17px;
    border-radius: 16px;
}

/* Footer */
.landing-footer {
    padding: 40px 24px;
    text-align: center;
    background: #0a0a1a;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

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

/* ============================================
   Responsive - All Device Sizes
   ============================================ */

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
    .hero p { font-size: 16px; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .stat-number { font-size: 36px; }
    .section-header h2 { font-size: 28px; }
    .cta-content h2 { font-size: 28px; }
    .auth-card { padding: 32px 24px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 280px; }
    .features { padding: 60px 24px; }
    .cta-section { padding: 60px 24px; }
    .stats-section { padding: 40px 24px; }
    .nav-links .btn { padding: 8px 16px; font-size: 13px; }
}

/* Phone Landscape (600px) */
@media (max-width: 600px) {
    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; margin-bottom: 28px; }
    .section-header h2 { font-size: 24px; }
    .cta-content h2 { font-size: 24px; }
    .cta-content p { font-size: 15px; }
    .features-grid { gap: 14px; }
    .feature-card { padding: 28px 22px; }
    .feature-icon { width: 50px; height: 50px; font-size: 22px; }
    .auth-card { max-width: 100%; }
}

/* Phone Portrait (480px) */
@media (max-width: 480px) {
    .hero { padding: 90px 16px 50px; }
    .hero h1 { font-size: 26px; letter-spacing: -0.3px; }
    .hero p { font-size: 14px; line-height: 1.6; }
    .hero-badge { font-size: 12px; padding: 6px 14px; }
    .hero-cta .btn { padding: 12px 24px; font-size: 14px; }
    .nav-brand { font-size: 18px; }
    .nav-brand i { font-size: 22px; }
    .landing-nav { padding: 12px 16px; }
    .nav-links { gap: 6px; }
    .nav-links .btn { padding: 8px 14px; font-size: 12px; }
    .feature-card { padding: 24px 18px; border-radius: 16px; }
    .feature-card h3 { font-size: 16px; }
    .feature-card p { font-size: 13px; }
    .auth-wrapper { padding: 16px; }
    .auth-card { padding: 28px 20px; border-radius: 20px; }
    .auth-card h2 { font-size: 22px; }
    .auth-logo i { width: 64px; height: 64px; font-size: 36px; border-radius: 18px; }
    .stat-number { font-size: 32px; }
    .stat-label { font-size: 13px; }
    .stats-section { padding: 32px 16px; }
    .features { padding: 50px 16px; }
    .section-header { margin-bottom: 36px; }
    .cta-section { padding: 50px 16px; }
    .cta-content .btn { padding: 14px 28px; font-size: 15px; }
    .landing-footer { padding: 30px 16px; font-size: 13px; }

    /* Buttons global */
    .btn { padding: 10px 22px; font-size: 14px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
    .btn-sm { padding: 7px 14px; font-size: 12px; }
}

/* Ultra Small Phone (360px) */
@media (max-width: 360px) {
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .auth-card { padding: 24px 16px; }
    .auth-card h2 { font-size: 20px; }
    .auth-card .subtitle { font-size: 13px; }
    .nav-brand span { display: none; }
    .feature-card { padding: 20px 16px; }
    .cta-content h2 { font-size: 20px; }
    .cta-content p { font-size: 14px; }
    .stats-grid { gap: 16px; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--gray-600); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
