/* =========================================
   DESIGN TOKENS & VARIABLES - APPLE MINIMALIST THEME
   ========================================= */
:root {
    /* Apple Colors */
    --clr-bg: #fbfbfd;
    --clr-surface: #ffffff;
    --clr-surface-hover: #f5f5f7;
    
    --clr-text: #1d1d1f;
    --clr-text-light: #86868b;
    --clr-primary: #0066cc; /* Apple Blue */
    --clr-primary-hover: #0071e3;
    --clr-border: #d2d2d7;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Menlo", monospace;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --radius: 18px; /* Apple Card Radius */
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--clr-text);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 980px; /* Classic Apple max-width */
    margin: 0 auto;
    padding: 0 22px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--clr-text);
    font-weight: 600;
    letter-spacing: -0.015em;
}

p {
    margin-bottom: 1.2rem;
    color: var(--clr-text);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

li {
    margin-bottom: 0.5rem;
}

/* =========================================
   COMPONENTS
   ========================================= */
/* Buttons - Apple Pill Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 980px;
    font-weight: 400;
    font-size: 17px;
    letter-spacing: -0.022em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--clr-text);
    border: 1px solid var(--clr-text);
}

.btn-secondary:hover {
    background: var(--clr-text);
    color: white;
}

/* Navigation - Apple Global Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.16);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1000px;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--clr-text);
    letter-spacing: -0.01em;
}

.logo span {
    font-weight: 400;
    color: var(--clr-text-light);
}

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

.nav-links a {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0,0,0,0.8);
    letter-spacing: -0.01em;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--clr-primary);
}

.navbar .btn {
    padding: 4px 12px;
    font-size: 12px;
    height: 24px;
}

/* PAGE CONTENT */
.page-header {
    padding: 120px 0 40px;
    text-align: center;
    background: var(--clr-bg);
}

.page-title {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 400;
    letter-spacing: 0.009em;
    color: var(--clr-text-light);
}

.page-content {
    padding: 40px 0;
    max-width: 700px; /* Optimal reading width */
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.47059;
}

.page-content h2 {
    font-size: 32px;
    margin: 48px 0 24px;
}

.page-content h3 {
    font-size: 24px;
    margin: 32px 0 16px;
}

/* Markdown Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--clr-border);
}

th {
    font-weight: 600;
    color: var(--clr-text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

blockquote {
    border-left: 3px solid var(--clr-primary);
    padding: 16px 24px;
    background: var(--clr-surface);
    margin: 32px 0;
    font-size: 19px;
    line-height: 1.4211;
    font-weight: 600;
    color: var(--clr-text);
}

/* Code Blocks */
pre {
    background: #f5f5f7;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--clr-border);
    margin: 24px 0;
}
code {
    font-family: var(--font-mono);
    color: #c92a2a;
    font-size: 14px;
}
pre code {
    color: var(--clr-text);
}
p code {
    background: #f5f5f7;
    padding: 2px 6px;
    border-radius: 4px;
}

/* =========================================
   HOME PAGE SPECIFIC
   ========================================= */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: var(--clr-bg);
}

.badge {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #bf4800; /* Apple-style orange highlight */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--clr-primary);
}

.hero-subtitle {
    font-size: 28px;
    line-height: 1.14286;
    font-weight: 400;
    letter-spacing: 0.007em;
    color: var(--clr-text-light);
    margin: 0 auto 40px;
    max-width: 700px;
}

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

/* Features Grid */
.features {
    padding: 80px 0;
    background: var(--clr-surface);
}

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

.section-header h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
}

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

.card {
    background: #fbfbfd;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    font-size: 17px;
    color: var(--clr-text-light);
    margin-bottom: 20px;
}

.card-link {
    color: var(--clr-primary);
    font-size: 17px;
    font-weight: 400;
}

.card-link:hover {
    text-decoration: underline;
}

/* Footer - Apple Style Directory */
footer {
    background: #f5f5f7;
    padding: 60px 0 20px;
    border-top: 1px solid var(--clr-border);
    font-size: 12px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--clr-border);
}

.brand-col p {
    color: var(--clr-text-light);
    margin-top: 8px;
    font-size: 12px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: var(--clr-text-light);
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--clr-text);
}

.footer-bottom {
    color: var(--clr-text-light);
    display: flex;
    justify-content: space-between;
}

/* Cookie Banner - Apple Minimal */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--clr-border);
    padding: 16px 0;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cookie-banner.show {
    bottom: 0;
}

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

.cookie-content p {
    margin: 0;
    font-size: 12px;
    color: var(--clr-text-light);
}

.cookie-content a {
    color: var(--clr-primary);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 48px;
    }
    .page-title {
        font-size: 40px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}
