/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #E6F0FA;
    --secondary: #00A3E0;
    --accent: #FF6B35;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.nav-brand i {
    color: var(--primary);
    font-size: 28px;
}

.brand-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.trust-item i {
    color: var(--success);
}

/* ===== Dashboard Mockup ===== */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }

.mockup-title {
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
}

.mockup-content {
    padding: 24px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-card:nth-child(1) { background: var(--primary-light); }
.stat-card:nth-child(2) { background: #D1FAE5; }
.stat-card:nth-child(3) { background: #FEF3C7; }
.stat-card:nth-child(4) { background: #FEE2E2; }

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
}

.mockup-table {
    background: var(--light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

.table-row:last-child {
    border-bottom: none;
}

.status-hadir { color: var(--success); font-weight: 600; }
.status-terlambat { color: var(--warning); font-weight: 600; }

/* ===== Scan Illustration ===== */
.scan-illustration {
    position: absolute;
    bottom: -30px;
    right: -30px;
}

.student-card {
    position: relative;
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 36px;
    color: var(--white);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-header p {
    font-size: 16px;
    color: var(--gray);
}

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

.feature-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

/* ===== How It Works Section ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--light);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 24px;
}

.step-icon i {
    font-size: 32px;
    color: var(--primary);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.step-card p {
    font-size: 14px;
    color: var(--gray);
}

.step-connector {
    color: var(--primary);
    font-size: 24px;
}

/* ===== Benefits Section ===== */
.benefits {
    padding: 100px 0;
    background: var(--white);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.benefits-text > p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefits-list li {
    display: flex;
    gap: 20px;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 20px;
    color: var(--primary);
}

.benefits-list h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.benefits-list p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

.benefit-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-stat-item {
    text-align: center;
}

.stat-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
}

.benefit-stat-item p {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

/* ===== Pricing Section ===== */
.pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

.pricing-content {
    display: flex;
    justify-content: center;
}

.pricing-card {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.pricing-card.featured {
    border: 3px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: var(--white);
    padding: 8px 40px;
    font-size: 13px;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.currency {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

.price {
    font-size: 48px;
    font-weight: 700;
}

.pricing-header p {
    font-size: 14px;
    opacity: 0.9;
}

.pricing-features {
    padding: 32px 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
    color: var(--dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
    font-size: 18px;
}

.pricing-cta {
    padding: 0 40px 40px;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    padding: 16px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: var(--radius-md);
}

.pricing-note p {
    font-size: 14px;
    color: var(--gray);
}

.pricing-note i {
    color: var(--primary);
    margin-right: 8px;
}

/* ===== Final CTA Section ===== */
.final-cta {
    padding: 100px 0;
    background: var(--primary);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp.btn-large {
    background: var(--white);
    color: #25D366;
}

.btn-whatsapp.btn-large:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-outline.btn-large {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline.btn-large:hover {
    background: var(--white);
    color: var(--primary);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 16px 0 24px;
    font-size: 15px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul li i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Floating WhatsApp ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.floating-whatsapp i {
    font-size: 28px;
    color: var(--white);
}

.floating-whatsapp .tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-wrap: wrap;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .benefits-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 40px 24px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .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(7px, -7px);
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .mockup-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .benefit-stats {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .benefits-text h2 {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1.5fr 1fr 0.8fr 0.8fr;
        font-size: 11px;
    }
}

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

    .hero-text h1 {
        font-size: 26px;
    }

    .mockup-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .mockup-content {
        padding: 16px;
    }
}
