:root {
    --bg-body: #ffffff;
    --bg-alt: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: #d2d2d7;
    --nav-height: 44px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 17px;
}

/* Global Nav */
.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid rgba(0,0,0,0.16);
    transition: background-color 0.3s ease;
}

.global-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.btn-nav {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-nav.primary {
    background: var(--text-primary);
    color: white;
}

.btn-nav.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 8px rgba(0,113,227,0.3);
}

.btn-nav.secondary {
    background: #e8e8ed;
    color: var(--text-primary);
}

.btn-nav.secondary:hover {
    background: #d2d2d7;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    text-align: center;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0,113,227,0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.004em;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.btn-hero {
    font-size: 17px;
    padding: 14px 32px;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0,0,0.5,1);
    font-weight: 500;
}

.btn-hero:hover {
    transform: scale(1.05);
}

.btn-hero.primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(0,113,227,0.3);
}

.btn-hero.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(0,113,227,0.4);
}

.btn-hero.secondary {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
    background: rgba(0,0,0,0.1);
}

.btn-hero.link {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    background: transparent;
}

.btn-hero.link:hover {
    text-decoration: underline;
    background: transparent;
    transform: none;
}

/* Feature Grid (Bento) */
.features-section {
    background: var(--bg-alt);
    padding: 120px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 80px;
    letter-spacing: -0.003em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background: white;
    border-radius: 28px;
    padding: 48px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card.large {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.5;
}

.card-icon {
    font-size: 56px;
    margin-bottom: 24px;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #5ac8fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
footer {
    background: var(--bg-alt);
    padding: 80px 0 40px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .card.large {
        grid-column: span 1;
        flex-direction: column;
        text-align: left;
    }
    .hero h1 {
        font-size: 40px;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .nav-menu {
        display: none;
    }
}
