:root {
    --bg-color: #F9F9FB;
    --surface-color: #FFFFFF;
    --charcoal: #1C1C1E;
    --secondary-text: #8E8E93;
    --accent: #4F6CFF;
    --accent-alt: #3A55DD;
    --card-border: rgba(0, 0, 0, 0.05);
    --shadow-subtle: 0 4px 24px rgba(0, 0, 0, 0.04);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Newsreader', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--charcoal);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(249, 249, 251, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-text);
}

.nav-links a:hover {
    color: var(--charcoal);
    transition: color 0.2s ease;
}

/* Buttons (Matching iOS App RefindGlassPrimaryButtonStyle) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.95rem;
    /* Simulate the inner top highlight we have in iOS */
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 4px 12px rgba(79, 108, 255, 0.2);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 6px 16px rgba(79, 108, 255, 0.3);
}

.nav-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    color: white !important;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(79, 108, 255, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--charcoal);
}

.hero-title span {
    color: var(--secondary-text);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Features */
.features {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

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

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

.feature-card {
    background: var(--surface-color);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(79, 108, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* Infinite Section */
.infinite-section {
    padding: 80px 0;
}

.infinite-card {
    background: var(--charcoal);
    color: white;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle dark gradient mimicking the iOS card */
.infinite-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.infinite-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.infinite-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.infinite-card p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
}

.infinite-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.infinite-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 32px;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    background: var(--surface-color);
}

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

.footer-brand p {
    color: var(--secondary-text);
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2, .cta-section h2 {
        font-size: 2.2rem;
    }
    
    .infinite-card {
        padding: 40px 24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .nav-links a:not(.nav-btn) {
        display: none;
    }
}
