/* samuelochoa.com — stylesheet */

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

:root {
    /* Purple palette */
    --primary-purple: #4a00e0;
    --secondary-purple: #5b21b6;
    --light-purple: #7c3aed;
    --dark-purple: #3b0a8a;
    --purple-hover: #6d28d9;
    --accent-bg: #f3e8ff;

    /* Neutrals */
    --white: #ffffff;
    --light-bg: #faf8ff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #000000;
    --code-bg: #f5f5f7;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 18px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: var(--purple-hover); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

h1 { font-size: 72px; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
h2 { font-size: 56px; line-height: 1.1; text-transform: uppercase; }
h3 { font-size: 32px; line-height: 1.2; font-weight: 800; }
h4 { font-size: 24px; font-weight: 700; }

p { line-height: 1.65; margin-bottom: 20px; }

em, i {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--primary-purple);
    text-transform: none;
    letter-spacing: normal;
}

/* ============================================================
   TOP NAV
   ============================================================ */
nav.topbar {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
nav.topbar .topbar-inner {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
nav.topbar .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-900);
    font-size: 0;
    flex-shrink: 0;
}
nav.topbar .logo img.brand-logo {
    display: block;
    height: 88px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}
nav.topbar .logo:hover { opacity: 0.85; }

nav.topbar .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
nav.topbar .nav-link,
nav.topbar .nav-links > a {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
nav.topbar .nav-link::after,
nav.topbar .nav-links > a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--primary-purple);
    transition: width 0.25s ease;
}
nav.topbar .nav-link:hover,
nav.topbar .nav-link.active,
nav.topbar .nav-links > a:hover,
nav.topbar .nav-links > a.active { color: var(--primary-purple); }
nav.topbar .nav-link:hover::after,
nav.topbar .nav-link.active::after,
nav.topbar .nav-links > a:hover::after,
nav.topbar .nav-links > a.active::after { width: 100%; }

nav.topbar .nav-has-submenu::before {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transform: translateY(1px);
    order: 2;
}

/* Dropdown groups (desktop) */
nav.topbar .nav-group {
    position: relative;
}
nav.topbar .nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1001;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
nav.topbar .nav-group:hover > .nav-submenu,
nav.topbar .nav-group:focus-within > .nav-submenu,
nav.topbar .nav-group.is-open > .nav-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
nav.topbar .nav-submenu a {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--gray-900);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}
nav.topbar .nav-submenu a::after { display: none; }
nav.topbar .nav-submenu a:hover {
    background: var(--gray-50, #f6f6f7);
    color: var(--primary-purple);
}

/* Mega submenu (Expertise — multi-column brain map) */
nav.topbar .nav-group-wide { position: static; }
nav.topbar .nav-submenu-multi {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 8px 18px;
    min-width: min(1100px, calc(100vw - 48px));
    padding: 20px 22px;
}
nav.topbar .nav-group-wide:hover > .nav-submenu-multi,
nav.topbar .nav-group-wide:focus-within > .nav-submenu-multi,
nav.topbar .nav-group-wide.is-open > .nav-submenu-multi {
    transform: translateX(-50%) translateY(0);
}
nav.topbar .nav-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
nav.topbar .nav-col-head {
    font-weight: 800 !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--primary-purple) !important;
    padding: 8px 10px 6px !important;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 4px;
    border-radius: 0;
}
nav.topbar .nav-col-head:hover {
    background: transparent !important;
    color: var(--primary-purple) !important;
    text-decoration: underline;
}
nav.topbar .nav-col a {
    padding: 6px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gray-700, #3f3f46);
}

/* Hamburger (hidden on desktop) */
nav.topbar .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin-left: auto;
}
nav.topbar .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #171717;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}
nav.topbar.nav-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
nav.topbar.nav-open .hamburger span:nth-child(2) { opacity: 0; }
nav.topbar.nav-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn:hover { opacity: 1; }

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    border-color: var(--primary-purple);
    box-shadow: 0 4px 14px rgba(74, 0, 224, 0.25);
}
.btn-primary:hover {
    background: var(--purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 0, 224, 0.35);
    color: var(--white);
}

.btn-ghost, .btn-light {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
}
.btn-ghost:hover, .btn-light:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 15px;
}

/* ============================================================
   BADGE / EYEBROW
   ============================================================ */
