@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans/GeneralSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans/GeneralSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans/GeneralSans-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans/GeneralSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary: #FF6B00;
    --primary-dark: #E05A00;
    --primary-light: #FFF3EB;
    --primary-50: #FFF8F2;
    --secondary: #1A1A2E;
    --accent: #FFB800;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --bg: #F9FAFB;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --text: #1A1A2E;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'General Sans', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.navbar-brand img { height: 40px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-white {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-white:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}
.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: inline-flex;
}
.hero-stats img { width: 40px; }
.hero-stats span { font-weight: 600; font-size: 18px; }
.hero-image { position: relative; }
.hero-image img { width: 100%; }

/* Sections */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.feature-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.feature-card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}
.feature-card-image { width: 100%; }

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.step-card img {
    height: 200px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 8px;
}
.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.step-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--primary-light); }
.faq-question::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-light);
}
.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

/* App Download */
.app-section {
    background: var(--secondary);
    color: white;
    padding: 80px 0;
}
.app-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.app-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}
.app-content p {
    color: #ccc;
    margin-bottom: 24px;
    font-size: 18px;
}
.app-buttons { display: flex; gap: 12px; }
.app-buttons img { height: 48px; }

/* Footer */
.footer {
    background: var(--secondary);
    color: #ccc;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.footer-social a:hover { background: var(--primary); }
.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-contact h4 { color: white; margin-bottom: 16px; }
.footer-contact a { color: var(--primary); }
.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.footer-bottom a { color: #999; }

/* Form Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}
.auth-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-header img { height: 36px; }
.auth-header span { font-size: 22px; font-weight: 600; }
.auth-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 436px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    background: white;
}
.auth-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}
.form-control.error { border-color: var(--error); }
.form-error { color: var(--error); font-size: 13px; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

.password-field {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
}

.btn-block { width: 100%; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}
.auth-footer a { font-weight: 600; }

.forgot-link {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 20px;
}
.forgot-link a { font-size: 14px; font-weight: 500; }

/* Alert */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #93C5FD; }

/* OTP input */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}
.otp-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}
.otp-inputs input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 49;
}
.sidebar-overlay.show { display: block; }

/* Responsive tables */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Table horizontal scroll */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table { min-width: 600px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero .container { gap: 40px; }
    .hero-content h1 { font-size: 40px; }
    .features-grid { gap: 16px; }
    .steps-grid { gap: 16px; }
    .footer-grid { gap: 30px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Navbar */
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 16px;
        z-index: 200;
    }
    .navbar-actions .btn-sm { padding: 6px 12px; font-size: 12px; }

    /* Hero */
    .hero { padding: 48px 0; }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .hero-buttons .btn-lg { width: 100%; max-width: 280px; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }

    /* Section */
    .section { padding: 48px 0; }
    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 15px; margin-bottom: 32px; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px; }

    /* SMS Coverage */
    #sms-coverage > div > div { grid-template-columns: 1fr !important; text-align: center; }
    #sms-coverage img { max-width: 280px; margin: 0 auto; display: block; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .step-card { padding: 24px 16px; }

    /* Values / about page */
    .values-grid { grid-template-columns: 1fr !important; }

    /* FAQ */
    .faq-list { padding: 0; }

    /* App Section */
    .app-section { padding: 48px 0; }
    .app-section .container { grid-template-columns: 1fr; text-align: center; }
    .app-content h2 { font-size: 26px; }
    .app-content p { font-size: 15px; }
    .app-buttons { justify-content: center; flex-wrap: wrap; }

    /* Footer */
    .footer { padding: 40px 0 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Auth */
    .auth-card { padding: 24px; border: none; box-shadow: none; }
    .auth-body { padding: 16px; }

    /* OTP */
    .otp-inputs input { width: 40px; height: 48px; font-size: 20px; }

    /* Tables */
    .table-responsive { margin: 0 -16px; border-radius: 0; }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 24px; }
    .hero-content p { font-size: 14px; }
    .section-title { font-size: 22px; }
    .feature-card { flex-direction: column; }
    .hero-stats span { font-size: 15px; }
}

@media (max-width: 480px) {
    .navbar { padding: 12px 0; }
    .navbar-brand { font-size: 18px; }
    .navbar-brand img { height: 32px; }
    .navbar-actions { gap: 6px; }
    .navbar-actions .btn-sm { padding: 6px 10px; font-size: 11px; }
    
    .steps-grid { grid-template-columns: 1fr; }
    .step-card img { height: 140px; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .auth-card { padding: 20px; }
    .auth-card h2 { font-size: 20px; }
}

@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero-content h1 { font-size: 20px; }
    .hero-buttons .btn-lg { font-size: 14px; padding: 12px 20px; }
}
