@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    background: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
}

.logo span {
    color: #8532d1;
}

.nav-links a {
    margin-left: 2.5rem;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #111;
}

.hero {
    background: #ffffff;
    color: #111;
    padding: 10rem 2rem 5rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-content .highlight {
    color: #8532d1;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #666;
    line-height: 1.8;
}

.hero-subtext {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero-left {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero-left h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #111;
}

.text-accent {
    color: #0d9488;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
}

.hero-description strong {
    color: #111;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
}

.hero-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding: 7rem 2rem 3rem;
        gap: 2rem;
    }
    
    .hero-left {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-left h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        text-align: left;
        display: inline-block;
    }
    
    .hero-right {
        order: -1;
    }
    
    .hero-image {
        max-width: 400px;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #111;
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #8532d1;
    color: white;
}

.btn-secondary:hover {
    background: #8532d1;
}

.btn-outline {
    background: transparent;
    color: #111;
    border: 2px solid #e5e5e5;
}

.btn-outline:hover {
    border-color: #111;
}

.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #8532d1;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

.giveaway-banner {
    background: linear-gradient(135deg, #8532d1 0%, #8b5cf6 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 24px;
}

.giveaway-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.giveaway-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fafafa;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

.cta-section {
    background: #111;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    color: #999;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-section .btn-primary {
    background: white;
    color: #111;
}

.cta-section .btn-primary:hover {
    background: #f5f5f5;
}

footer {
    padding: 3rem 2rem;
    text-align: center;
    background: #fafafa;
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 7rem 2rem 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group .hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8532d1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #bbb;
}

.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.form-card h2 {
    margin-bottom: 0.5rem;
    color: #111;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-card .subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkin-page {
    min-height: 100vh;
    background: #ffffff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkin-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.checkin-card h1 {
    color: #111;
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.checkin-card .business-name {
    color: #8532d1;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.promo-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.promo-badge h3 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

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

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

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.stat-card .number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #8532d1;
}

.stat-card .label {
    color: #999;
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
}

.data-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: #fafafa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.success-page {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.qr-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    display: inline-block;
    margin: 2rem 0;
    border: 1px solid #f0f0f0;
}

.qr-container img {
    max-width: 200px;
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
}

.login-box {
    max-width: 400px;
    margin: 8rem auto 4rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-box .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    /* Check-in page mobile */
    .checkin-page {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .checkin-card {
        padding: 1.5rem;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .checkin-card h1 {
        font-size: 1.5rem;
    }
    
    .checkin-card .business-name {
        font-size: 1.1rem;
    }
    
    .promo-badge {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .promo-badge h3 {
        font-size: 1rem;
    }
    
    .promo-badge p {
        font-size: 0.875rem;
    }
    
    /* Form improvements for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Container adjustments */
    .container {
        padding: 5rem 1rem 2rem;
    }
    
    .form-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .form-card h2 {
        font-size: 1.25rem;
    }
    
    /* Dashboard mobile */
    .dashboard-container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .stat-card .number {
        font-size: 1.75rem;
    }
    
    .stat-card .label {
        font-size: 0.75rem;
    }
    
    /* Table mobile - horizontal scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Login box mobile */
    .login-box {
        margin: 5rem 1rem 2rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    /* QR container mobile */
    .qr-container {
        padding: 1.5rem;
    }
    
    .qr-container img {
        max-width: 160px;
    }
    
    /* Page header mobile */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* Giveaway banner mobile */
    .giveaway-banner {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
        margin: 2rem 0;
    }
    
    .giveaway-banner h2 {
        font-size: 1.75rem;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    /* Section header mobile */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Hero buttons stack on mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Alert mobile */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .checkin-card {
        padding: 1.25rem;
    }
    
    .checkin-card h1 {
        font-size: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        padding: 1.25rem;
    }
}
