:root {
    --brand-primary: #EC111A; /* Scotia Red */
    --brand-secondary: #1A1A2E; /* Scotia Dark */
    --brand-accent: #FFFFFF;
    --brand-dark: #0D0D1A;
    --brand-light: #F8F9FA;
    --brand-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-main: #1A1A2E;
    --text-muted: #5A5F7A;
    --border-subtle: rgba(26, 26, 46, 0.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --header-height: 76px;
    --container-width: 1200px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: all 0.35s 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.65;
    background-color: #fff;
    scroll-behavior: smooth;
}

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

/* Premium Navbar */
.header {
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

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

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

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--brand-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(236, 17, 26, 0.25);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    transition: var(--transition);
    opacity: 0.8;
}

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

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

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

.btn-lang {
    padding: 9px 22px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(236, 17, 26, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lang:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 17, 26, 0.35);
    background: #C40E16;
}

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

/* Premium Hero */
.hero {
    background: radial-gradient(ellipse at top left, var(--brand-secondary), #0D0D1A 70%);
    color: white;
    padding: 130px 0 100px;
    border-radius: var(--radius-lg);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(236, 17, 26, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.15); opacity: 0.7; }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 28px;
    max-width: 850px;
    letter-spacing: -1.8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #D1D5DB 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    max-width: 680px;
    opacity: 0.88;
    margin-bottom: 44px;
    line-height: 1.55;
    color: #E5E7EB;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 700px;
}

.glass-card h2 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.glass-card p {
    color: #D1D5DB;
    font-size: 1.05rem;
}

/* 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);
}

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

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

.ai-summary-block li {
    padding-left: 22px;
    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: 14px;
    transition: var(--transition);
}

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

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

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 36px 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.73rem;
    letter-spacing: 1px;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.93rem;
}

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

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

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

.sticky-toc ul { list-style: none; padding: 0; }
.sticky-toc li { margin-bottom: 7px; }

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

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

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

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

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

.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }

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

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

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

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-bottom: 72px;
}

.card {
    background: var(--brand-white);
    border: 1px solid var(--border-subtle);
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--brand-primary);
}

.card-icon {
    width: 58px;
    height: 58px;
    background: #FEF2F2;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--brand-primary);
    font-size: 1.4rem;
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--brand-secondary);
}

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

.card a {
    display: inline-block;
    margin-top: 18px;
    text-decoration: none;
    color: var(--brand-primary);
    font-weight: 600;
}

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

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

.expand-section {
    padding: 44px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 18px;
    margin: 56px 0;
}

/* Rich Index Sections */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 56px 0;
}

.industry-card {
    padding: 36px;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    background: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary);
}

.stat-item h4 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 4px;
    color: white;
}

.stat-item p {
    font-size: 0.85rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Language Selector */
.lang-toggle {
    display: flex;
    background: var(--brand-light);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    margin-left: 10px;
}
.lang-toggle a {
    padding: 6px 14px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}
.lang-toggle a.active {
    background: var(--brand-primary);
    color: white;
}
.lang-toggle a:hover:not(.active) {
    background: rgba(236,17,26,0.1);
    color: var(--brand-primary);
}
