/* Global Design System & Variables: Starling Murmuration Theme */
:root {
    /* Color Palette */
    --bg-main: #f5f6f8;         /* Calming, soft mist white */
    --bg-card: #ffffff;         /* Pure white for panels */
    --bg-secondary: #eaecef;    /* Soft grey for alternates */
    --text-primary: #1e1e2f;    /* Deep navy-indigo (starling upperparts) */
    --text-secondary: #5a5a75;  /* Muted slate-violet */
    --text-muted: #828299;      /* Muted secondary text */
    
    /* Accents (Murmuration Sheen) */
    --accent-iris: #6366f1;     /* Iridescent indigo */
    --accent-iris-hover: #4f46e5;
    --accent-violet: #8b5cf6;   /* Iridescent violet */
    --accent-violet-light: #f3e8ff; /* Soft lavender background */
    --border-color: #e2e5e9;    /* Clean border outline */
    
    /* UI Values */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(30, 30, 47, 0.05);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(99, 102, 241, 0.03), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 25px rgba(99, 102, 241, 0.05), 0 4px 6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 35px rgba(99, 102, 241, 0.08);
    
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.65;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
h1, h2, h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600; /* Calming weight */
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-iris));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation Structure */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-family: 'Outfit';
    font-size: 1.1rem;
    letter-spacing: 0.25px;
    text-decoration: none;
    color: var(--text-primary);
}
.logo-svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-iris);
    transition: transform 0.3s ease;
}
.logo:hover .logo-svg {
    transform: scale(1.08) rotate(-5deg);
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--accent-iris);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons (Calming, Fluid Transitions) */
button, .btn {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--accent-iris);
    color: white;
    padding: 0.65rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: var(--accent-iris-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background-color: var(--bg-main);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.65rem 1rem;
}
.btn-ghost:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}
.btn-large {
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 150px 2rem 80px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3.5rem;
}
.hero-content {
    flex: 1.1;
}
.hero-headline {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.65;
}
.hero-buttons {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
}
.trust-badge {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.trust-badge span:first-child {
    color: var(--accent-iris);
}

/* Murmuration Art & Mockup */
.hero-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
    position: relative;
}
.murmuration-art {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 260px;
    height: 260px;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.app-mockup {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.mockup-header {
    height: 38px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    background: var(--bg-main);
    font-size: 0.75rem;
    color: var(--text-muted);
    justify-content: center;
    position: relative;
}
.mac-dots {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 1rem;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.red { background: #e2e8f0; }
.dot.yellow { background: #e2e8f0; }
.dot.green { background: #e2e8f0; }

.mockup-body {
    display: flex;
    background: #fafbfb;
}
.mockup-main {
    flex: 1.7;
    padding: 1.25rem;
    background: #ffffff;
}
.mockup-sidebar {
    flex: 1.3;
    border-left: 1px solid var(--border-color);
    background: #f7f8f9;
    padding: 0.85rem;
    font-size: 0.75rem;
}

/* Features Grid */
.features-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 80px 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.15);
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    background-color: var(--accent-violet-light);
    color: var(--accent-violet);
}
.feature-icon.green {
    background-color: #ecfdf5;
    color: #059669;
}
.feature-icon.blue {
    background-color: #eff6ff;
    color: #2563eb;
}
.feature-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Global Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 2rem 25px 2rem;
    background: #fafbfb;
    margin-top: 80px;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}
.footer-brand {
    max-width: 320px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: 'Outfit';
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.05rem;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent-iris);
}
.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Document & Legal Content Styling */
.document-content {
    max-width: 740px;
    margin: 120px auto 80px auto;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}
.document-content h1 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.document-content h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.35rem;
}
.document-content p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.document-content ul, .document-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.document-content li {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.document-content strong {
    color: var(--text-primary);
}
.document-content code {
    background: var(--bg-secondary);
    color: var(--accent-violet);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
}

/* Alerts / Callout Boxes inside Documentation */
.alert-box {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
    font-size: 0.95rem;
}
.alert-box.info {
    background-color: #eff6ff;
    border-left-color: var(--accent-iris);
    color: #1e3a8a;
}
.alert-box.warning {
    background-color: #fffbeb;
    border-left-color: #d97706;
    color: #78350f;
}
.alert-box strong {
    color: inherit;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-headline {
        font-size: 2.75rem;
    }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero {
        flex-direction: column;
        padding-top: 110px;
        text-align: center;
        gap: 2rem;
    }
    .hero-subtext {
        margin: 0 auto 2rem auto;
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .trust-badge {
        justify-content: center;
        flex-wrap: wrap;
    }
    .features-section {
        grid-template-columns: 1fr;
    }
}
