/* ═══════════════════════════════════════════════
   SIM SMS Hub — Public Pages Stylesheet
   Design: Dark glassmorphism with purple-violet gradient accents
   ═══════════════════════════════════════════════ */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f35;
    --bg-card-hover: #222845;
    --bg-glass: rgba(26, 31, 53, 0.75);
    --border-color: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(139, 92, 246, 0.4);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ─── Navbar ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 70px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { font-size: 28px; }
.brand-text { font-size: 20px; font-weight: 700; color: var(--text-primary); background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: 14px; font-weight: 500; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(99, 102, 241, 0.1); }
.nav-btn {
    padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    text-decoration: none; transition: var(--transition);
}
.btn-primary-nav {
    background: var(--gradient-primary); color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: var(--transition); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition); text-decoration: none; font-family: var(--font);
}
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35); color: #fff; }
.btn-outline { background: transparent; color: var(--accent-primary); border: 1px solid var(--accent-primary); }
.btn-outline:hover { background: rgba(99, 102, 241, 0.1); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-md); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

/* ─── Hero Section ─── */
.hero {
    position: relative; padding: 160px 20px 100px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    overflow: hidden;
}
.hero-bg-effects { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: rgba(99, 102, 241, 0.3); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(139, 92, 246, 0.25); top: 50px; right: -50px; animation-delay: -2s; }
.orb-3 { width: 250px; height: 250px; background: rgba(236, 72, 153, 0.2); bottom: -50px; left: 40%; animation-delay: -4s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-15px, 10px); }
}
.hero-container { position: relative; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 8px 20px; border-radius: 50px;
    background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-primary); font-size: 14px; font-weight: 500; margin-bottom: 24px;
}
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.gradient-text { background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 28px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── Section Headers ─── */
.section-title { text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 16px; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ─── Feature Cards ─── */
.features-preview, .features-full { padding: 80px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 32px; transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary); opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ─── How It Works ─── */
.how-it-works { padding: 80px 20px; background: var(--bg-secondary); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.step-card { text-align: center; padding: 32px; }
.step-number { font-size: 56px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; display: block; }
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 14px; }

/* ─── CTA Section ─── */
.cta-section { padding: 80px 20px; }
.cta-card {
    text-align: center; padding: 64px 32px; border-radius: var(--radius-xl);
    background: var(--gradient-primary); position: relative; overflow: hidden;
}
.cta-card h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta-card p { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 16px; }
.cta-card .btn { background: #fff; color: var(--accent-primary); }
.cta-card .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ─── Page Headers ─── */
.page-header {
    padding: 120px 20px 60px; text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}
.page-header h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.page-header p { color: var(--text-secondary); font-size: 16px; }

/* ─── Auth Pages ─── */
.auth-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 20px 40px;
    background: radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}
.auth-container { width: 100%; max-width: 460px; }
.auth-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 14px; }
.auth-footer a { color: var(--accent-primary); font-weight: 600; }

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6); color: var(--text-primary); font-family: var(--font); font-size: 14px;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }
.form-row { display: flex; justify-content: space-between; align-items: center; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-link { color: var(--accent-primary); font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.otp-input { text-align: center; font-size: 28px; letter-spacing: 8px; font-weight: 700; }

/* ─── Alerts ─── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }

/* ─── Pricing ─── */
.pricing-section { padding: 40px 20px 80px; }
.current-plan-banner {
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md); padding: 16px; text-align: center; margin-bottom: 32px;
    color: var(--accent-primary); font-size: 14px;
}
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.plan-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 32px; text-align: center; transition: var(--transition); position: relative;
}
.plan-featured { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); transform: scale(1.03); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-primary); color: #fff; padding: 4px 20px;
    border-radius: 50px; font-size: 12px; font-weight: 700;
}
.plan-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plan-price { margin-bottom: 12px; }
.price-amount { font-size: 40px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.price-period { color: var(--text-muted); font-size: 14px; }
.plan-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; }
.plan-features { list-style: none; text-align: left; margin-bottom: 24px; }
.plan-features li { padding: 6px 0; color: var(--text-secondary); font-size: 13px; }

/* ─── Contact ─── */
.contact-section { padding: 40px 20px 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.contact-form-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-info { padding: 32px; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text-secondary); font-size: 14px; }

/* ─── Legal ─── */
.legal-section { padding: 40px 20px 80px; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--accent-primary); }
.legal-content p { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }

/* ─── Services ─── */
.services-section { padding: 40px 20px 80px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 32px; transition: var(--transition);
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); font-size: 14px; }

/* ─── About ─── */
.about-section { padding: 40px 20px 80px; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.about-content p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }

/* ─── Error Page ─── */
.error-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; }
.error-code { font-size: 120px; font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.error-content h2 { font-size: 24px; margin: 12px 0; }
.error-content p { color: var(--text-secondary); margin-bottom: 24px; }

/* ─── Footer ─── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 60px 20px 0; margin-top: 80px; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-text { display: block; margin-top: 8px; font-size: 18px; }
.footer-desc { color: var(--text-muted); font-size: 13px; margin-top: 12px; line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; padding: 4px 0; color: var(--text-muted); font-size: 13px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 20px 0; text-align: center; color: var(--text-muted); font-size: 12px; }

/* ─── Toast ─── */
.toast {
    position: fixed; bottom: 20px; right: 20px; padding: 14px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; z-index: 10000; transform: translateY(100px); opacity: 0;
    transition: all 0.3s ease; box-shadow: var(--shadow-md); max-width: 400px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: rgba(16, 185, 129, 0.95); color: #fff; }
.toast-error { background: rgba(239, 68, 68, 0.95); color: #fff; }
.toast-info { background: rgba(59, 130, 246, 0.95); color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-primary); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border-color); }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: block; }
    .hero-title { font-size: 32px; }
    .hero-stats { gap: 20px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan-featured { transform: none; }
}
