:root {
    --bg-body: #ffffff;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3; /* Classic Apple Blue */
    --accent-hover: #0077ed;
    --surface: #f5f5f7;
    --surface-hover: #e8e8ed;
    --nav-height: 60px;
}

/* --- Global Reset & Typography --- */
* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: #fbfcfd; /* Cool off-white */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Abstract Background Blobs */
body::before, body::after {
    content: "";
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
}

body::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

body::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, #00d2ff 0%, transparent 70%);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    font-weight: 600;
    font-size: 19px;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a { color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
/* Specific active state logic could go here if needed */

/* --- Footer --- */
footer {
    background: transparent;
    padding: 60px 0 40px;
    font-size: 12px;
    color: #86868b;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; /* Start hidden */
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- Index Page Specifics --- */

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
}

.app-icon-wrapper {
    margin-bottom: 40px;
    display: inline-block;
    position: relative;
}

.app-icon {
    width: 128px;
    height: 128px;
    background: linear-gradient(180deg, #ffffff 0%, #e5e5ea 100%);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: #333;
    position: relative;
    z-index: 2;
    object-fit: cover; /* Ensure image fits well */
}

/* Subtle glow behind icon */
.app-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0,113,227,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

h1.hero-title {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 24px;
    background: -webkit-linear-gradient(90deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.hero-subtitle {
    font-size: 24px;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent);
    color: white;
    font-size: 17px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 980px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.35);
}

/* Trust/Privacy Banner */
.trust-banner {
    margin: 40px auto 80px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Subtle accent line on top */
.trust-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.trust-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868b;
    margin-bottom: 12px;
    display: block;
}

.trust-heading {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.trust-desc {
    font-size: 17px;
    color: #6e6e73;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
    background-color: #ffffff;
    /* Abstract Mesh Gradient Background - Cool Blues Only */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 113, 227, 0.04) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(0, 180, 255, 0.05) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 113, 227, 0.04) 0, transparent 50%);
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.02),
        0 20px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.03),
        0 30px 60px rgba(0, 0, 0, 0.1);
}

.icon-container {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    /* Icon Color styling */
    color: var(--accent);
}

.icon-container svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.feature-title {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Final CTA */
.bottom-cta {
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    h1.hero-title { font-size: 42px; }
    p.hero-subtitle { font-size: 20px; }
    .hero { padding-top: 120px; }
    .grid { grid-template-columns: 1fr; }
}


/* --- Markdown / Privacy Page Specifics --- */
.content-wrapper {
    padding-top: 120px; /* Space for fixed nav */
    padding-bottom: 100px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-wrapper.loaded {
    opacity: 1;
}

/* Markdown Content Styling */
#markdown-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

#markdown-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#markdown-content h3 {
    font-size: 19px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

#markdown-content p { margin-bottom: 20px; color: #333; line-height: 1.6; }
#markdown-content ul { margin-bottom: 24px; padding-left: 20px; }
#markdown-content li { margin-bottom: 10px; color: #333; }
#markdown-content a { color: var(--accent); text-decoration: none; }
#markdown-content a:hover { text-decoration: underline; }

#markdown-content strong { font-weight: 600; color: var(--text-main); }