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

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-darker: #047857;
    --primary-light: #34D399;
    --bg-base: #F9FAFB;
    --bg-surface: #FFFFFF;
    --bg-surface-2: #F3F4F6;
    --bg-card: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-1: #111827;
    --text-2: #4B5563;
    --text-3: #9CA3AF;
    
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --success: #10B981;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-1);
}

.h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; }
.h2 { font-size: 2.25rem; font-weight: 700; }
.h3 { font-size: 1.5rem; font-weight: 600; }

.text-muted {
    color: var(--text-2);
}

.text-sm {
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

.text-green {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-1);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(16, 185, 129, 0.25);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
}

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

.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--primary); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.badge-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text-2); }

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-1);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background: #FFFFFF;
}

.form-hint {
    font-size: 13px;
    color: var(--text-3);
    mt: 4px;
}

.form-error {
    font-size: 13px;
    color: var(--danger);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-2);
    font-size: 14px;
}

.table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    position: relative;
}

.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--primary); }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--danger); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--warning); }
.alert-info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); color: var(--info); }

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
    font-size: 16px;
}

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.navbar-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--text-1);
}

.navbar-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-nav a:hover {
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.04);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-1);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    z-index: 999;
}

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

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    display: block;
    color: var(--text-2);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
}

@media (max-width: 768px) {
    .navbar-nav, .navbar-actions .btn-login {
        display: none;
    }
    .navbar-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(40px);
    border-radius: 50%;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.hero-orb-1 { top: 10%; left: -10%; }
.hero-orb-2 { bottom: 10%; right: -10%; animation-delay: -5s; }

@keyframes orbFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-2);
    margin: 0 auto 40px;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-2);
    font-size: 1.05rem;
}

/* Service Card */
.service-card {
    padding: 32px;
    background: var(--bg-surface);
    height: 100%;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.service-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card-body p {
    color: var(--text-2);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card-body .btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card-body .btn-link:hover {
    color: var(--primary-light);
}

/* Pricing Cards */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.pricing-tab {
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pricing-card {
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border-color: rgba(16, 185, 129, 0.4);
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, #FFFFFF 60%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 24px;
    min-height: 48px;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 32px;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
}

.pricing-period {
    color: var(--text-3);
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
}

.pricing-features li i {
    color: var(--primary);
    font-size: 18px;
}

/* Feature grid (Why Choose Us) */
.features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, #FFFFFF 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 32px;
    color: var(--text-2);
}

/* Footer */
.footer {
    background: #F3F4F6;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 32px;
}

.footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--text-1);
}

.footer-brand p {
    color: var(--text-2);
    font-size: 14px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    color: var(--text-1);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

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

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-2);
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
}

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

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

.auth-logo .navbar-brand {
    justify-content: center;
    font-size: 24px;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 22px;
}

.auth-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-2);
    font-size: 14px;
    margin-bottom: 32px;
}

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

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.password-input-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: var(--text-2);
}

.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.08);
}

.strength-bar.weak { background: var(--danger); }
.strength-bar.fair { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

/* Currency Selector */
.currency-selector {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.currency-btn {
    background: transparent;
    border: none;
    color: var(--text-2);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-btn.active {
    background: var(--primary);
    color: #fff;
}
