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

:root {
    --bg-color: #f8fafc; /* Clean light gray background */
    --surface-color: #ffffff; /* White cards and containers */
    --surface-border: #e2e8f0; /* Subtle borders */
    --surface-hover: #f1f5f9; /* Light hover state */
    --primary: #0f172a; /* Deep corporate slate for main brand */
    --secondary: #ea580c; /* Accent industrial orange */
    --accent: #2563eb; /* Corporate blue for links/actions */
    --text-main: #334155; /* highly readable dark charcoal */
    --text-muted: #64748b; /* Muted gray for body text */
    --transition-snappy: 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Header / Nav */
header {
    padding: 1.25rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-color);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-snappy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.brand-logo:hover {
    color: var(--accent);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    flex: 1;
}

/* Index Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--primary);
}

.hero .motto {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Document Portal Links Layout */
.link-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.card-link {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-snappy);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.card-link h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.card-link p {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Markdown-like Document Pages */
.doc-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.doc-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 2rem;
}

.doc-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--primary);
    font-weight: 800;
}

.doc-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.doc-content h2 {
    margin: 2.5rem 0 1rem;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 600;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 0.5rem;
}

.doc-content h3 {
    margin: 1.75rem 0 0.75rem;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 600;
}

.doc-content p, .doc-content li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.doc-content strong {
    color: var(--primary);
    font-weight: 600;
}

.doc-content ul, .doc-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color var(--transition-snappy);
    font-weight: 500;
    font-size: 0.95rem;
}

.back-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--surface-color);
    border-top: 1px solid var(--surface-border);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .doc-container {
        padding: 2rem;
    }
}
