/* Ghetto WiFi - Mobile-First CSS */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
}

.container {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding: 0 24px;
    }
}

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

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding: 0 40px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo i {
    font-size: 28px;
    color: white;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 1rem;
    margin: 0 0 24px 0;
    opacity: 0.9;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge i {
    margin-right: 4px;
    font-size: 0.7rem;
}

/* Install App Button - Prominent */
.install-app {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.install-app:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.install-app:active {
    transform: translateY(0);
}

.install-app i {
    font-size: 1rem;
}

/* Form Section */
.form-section {
    padding: 32px 0;
    background: var(--light-color);
}

.form-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin: 0 auto;
    max-width: 480px;
}

.form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px 0;
    color: var(--dark-color);
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

.price-display {
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

.price-display h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-purchase {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-purchase:active {
    transform: translateY(0);
}

.btn-purchase:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Features Section */
.features {
    padding: 40px 0;
    background: white;
}

.features h2 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 32px 0;
    color: var(--dark-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
    }
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 20px;
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--dark-color);
}

.feature-item p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Special Offer */
.special-offer {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 32px auto;
    max-width: 480px;
    box-shadow: var(--shadow);
}

.special-offer h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.special-offer p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.code {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-family: monospace;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 24px 0;
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo i {
    font-size: 18px;
    color: white;
}

.footer p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Loading animation */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero {
        padding: 32px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .form-card {
        padding: 20px;
        margin: 0 16px;
    }

    .features {
        padding: 32px 0;
    }

    .features h2 {
        font-size: 1.5rem;
    }
    
    .install-app {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
    .form-card {
        margin: 0 8px;
    }
    
    .feature-grid {
        gap: 16px;
    }
    
    .feature-item {
        padding: 16px;
    }
}

/* Smooth transitions for all interactive elements */
button, input, select, .form-input, .form-select {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
button:focus, input:focus, select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hover effects */
.form-input:hover, .form-select:hover {
    border-color: #d1d5db;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 