/**
 * HelpGate Landing Page Styles
 * Development by Niloy (+8801947527775)
 */

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

:root {
    --primary: #1E40AF;
    --primary-dark: #1E3A8A;
    --primary-light: #3B82F6;
    --accent: #6366F1;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.hg-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.hg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.hg-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.hg-logo-icon { font-size: 1.5rem; }
.hg-logo-text { font-weight: 400; }
.hg-logo-text strong { font-weight: 700; color: var(--primary); }

.hg-logo-img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}
.hg-logo-footer-img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hg-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hg-nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.hg-nav-link:hover { color: var(--primary); }

.hg-btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(30,64,175,0.3);
}
.hg-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30,64,175,0.4);
}

.hg-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hg-menu-toggle span {
    width: 24px; height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hg-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #F0F4FF 0%, #E8EDFF 50%, #F5F3FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hg-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

.hg-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.1;
}
.hg-hero-title span { color: var(--primary); }

.hg-hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hg-features-mini {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hg-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hg-feature-icon {
    width: 48px; height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.hg-feature-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-900);
}
.hg-feature-item p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* Login Card */
.hg-login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.hg-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hg-login-header {
    text-align: center;
    margin-bottom: 32px;
}
.hg-login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.hg-login-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.hg-form-group {
    margin-bottom: 20px;
}
.hg-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.hg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hg-input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    z-index: 1;
}

.hg-input-wrap input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--gray-50);
}
.hg-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(30,64,175,0.1);
}

.hg-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    opacity: 0.5;
    transition: var(--transition);
}
.hg-toggle-pass:hover { opacity: 1; }

.hg-error-msg {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--error);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.hg-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(30,64,175,0.3);
}
.hg-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30,64,175,0.4);
}
.hg-btn-primary:active { transform: translateY(0); }
.hg-btn-full { width: 100%; }

.hg-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hg-login-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Sections */
.hg-section {
    padding: 80px 0;
}
.hg-section-alt {
    background: var(--gray-50);
}

.hg-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--gray-900);
}
.hg-section-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* About Grid */
.hg-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.hg-about-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.hg-about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.hg-about-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.hg-about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}
.hg-about-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Steps */
.hg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.hg-step {
    text-align: center;
    flex: 1;
    max-width: 280px;
}
.hg-step-num {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}
.hg-step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.hg-step p {
    font-size: 0.9rem;
    color: var(--gray-600);
}
.hg-step-arrow {
    font-size: 2rem;
    color: var(--gray-300);
}

/* FAQ */
.hg-faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.hg-faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: white;
}
.hg-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
}
.hg-faq-question:hover { background: var(--gray-50); }
.hg-faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    font-weight: 300;
}
.hg-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.hg-faq-answer p {
    padding: 0 24px 18px;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}
.hg-faq-item.active .hg-faq-answer { max-height: 200px; }
.hg-faq-item.active .hg-faq-icon { transform: rotate(45deg); }

/* Footer */
.hg-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 0;
}
.hg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
}
.hg-footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
}
.hg-footer-col a {
    display: block;
    color: var(--gray-400, #9CA3AF);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}
.hg-footer-col a:hover { color: white; }
.hg-footer-col p { font-size: 0.9rem; margin-bottom: 8px; }
.hg-logo-footer { margin-bottom: 16px; }
.hg-logo-footer .hg-logo-text { color: white; }

.hg-footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.hg-credit { color: var(--gray-500); }
.hg-credit strong { color: var(--primary-light); }

/* Responsive */
@media (max-width: 1024px) {
    .hg-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hg-hero-subtitle { margin: 0 auto 40px; }
    .hg-login-card { max-width: 420px; margin: 0 auto; }
    .hg-features-mini { align-items: center; }
}

@media (max-width: 768px) {
    .hg-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; padding: 20px; border-bottom: 1px solid var(--gray-200); gap: 16px; }
    .hg-nav.active { display: flex; }
    .hg-menu-toggle { display: flex; }
    .hg-hero { padding: 100px 0 60px; }
    .hg-hero-title { font-size: 2.5rem; }
    .hg-login-card { padding: 28px; }
    .hg-about-grid { grid-template-columns: 1fr; }
    .hg-steps { flex-direction: column; }
    .hg-step-arrow { transform: rotate(90deg); }
    .hg-footer-grid { grid-template-columns: 1fr; }
    .hg-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