.badge, .eyebrow {
    display: inline-block;
    background: transparent;
    border: none;
    border-left: 3px solid var(--primary-purple);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    color: var(--primary-purple);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ============================================================
   HERO (home page + landing heroes)
   ============================================================ */
.hero {
    padding: 140px 0 120px;
    background: linear-gradient(135deg, #4a00e0 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero > .container,
.hero > * {
    position: relative;
    z-index: 1;
}

.hero .photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 36px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.04em;
    position: relative;
    overflow: hidden;
}
.hero .photo-placeholder img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: 80px;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}
.hero h1 em {
    color: rgba(255,255,255,0.85);
}

.hero .tagline {
    font-size: 22px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 44px;
    line-height: 1.6;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}
.hero .tagline em {
    color: rgba(255,255,255,0.95);
}

.hero .cta-row, .hero .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero .btn-primary {
    background: var(--white);
    color: var(--primary-purple);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.hero .btn-primary:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    transform: translateY(-2px);
}
.hero .btn-ghost, .hero .btn-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
}
.hero .btn-ghost:hover, .hero .btn-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================================
   SECTIONS + BLOCKS
   ============================================================ */
section.block {
    padding: 100px 0;
    border-top: none;
    background: var(--white);
}
section.block:nth-child(even) {
    background: var(--light-bg);
}
section.block > .container,
section.block > * {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
h2.section-title {
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--gray-900);
}
h2.section-title em {
    color: var(--primary-purple);
}
.lead {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto 20px;
}
.lead + .lead { margin-top: 16px; }

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 48px;
}
.card {
    background-color: var(--gray-50);
    padding: 36px 30px;
    border-radius: 20px;
    border: 1px solid var(--gray-100);
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    color: inherit;
    display: block;
    text-decoration: none;
}
.card:hover {
    transform: translateY(-4px);
    background-color: var(--white);
    border-left-color: var(--primary-purple);
    box-shadow: 0 16px 40px rgba(74, 0, 224, 0.1);
    color: inherit;
}
.card .icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--accent-bg);
    color: var(--primary-purple);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}
.card:hover .icon { transform: scale(1.08) rotate(-3deg); }
.card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: var(--gray-900);
    text-transform: none;
}
.card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   CREDENTIALS BOX
   ============================================================ */
.creds {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
    margin-top: 32px;
    max-width: 820px;
}
.creds .cred-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-100);
}
.creds .cred-row:first-child { padding-top: 0; }
.creds .cred-row:last-child { border-bottom: 0; padding-bottom: 0; }
.creds .cred-label {
    font-weight: 800;
    color: var(--gray-900);
    min-width: 140px;
    flex-shrink: 0;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.creds .cred-value {
    color: var(--gray-600);
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}
.creds .cred-value strong { color: var(--gray-900); font-weight: 700; }
.creds .cred-value em { color: var(--primary-purple); }

/* ============================================================
   PILLS
   ============================================================ */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--accent-bg);
    color: var(--primary-purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.pill:hover { border-color: var(--primary-purple); }

/* ============================================================
   PAGE (non-hero article pages)
   ============================================================ */
.page {
    padding: 80px 0 60px;
    max-width: 820px;
    margin: 0 auto;
}
.page h1.title {
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--gray-900);
}
.page h1.title em { color: var(--primary-purple); }
.page .lede {
    font-size: 22px;
    color: var(--gray-600);
    line-height: 1.55;
    margin-bottom: 48px;
    max-width: 720px;
    font-weight: 400;
}
.page h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.015em;
    margin: 56px 0 18px;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--gray-900);
}
.page h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 36px 0 12px;
    color: var(--gray-900);
    text-transform: none;
}
.page p, .page ul, .page ol {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--gray-700);
}
.page ul, .page ol { padding-left: 24px; }
.page li { margin-bottom: 8px; }
.page strong { font-weight: 700; color: var(--gray-900); }

/* ============================================================
   FRAMEWORK LAYOUT (sidebar + content)
   ============================================================ */
.framework-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: 48px 40px 80px;
}
.framework-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 16px;
    font-size: 14px;
}
.framework-sidebar h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gray-900);
    text-transform: uppercase;
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gray-100);
}
.framework-sidebar h4:first-child { margin-top: 0; }
.framework-sidebar ul { list-style: none; padding: 0; margin: 0; }
.framework-sidebar li { margin-bottom: 2px; }
.framework-sidebar a {
    display: block;
    padding: 7px 12px;
    color: var(--gray-600);
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
}
.framework-sidebar a:hover {
    background: var(--accent-bg);
    color: var(--primary-purple);
}
.framework-sidebar a.active {
    background: var(--accent-bg);
    color: var(--primary-purple);
    font-weight: 700;
    border-left: 3px solid var(--primary-purple);
    padding-left: 9px;
}

