/* =====================================================
   ProCRM Landing Page — Premium Design System
   ===================================================== */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #9494a8;
    --text-muted: #5a5a70;
    --accent-start: #6366f1;
    --accent-end: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --green: #22c55e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.hidden { display: none !important; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

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

.btn-ghost {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-primary-nav {
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.08), transparent 70%);
    filter: blur(60px);
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f0abfc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px var(--accent-glow), 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3), 0 8px 25px rgba(0,0,0,0.4);
}

.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--border-hover);
    transition: all 0.3s;
}

.btn-outline-lg:hover {
    border-color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeUp 0.6s ease-out 0.4s both;
}

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

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

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

/* =====================================================
   SECTIONS COMMON
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
    padding: 120px 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.feature-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--icon-color, #818cf8);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   INDUSTRIES
   ===================================================== */
.industries {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.industry-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
}

.industry-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.industry-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.industry-emoji {
    font-size: 36px;
    margin-bottom: 14px;
}

.industry-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.industry-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =====================================================
   PRICING
   ===================================================== */
.pricing {
    padding: 120px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label.active {
    color: var(--text-primary);
}

.save-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(22px);
}

.toggle-switch.active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-color: transparent;
}

.pricing-card-wrapper {
    max-width: 480px;
    margin: 0 auto 48px;
}

.pricing-card {
    position: relative;
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.pricing-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pricing-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    margin-top: 8px;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
}

.price {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #f0f0f5, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s;
}

.period {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-gst {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.pricing-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.pricing-features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.enterprise-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    gap: 24px;
}

.enterprise-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.enterprise-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* =====================================================
   DEMO / SIGNUP
   ===================================================== */
.demo-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
}

.demo-wrapper.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.demo-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.demo-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.demo-form-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.demo-form-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239494a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    font-size: 15px;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-terms {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 14px;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.active a {
        font-size: 20px;
        color: var(--text-primary);
    }

    .mobile-toggle { display: flex; }

    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 15px; }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-divider { display: none; }

    .features { padding: 80px 0; }
    .features-grid { grid-template-columns: 1fr; }

    .industries { padding: 80px 0; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }

    .pricing { padding: 80px 0; }
    .pricing-card { padding: 36px 24px; }
    .price { font-size: 44px; }

    .enterprise-banner {
        flex-direction: column;
        text-align: center;
    }

    .demo-section { padding: 80px 0; }
    .demo-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demo-form-card { padding: 28px 20px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .industries-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-primary-lg, .btn-outline-lg { width: 100%; justify-content: center; }
}

/* =====================================================
   ANIMATION STAGGERING
   ===================================================== */
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }

.industry-card:nth-child(1) { transition-delay: 0.05s; }
.industry-card:nth-child(2) { transition-delay: 0.1s; }
.industry-card:nth-child(3) { transition-delay: 0.15s; }
.industry-card:nth-child(4) { transition-delay: 0.2s; }
.industry-card:nth-child(5) { transition-delay: 0.25s; }
.industry-card:nth-child(6) { transition-delay: 0.3s; }
.industry-card:nth-child(7) { transition-delay: 0.35s; }
.industry-card:nth-child(8) { transition-delay: 0.4s; }
