:root {
    /* Colors */
    --primary-blue: #3B82F6;
    --primary-blue-hover: #2563EB;
    --primary-blue-light: #DBEAFE;
    
    --safe-green: #10B981;
    --safe-green-light: #D1FAE5;
    
    --warning-red: #EF4444;
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-light: #94A3B8;
    
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    /* Typography */
    --font-heading: 'Baloo 2', cursive, sans-serif;
    --font-body: 'Comic Neue', 'Inter', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 1.125rem;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Utility Classes */
.text-highlight { color: var(--primary-blue); }
.text-green { color: var(--safe-green); }
.text-red { color: var(--warning-red); }
.text-muted { color: var(--text-muted); }
.bg-light { background-color: #FFFFFF; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.pulse-animation:hover {
    animation: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-main) 0%, #E0F2FE 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--safe-green-light);
    color: var(--safe-green);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.trust-text {
    margin-top: 1rem;
    font-size: 0.875rem !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Notice Card */
.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 2.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.notice-card:hover {
    transform: translateY(-2px) translateX(4px);
    box-shadow: 0 12px 24px -10px rgba(59, 130, 246, 0.15);
}

.hero-visual .notice-card {
    margin-top: 3rem;
    margin-bottom: 0;
    transform: rotate(-1deg); /* Slight counter-rotation for visual interest */
}

.hero-visual .notice-card:hover {
    transform: translateY(-2px) rotate(0deg);
}

.notice-icon {
    flex-shrink: 0;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.notice-text p {
    font-size: 0.95rem !important;
    color: var(--text-main) !important;
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
}

.icon-small {
    width: 16px;
    height: 16px;
}

/* Mockup */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
}

.mockup-card {
    overflow: hidden;
    transform: rotate(2deg);
    transition: var(--transition);
}

.mockup-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.mockup-header {
    background-color: #F1F5F9;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

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

.mockup-dots span:nth-child(1) { background-color: #EF4444; }
.mockup-dots span:nth-child(2) { background-color: #F59E0B; }
.mockup-dots span:nth-child(3) { background-color: #10B981; }

.mockup-url {
    background-color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-light);
    flex-grow: 1;
    text-align: center;
}

.mockup-body {
    padding: 1.5rem;
}

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

.video-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.thumbnail {
    background-color: #E2E8F0;
    border-radius: var(--radius-md);
    height: 100px;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.thumbnail.blur {
    background-color: #FEE2E2;
    color: var(--warning-red);
    font-weight: 700;
    font-size: 0.875rem;
    text-align: center;
}

.info {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Features */
.features, .how-it-works {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.25rem;
}

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

.feature-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #F1F5F9;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-blue { background-color: var(--primary-blue-light); color: var(--primary-blue); }
.icon-green { background-color: var(--safe-green-light); color: var(--safe-green); }
.icon-purple { background-color: #F3E8FF; color: #9333EA; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* How It Works */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 10px var(--primary-blue-light);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
}

.step-connector {
    flex: 0 0 100px;
    height: 4px;
    background-color: var(--primary-blue-light);
    margin-top: 30px;
    border-radius: 2px;
}

/* CTA Section */
.final-cta {
    padding: 0 0 100px;
}

.cta-card {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--safe-green-light) 0%, #E0F2FE 100%);
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--safe-green);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        display: none;
    }
    
    .step {
        margin-bottom: 3rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    z-index: 1001;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: #F1F5F9;
    color: var(--warning-red);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.modal-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.install-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background-color: var(--bg-main);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
}

.step-badge {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-color: var(--primary-blue);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

.step-info strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.step-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.highlight-code {
    background-color: #E2E8F0;
    color: var(--warning-red);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

.download-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Video Modal Styles */
.video-modal-content {
    max-width: 800px;
    padding: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: #000;
    margin-bottom: 1.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

.video-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E2E8F0;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #E2E8F0;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #CBD5E1;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@media (max-width: 600px) {
    .video-modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-modal-footer .btn {
        width: 100%;
    }
}

/* External Video Link Styles */
.video-thumbnail-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
}

.video-thumbnail-link:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button-overlay i {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.play-button-overlay span {
    font-weight: 600;
    font-size: 1.125rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(220, 38, 38, 0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}