.framework-content {
    max-width: 760px;
    min-width: 0;
}
.framework-content h1.title {
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: var(--gray-900);
}
.framework-content .lede {
    font-size: 20px;
    color: var(--gray-600);
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 680px;
}
.framework-content h2 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.015em;
    margin: 48px 0 16px;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--gray-900);
}
.framework-content h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 32px 0 10px;
    color: var(--gray-900);
    text-transform: none;
}
.framework-content p, .framework-content ul, .framework-content ol {
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--gray-700);
}
.framework-content ul, .framework-content ol { padding-left: 22px; }
.framework-content li { margin-bottom: 6px; }
.framework-content strong { font-weight: 700; color: var(--gray-900); }

/* Breadcrumbs */
.breadcrumbs {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--primary-purple); }
.breadcrumbs .sep { margin: 0 8px; color: var(--gray-300); }

/* Article meta */
.article-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Callouts */
.callout {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 28px 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-700);
}
.callout.insight {
    background: var(--accent-bg);
    border-left: 4px solid var(--primary-purple);
}
.callout.warning {
    background: #FFF4E5;
    border-left: 4px solid #F59E0B;
}
.callout.note {
    background: var(--gray-100);
    border-left: 4px solid var(--gray-400);
}
.callout strong { color: var(--gray-900); }

/* Code */
.page code, .framework-content code, .page pre, .framework-content pre {
    font-family: 'JetBrains Mono', 'Menlo', 'SF Mono', monospace;
}
.page code, .framework-content code {
    background: var(--code-bg);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--secondary-purple);
    font-weight: 500;
}
.page pre, .framework-content pre {
    background: var(--gray-900);
    color: #e5e5e5;
    padding: 22px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 13.5px;
    line-height: 1.6;
}
.page pre code, .framework-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* ============================================================
   PREV / NEXT NAV
   ============================================================ */
.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 72px;
    padding-top: 36px;
    border-top: 1px solid var(--gray-200);
}
.prev-next a {
    display: block;
    padding: 22px 26px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.25s ease;
}
.prev-next a:hover {
    background: var(--white);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(74, 0, 224, 0.1);
    color: var(--gray-900);
}
.prev-next .label {
    font-size: 11px;
    color: var(--primary-purple);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.prev-next .title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.005em;
}
.prev-next .next { text-align: right; }
.prev-next .prev:only-child { grid-column: 1; }
.prev-next .next:only-child { grid-column: 2; }

/* ============================================================
   HUB LIST
   ============================================================ */
.hub-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.hub-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-100);
}
.hub-list li:last-child { border-bottom: 0; }
.hub-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--gray-900);
    font-weight: 500;
    padding: 4px 0;
    transition: transform 0.2s ease;
}
.hub-list a:hover { transform: translateX(4px); color: var(--primary-purple); }
.hub-list a > span:first-child { flex: 1; }
.hub-list .hub-title {
    font-size: 18px;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}
.hub-list a:hover .hub-title { color: var(--primary-purple); }
.hub-list .hub-desc {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 400;
    display: block;
    line-height: 1.5;
}
.hub-list .hub-arrow {
    color: var(--primary-purple);
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.hub-list a:hover .hub-arrow { transform: translateX(4px); }

/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 20px 50px rgba(74, 0, 224, 0.25);
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12) 0%, transparent 55%);
    pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h3 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1;
}
.contact-card p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 28px;
    color: var(--white);
}
.contact-card .btn-primary {
    background: var(--white);
    color: var(--primary-purple);
    border-color: var(--white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.contact-card .btn-primary:hover {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--gray-900);
    border-top: none;
    padding: 48px 0 40px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    margin-top: 80px;
}
footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
}
footer a:hover { color: var(--white); }
footer p { margin: 0; letter-spacing: 0.02em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    h1 { font-size: 56px; }
    h2 { font-size: 44px; }
    .hero h1 { font-size: 64px; }
    .section-title { font-size: 42px !important; }
}

