/**
 * AI Pass Design System v1.0.0
 * Shared design tokens and base styles for all aipass.one pages.
 * Source of truth: index.html (landing page)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================================
   DESIGN TOKENS
   ============================================================================ */
:root {
    --aipass-primary: #111111;
    --aipass-primary-light: #333333;
    --aipass-primary-hover: #000000;
    --aipass-accent: #4F46E5;
    --aipass-accent-light: #818CF8;
    --aipass-brand-info: #38BDF8;
    --aipass-bg: #FAFAFA;
    --aipass-white: #ffffff;
    --aipass-font: 'Outfit', sans-serif;
    --aipass-max-w: 1280px;
    --aipass-header-h: 80px;
    --aipass-radius-lg: 12px;
    --aipass-radius-full: 9999px;
    --aipass-shadow-premium: 0 20px 50px -10px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */
body {
    font-family: var(--aipass-font);
    color: var(--aipass-primary);
    background-color: var(--aipass-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ============================================================================
   HEADER (injected by aipass-header.js)
   ============================================================================ */
.aipass-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--aipass-header-h);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.aipass-site-header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.98);
}

.aipass-header-inner {
    max-width: var(--aipass-max-w);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--aipass-header-h);
}

/* Logo */
.aipass-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.aipass-logo:hover { opacity: 0.9; }

.aipass-logo-icon {
    background-color: var(--aipass-accent);
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--aipass-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.aipass-logo-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    clip-path: polygon(0 0, 41.4% 0, 70.7% 29.3%, 0 100%);
    z-index: 0;
}

.aipass-logo-icon span { position: relative; z-index: 1; }

.aipass-logo-text {
    color: var(--aipass-primary);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: normal;
    font-family: var(--aipass-font);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Navigation */
.aipass-nav {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

@media (min-width: 768px) {
    .aipass-nav { display: flex; }
}

.aipass-nav a {
    color: var(--aipass-primary-light);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.aipass-nav a:hover,
.aipass-nav a.active {
    color: var(--aipass-primary);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Actions */
.aipass-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 600;
}

.aipass-header-actions .dev-link {
    color: var(--aipass-primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
    display: none;
}

.aipass-header-actions .dev-link:hover { color: var(--aipass-primary); }

@media (min-width: 1024px) {
    .aipass-header-actions .dev-link { display: block; }
}

.aipass-header-actions .login-link {
    display: none;
    padding: 10px 20px;
    border-radius: var(--aipass-radius-full);
    color: var(--aipass-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.aipass-header-actions .login-link:hover { background-color: rgba(0,0,0,0.05); }

@media (min-width: 768px) {
    .aipass-header-actions .login-link { display: inline-flex; }
}

.aipass-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--aipass-radius-full);
    background-color: var(--aipass-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.aipass-btn-cta:hover {
    background-color: var(--aipass-primary-hover);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Mobile hamburger */
.aipass-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.aipass-hamburger:hover { background-color: rgba(0,0,0,0.05); }

.aipass-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--aipass-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .aipass-hamburger { display: none; }
}

/* Mobile menu */
.aipass-mobile-menu {
    display: none;
    position: fixed;
    top: var(--aipass-header-h);
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 16px 24px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
}

.aipass-mobile-menu.open { display: flex; }

.aipass-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--aipass-primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.aipass-mobile-menu a:hover,
.aipass-mobile-menu a.active {
    color: var(--aipass-primary);
    background-color: rgba(0,0,0,0.05);
}

/* Header body padding (so content doesn't hide behind fixed header) */
.aipass-header-spacer {
    height: var(--aipass-header-h);
}

/* ============================================================================
   FOOTER (injected by aipass-footer.js)
   ============================================================================ */
.aipass-site-footer {
    background-color: var(--aipass-primary);
    color: white;
    padding: 96px 0 48px;
    font-family: var(--aipass-font);
}

.aipass-footer-inner {
    max-width: var(--aipass-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.aipass-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

@media (min-width: 768px) {
    .aipass-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 64px;
    }
}

.aipass-footer-brand p {
    color: rgba(255,255,255,0.6);
    max-width: 384px;
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 18px;
}

.aipass-footer-brand .contact-row {
    display: flex;
    align-items: center;
    gap: 24px;
    color: white;
}

.aipass-footer-brand .contact-row a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.2s ease;
}

.aipass-footer-brand .contact-row a:hover {
    color: var(--aipass-accent-light);
}

.aipass-footer-brand .contact-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
}

/* Footer logo (inverted) */
.aipass-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 32px;
}

.aipass-footer-logo-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--aipass-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--aipass-radius-lg);
    font-weight: 700;
    font-size: 20px;
}

.aipass-footer-logo-text {
    color: white;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.05em;
    font-family: var(--aipass-font);
}

/* Footer columns */
.aipass-footer-col h4 {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.aipass-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aipass-footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.2s ease;
}

.aipass-footer-col a:hover { color: white; }

.aipass-footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.aipass-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--aipass-radius-full);
    background-color: var(--aipass-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--aipass-font);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.aipass-btn-primary:hover {
    background-color: var(--aipass-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.aipass-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--aipass-radius-full);
    background-color: transparent;
    color: var(--aipass-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--aipass-font);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.aipass-btn-secondary:hover {
    background-color: rgba(0,0,0,0.05);
}

/* ============================================================================
   GLASS CARD UTILITY
   ============================================================================ */
.aipass-glass {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.aipass-glass-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    box-shadow: var(--aipass-shadow-premium);
}

/* ============================================================================
   CODE BLOCKS (dark bg for docs)
   ============================================================================ */
.aipass-code-block {
    background-color: #0f172a;
    color: #e2e8f0;
    border-radius: var(--aipass-radius-lg);
    padding: 20px 24px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.7;
    border: 1px solid rgba(255,255,255,0.08);
}

.aipass-code-block code {
    background: none;
    padding: 0;
    font-size: inherit;
}
