/* Base Styles */
:root {
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --accent-color: #0066cc;
    --border-color: #d2d2d7;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f7;
        --text-secondary: #a1a1a6;
        --bg-color: #000000;
        --bg-secondary: #1d1d1f;
        --nav-bg: rgba(0, 0, 0, 0.8);
        --accent-color: #2997ff;
        --border-color: #424245;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Typography */
h1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

p {
    font-size: 21px;
    line-height: 1.38105;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--text-secondary);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.nav-logo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 12px;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    opacity: 1;
    font-weight: 600;
}

/* Sections */
section {
    padding: 100px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero {
    margin-top: 52px;
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.dark-section {
    background-color: var(--bg-secondary);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    margin-top: 30px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #0077ed;
    color: #fff;
    transform: scale(1.02);
}

/* Grid Layouts for features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

@media (prefers-color-scheme: dark) {
    .feature-card {
        background-color: #2c2c2e;
        box-shadow: none;
    }
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 17px;
    color: var(--text-secondary);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0;
}

.footer-content a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    p { font-size: 18px; }
    
    .nav-links {
        gap: 20px;
    }
}