@media (max-width: 960px) {
    .container { padding: 0 24px; width: 100%; }
    nav.topbar { padding: 14px 0; }
    nav.topbar .topbar-inner { padding: 0 20px; width: 100%; position: relative; gap: 12px; }
    nav.topbar .logo img.brand-logo { height: 56px; max-width: 200px; }

    /* Show hamburger on mobile */
    nav.topbar .hamburger { display: flex; }

    /* Mobile: turn nav-links into a full-width panel */
    nav.topbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-100);
        border-bottom: 1px solid var(--gray-100);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    nav.topbar.nav-open .nav-links { display: flex; }

    nav.topbar .nav-link,
    nav.topbar .nav-links > a {
        padding: 16px 24px;
        font-size: 14px;
        letter-spacing: 0.05em;
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    nav.topbar .nav-link::after,
    nav.topbar .nav-links > a::after { display: none; }
    nav.topbar .nav-has-submenu::before { display: none; }

    /* Mobile accordion groups */
    nav.topbar .nav-group { width: 100%; position: static; border-bottom: 1px solid var(--gray-100); }
    nav.topbar .nav-group:last-child { border-bottom: none; }
    nav.topbar .nav-group > .nav-link {
        border-bottom: none;
    }
    nav.topbar .nav-group .nav-has-submenu::after {
        content: '+';
        font-size: 22px;
        font-weight: 400;
        color: var(--primary-purple);
        line-height: 1;
        transition: transform 0.2s ease;
    }
    nav.topbar .nav-group.is-open .nav-has-submenu::after {
        content: '−';
    }
    nav.topbar .nav-submenu,
    nav.topbar .nav-submenu-multi {
        position: static;
        transform: none !important;
        display: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #fafafa;
        padding: 4px 0 10px;
        min-width: 0;
        max-height: none;
        grid-template-columns: 1fr;
        gap: 0;
    }
    nav.topbar .nav-group.is-open > .nav-submenu,
    nav.topbar .nav-group.is-open > .nav-submenu-multi {
        display: block;
    }
    nav.topbar .nav-submenu-multi { display: none; }
    nav.topbar .nav-group.is-open > .nav-submenu-multi { display: grid; }

    nav.topbar .nav-submenu a {
        padding: 12px 36px;
        font-size: 13px;
        white-space: normal;
        border-radius: 0;
    }
    nav.topbar .nav-col {
        margin-bottom: 4px;
    }
    nav.topbar .nav-col-head {
        padding: 14px 24px 6px !important;
        font-size: 11px !important;
        border-bottom: none;
        background: transparent;
    }
    nav.topbar .nav-col a {
        padding: 8px 36px;
    }

    .framework-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px 60px;
        width: 100%;
    }
    .framework-sidebar {
        position: static;
        max-height: none;
        padding-right: 0;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--gray-200);
    }
    .hero { padding: 100px 0 80px; }
    .hero h1 { font-size: 48px; }
    .hero .tagline { font-size: 18px; }
    section.block { padding: 72px 0; }
    .page { padding: 56px 0 40px; }
    .page h1.title { font-size: 42px; }
    .page h2 { font-size: 28px; }
    .framework-content h1.title { font-size: 36px; }
    .framework-content h2 { font-size: 24px; }
    h2.section-title { font-size: 36px !important; }
}

/* ============================================================
   Profile photos on content pages
   ============================================================ */
.profile-photo {
    float: right;
    width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 24px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--gray-100);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-banner-photo {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 48px;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/7;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.page-banner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
    .profile-photo {
        float: none;
        width: 160px;
        height: 160px;
        margin: 0 auto 24px;
        display: block;
    }
}

@media (max-width: 640px) {
    .hero .photo-placeholder { width: 112px; height: 112px; font-size: 42px; }
    .hero h1 { font-size: 40px; }
    .hero .tagline { font-size: 16px; }
    .creds { padding: 28px 20px; }
    .creds .cred-row { flex-direction: column; gap: 6px; align-items: flex-start; }
    .creds .cred-label { min-width: auto; }
    nav.topbar .nav-links { gap: 16px; }
    nav.topbar .nav-links a { font-size: 12px; letter-spacing: 0.05em; }
    nav.topbar .logo img.brand-logo { height: 60px; max-width: 200px; }
    .prev-next { grid-template-columns: 1fr; }
    .prev-next .next { text-align: left; }
    .contact-card { padding: 40px 24px; }
    .contact-card h3 { font-size: 30px; }
    .btn { padding: 12px 22px; font-size: 13px; }
    .btn-large { padding: 14px 28px; font-size: 14px; }
    .page h1.title { font-size: 32px; }
}
