/* LinkPro — Main Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
    --transition: .2s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .625rem 1.25rem; border-radius: var(--radius);
    font-size: .875rem; font-weight: 600; font-family: inherit;
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.45); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,.04); }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; padding: .5rem .75rem; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: .4rem .8rem; font-size: .8rem; }
.btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: none; border-radius: 8px;
    background: var(--bg); color: var(--text-muted); cursor: pointer;
    transition: all var(--transition);
}
.btn-icon:hover { background: var(--border); color: var(--text); }
.btn-icon.danger:hover { background: #fef2f2; color: var(--danger); }

/* Brand */
.brand-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.brand-link:hover { color: var(--primary); }
.brand-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .9rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: .75rem 1rem; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: .9rem; font-family: inherit;
    background: var(--surface); color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-group small { display: block; margin-top: .3rem; color: var(--text-muted); font-size: .8rem; }
.form-check { margin-bottom: .75rem; }
.form-check label { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.input-prefix { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.input-prefix span { padding: .75rem; background: var(--bg); color: var(--text-muted); font-size: .875rem; border-right: 2px solid var(--border); }
.input-prefix input { border: none !important; border-radius: 0 !important; box-shadow: none !important; }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .875rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert p { margin: 0; }
.alert p + p { margin-top: .25rem; }

/* Toast */
.toast {
    position: fixed; top: 1.5rem; right: 1.5rem; z-index: 9999;
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.25rem; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease; font-size: .875rem; font-weight: 500;
    max-width: 400px;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }
.toast-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); margin-left: auto; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Auth */
.page-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #f0fdfa 100%); }
.auth-wrapper { width: 100%; max-width: 440px; padding: 1.5rem; }
.auth-card {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 2.5rem; box-shadow: var(--shadow-lg);
    animation: fadeUp .4s ease;
}
.auth-brand { margin-bottom: 1.5rem; }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem; }
.auth-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-form { margin-top: 1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }

/* Landing */
.page-landing { background: var(--bg); }
.landing-header { padding: 1rem 0; position: sticky; top: 0; z-index: 100; background: rgba(248,250,252,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.landing-nav { display: flex; align-items: center; justify-content: space-between; }
.landing-menu { display: flex; gap: .75rem; align-items: center; }

.hero { padding: 5rem 0 6rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem 1rem; border-radius: 50px;
    background: rgba(99,102,241,.1); color: var(--primary);
    font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; letter-spacing: -.02em; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.hero-stat span { font-size: .8rem; color: var(--text-muted); }

.phone-mockup {
    width: 280px; margin: 0 auto; padding: 12px;
    background: #1e293b; border-radius: 36px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.1);
    animation: float 6s ease-in-out infinite;
}
.phone-screen { border-radius: 28px; padding: 2rem 1.5rem; min-height: 420px; text-align: center; }
.mock-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.3); margin: 0 auto 1rem; }
.mock-name { font-weight: 700; color: #fff; margin-bottom: .25rem; }
.mock-bio { font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.mock-link { height: 44px; border-radius: 12px; background: rgba(255,255,255,.2); margin-bottom: .75rem; }
.mock-link.featured { background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.5); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.features { padding: 5rem 0; }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: .5rem; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: var(--surface); border-radius: var(--radius-lg); padding: 2rem;
    border: 1px solid var(--border); transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(6,182,212,.1));
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.25rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; color: var(--text-muted); }

.themes-showcase { padding: 4rem 0; background: var(--surface); }
.themes-preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; }
.theme-preview-card {
    height: 120px; border-radius: var(--radius); display: flex;
    align-items: flex-end; padding: 1rem; color: #fff;
    font-weight: 700; font-size: .85rem;
    transition: transform var(--transition);
}
.theme-preview-card:hover { transform: scale(1.05); }

.cta { padding: 5rem 0; }
.cta-box {
    text-align: center; padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg); color: #fff;
}
.cta-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.cta-box p { opacity: .85; margin-bottom: 1.5rem; }
.cta-box .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-box .btn-primary:hover { background: #f8fafc; color: var(--primary-dark); }

.landing-footer { padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: .875rem; border-top: 1px solid var(--border); }

.not-found { text-align: center; padding: 6rem 1.5rem; }
.not-found h1 { font-size: 4rem; font-weight: 800; color: var(--primary); }

.text-muted { color: var(--text-muted); }
.text-sm { font-size: .8rem; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-actions, .hero-stats { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .themes-preview-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .themes-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-menu .btn-ghost { display: none; }
}
