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

:root {
    --primary: #007AFF;
    --primary-hover: #0051D5;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #515154;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #FBFBFD;
    --border-light: #D2D2D7;
    --border-ultra-light: #E8E8ED;
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
    --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-stack);
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
}

h2 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-primary);
}

h3 {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 600;
    letter-spacing: 0.007em;
}

h4 {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
}

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

/* Container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-ultra-light);
    z-index: 9999;
    height: 52px;
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

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

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 400;
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    outline: none;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--primary);
    position: relative;
}

.btn-secondary::after {
    content: '↗';
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-secondary:hover::after {
    transform: translate(2px, -2px);
}

/* Footer */
footer {
    padding: 48px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-ultra-light);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-copyright {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }
}

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

.animate-in {
    animation: fadeIn 0.6s ease-out;
}

/* Page-specific styles for index.html */

mark {
    background-color: #fffb0069;
}

/* Hero Section */
.hero {
    padding: 52px 0 0 0;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.hero-content {
    padding: 120px 0 0 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-primary);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    border: 1px solid var(--border-ultra-light);
}

.hero h1 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero .subtitle {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Hero Visual */
.hero-visual {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.hero-visual img,
.hero-visual-placeholder {
    width: 100%;
    border-radius: 8px 8px 0 0;
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
}

.hero-visual-placeholder {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 18px;
    border: 1px solid var(--border-ultra-light);
}

/* Section Base */
section {
    padding: 88px 0;
}

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

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 21px;
    line-height: 1.381;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* Problem Cards */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--border-ultra-light);
    transition: all 0.2s ease;
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.problem-card h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.problem-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Mental Model Section */
.mental-model-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: center;
}

.mental-model-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--border-ultra-light);
    text-align: center;
}

.mental-model-card h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.mental-model-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.mental-model-connector {
    font-size: 24px;
    color: var(--text-secondary);
    text-align: center;
}

.mental-model-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px 48px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-content h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

/* Query Builder */
.query-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.query-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.query-item {
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-ultra-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.query-item:hover,
.query-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.query-item h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.query-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

.query-preview {
    background: var(--text-primary);
    color: #00C896;
    padding: 24px;
    border-radius: 12px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
}

/* Pricing */
.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 48px;
    text-align: center;
}

.price-amount {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.price-period {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-ultra-light);
    color: var(--text-primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 600;
    font-size: 16px;
}

.pricing-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--border-ultra-light);
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.author-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 88px 0;
    background: var(--text-primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 21px;
    opacity: 0.8;
    margin-bottom: 36px;
}

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

.cta-section .btn-primary:hover {
    background: var(--bg-secondary);
}

.guarantee {
    font-size: 14px;
    opacity: 0.6;
    margin-top: 24px;
}

/* Responsive adjustments for index features */
@media (max-width: 768px) {
    .hero-content {
        padding: 80px 0 0 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .query-showcase {
        grid-template-columns: 1fr;
    }

    .mental-model-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Page-specific styles for privacy.html */
.content {
    padding-top: 120px;
    padding-bottom: 88px;
    min-height: calc(100vh - 150px);
}

.content h1 {
    margin-bottom: 24px;
}

.content h2 {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 600;
    letter-spacing: 0.007em;
    margin-top: 48px;
    margin-bottom: 16px;
}

.content h3 {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
    margin-top: 32px;
    margin-bottom: 12px;
}

.content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.content ul, .content ol {
    margin-bottom: 20px;
    margin-left: 24px;
}

.content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}