:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-light: #666666;
    --primary-color: #0052cc; /* Brand Blue */
    --primary-hover: #0043a6;
    --secondary-bg: #f9fafb;
    --border-color: #e5e7eb;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-light); margin-bottom: 1.5rem; }

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

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

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Effect Cursor */
.cursor {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: var(--text-color);
    animation: blink 1s step-end infinite;
    margin-left: 8px;
    vertical-align: -0.15em;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Layout */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.03em;
}

.brand-hi {
    color: var(--text-color);
    transition: color 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-suo {
    color: var(--text-color);
    max-width: 100px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scrolled State */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 0.8rem 0;
}

header.scrolled .brand-hi {
    color: var(--primary-color);
}

header.scrolled .brand-suo {
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-image {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
}

.hero-image svg {
    width: 100%;
    height: auto;
    display: block;
}

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

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

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 82, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Testimonials/Stats Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.user-avatar {
    width: 64px;
    height: 64px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-light);
}

/* Download Section */
.download {
    padding: 100px 0;
    text-align: center;
    background-color: var(--text-color);
    color: white;
}

.download h2 {
    color: white;
}

.download p {
    color: #999;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    /* Remove background color here, use modal-bg instead */
    
    /* Flex layout for centering */
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
}

.modal-bg {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fefefe; /* Modal background color */
    top: var(--click-y, 50%);
    left: var(--click-x, 50%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
    pointer-events: none;
}

.modal.show .modal-bg {
    transform: translate(-50%, -50%) scale(150); /* Expand to cover screen surely */
}

.modal-content {
    /* Transparent background because modal-bg provides it */
    background-color: transparent; 
    margin: auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    
    /* Content Animation */
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.2s; /* Wait longer for bg to expand */
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Add a separate overlay for dimming the rest of the page */
.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -2;
}

.modal.show::before {
    opacity: 1;
}

.modal-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background-color: rgba(0, 82, 204, 0.05);
    border-radius: 50%;
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.modal p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.close-btn {
    width: 100%;
    border-radius: 8px;
    padding: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    nav { display: none; } /* Mobile menu simplified for now */
    .stats-grid { grid-template-columns: 1fr; }
}
