:root {
    --brand-primary: #0079C1;
    --brand-secondary: #00205B;
    --brand-dark: #001233;
    --brand-light: #F4F7FA;
    --brand-white: #FFFFFF;
    --accent: #ED1C24;
    --text-main: #1A1A1A;
    --text-muted: #5F6368;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.04);
    --header-height: 72px;
    --container-width: 1140px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Unified Navbar with Glassmorphism */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--brand-primary);
    border-radius: 50%;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.lang-toggle {
    padding: 8px 16px;
    border: 1.5px solid var(--brand-primary);
    border-radius: 100px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Page Structure */
main {
    padding-top: calc(var(--header-height) + 40px);
}

/* Hero Style for Index */
.hero {
    background: radial-gradient(circle at top right, #005A91, var(--brand-secondary));
    color: white;
    padding: 100px 0;
    border-radius: 24px;
    margin-bottom: 60px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 800px;
}

/* Semantic Content Blocks */
.ai-summary-block {
    background: var(--brand-light);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 48px;
    border: 1px solid var(--border-subtle);
    position: relative;
}

.ai-summary-block h2 {
    font-size: 1.25rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-summary-block ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.ai-summary-block li {
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
}

.ai-summary-block li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 700;
}

.faq-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: var(--transition);
    cursor: default;
}

.faq-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.faq-card strong {
    color: var(--brand-secondary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

/* Modern Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #FAFBFC;
    color: var(--brand-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

/* Sidebar */
.sidebar-box {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-box h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Sticky TOC Styles */
.sticky-toc {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
}

.sticky-toc h3 {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--brand-secondary);
}

.sticky-toc ul {
    list-style: none;
    padding: 0;
}

.sticky-toc li {
    margin-bottom: 8px;
}

.sticky-toc a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.sticky-toc a:hover, .sticky-toc a.active {
    color: var(--brand-primary);
    padding-left: 8px;
    border-left: 2px solid var(--brand-primary);
}

/* AI Summary unique title helper */
.ai-summary-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin-bottom: 1.5rem;
}

/* Cocoon Interlinking */
.cocoon-hub {
    margin-top: 60px;
    padding: 40px;
    background: var(--brand-light);
    border-radius: var(--radius-md);
}

/* Footer Improvements */
.footer {
    background: var(--brand-dark);
    color: #9AA0A6;
    padding: 100px 0 60px;
    margin-top: 120px;
}

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

.footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 14px;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* Tone Helpers */
.brand-span {
    color: var(--brand-primary);
    font-weight: 600;
}

.expand-section {
    padding: 48px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    margin: 64px 0;
}

h1, h2, h3 {
    color: var(--brand-secondary);
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 20px;
    color: #3C4043;
}
