/* JSM Launchpad — Documentation & Subpage Styles */

/* ============================================
   1. Design Tokens
   ============================================ */
:root {
    --bg-deep: #0a0e17;
    --bg-surface: #0f1520;
    --bg-card: #141c2b;
    --bg-card-hover: #1a2438;
    --border: #1e2a3e;
    --border-subtle: #162033;
    --text-primary: #e8ecf4;
    --text-secondary: #8899b4;
    --text-muted: #5a6d8a;
    --accent-teal: #2dd4bf;
    --accent-teal-dim: #1a9e8f;
    --accent-teal-glow: rgba(45, 212, 191, 0.12);
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --accent-green: #22c55e;
    --accent-violet: #a78bfa;
    --accent-rose: #f472b6;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}


/* ============================================
   2. Reset & Body
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   3. Container
   ============================================ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================
   4. Header & Navigation
   ============================================ */
header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo img,
.logo-icon {
    height: 32px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-teal);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-teal), #5eead4) !important;
    color: var(--bg-deep) !important;
    padding: 8px 18px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
}

/* Desktop Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1001;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu--wide {
    min-width: 320px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-section {
    margin-bottom: 16px;
}

.nav-dropdown-section:last-child {
    margin-bottom: 0;
}

.nav-dropdown-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: 8px;
    padding: 0 8px;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--bg-surface);
}

.nav-dropdown-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

.nav-dropdown-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.nav-dropdown-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}


/* ============================================
   5. Hamburger & Mobile Navigation
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Mobile slide-in nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    padding: 80px 24px 24px;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--text-primary);
}

.mobile-nav-section {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-top: 16px;
    margin-bottom: 4px;
    padding-top: 8px;
}

.mobile-nav .nav-cta {
    display: inline-block;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}


/* ============================================
   6. Breadcrumb
   ============================================ */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-teal);
}

.breadcrumb span {
    color: var(--text-muted);
}


/* ============================================
   7. Page Hero (references, template index, etc.)
   ============================================ */
.page-hero {
    padding: 72px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-teal), #5eead4, #99f6e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ============================================
   8. Guide Hero (reading content pages)
   ============================================ */
.guide-hero {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.guide-hero h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.guide-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.guide-meta {
    display: flex;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}


/* ============================================
   9. Guide Content Typography
   ============================================ */
.guide-content {
    padding: 48px 0;
}

.guide-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 48px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    letter-spacing: -0.02em;
}

.guide-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.guide-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--accent-teal);
}

.guide-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.75;
}

.guide-content ul,
.guide-content ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.guide-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.guide-content strong {
    color: var(--text-primary);
}

.guide-content em {
    color: var(--text-secondary);
}

.guide-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-teal);
}

.guide-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 16px 0;
}

.guide-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.guide-content a {
    color: var(--accent-teal);
    text-decoration: underline;
    text-decoration-color: rgba(45, 212, 191, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.guide-content a:hover {
    text-decoration-color: var(--accent-teal);
}


/* ============================================
   10. Tables
   ============================================ */
.guide-table,
.attributes-table table,
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 20px 0;
}

.attributes-table {
    overflow-x: auto;
}

thead,
.guide-table thead {
    background: var(--bg-surface);
}

th,
.guide-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

td,
.guide-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

tbody tr:hover,
.guide-table tr:hover {
    background: var(--bg-surface);
}

td code,
.guide-table td code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--bg-deep);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-teal);
}


/* ============================================
   11. Info / Warning / Success Boxes
   ============================================ */
.info-box {
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.info-box strong {
    color: var(--accent-teal);
}

.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.warning-box strong {
    color: var(--accent-amber);
}

.success-box {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.success-box strong {
    color: var(--accent-green);
}


/* ============================================
   12. Guide Navigation (prev/next)
   ============================================ */
.guide-nav {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.guide-nav a {
    flex: 1;
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.guide-nav a:hover {
    border-color: var(--accent-teal);
    background: var(--bg-card-hover);
}

.guide-nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.guide-nav-title {
    font-weight: 600;
    color: var(--accent-teal);
}


/* ============================================
   13. Cards & Grids
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, background 0.2s;
}

.info-card:hover {
    border-color: var(--accent-teal);
    background: var(--bg-card-hover);
}

.info-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ============================================
   14. Template Hero
   ============================================ */
.template-hero {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.template-hero--split {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.template-hero-content {
    /* Left side content */
}

.template-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tier-badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 4px;
}

.tier-free {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
}

.tier-paid {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
}

.tier-enterprise {
    background: rgba(167, 139, 250, 0.15);
    color: var(--accent-violet);
}

.category-badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.template-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.template-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.template-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.template-stats .stat {
    text-align: center;
}

.template-stats .stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-teal);
    display: block;
}

.template-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* ============================================
   15. Documentation Panel (sidebar)
   ============================================ */
.template-docs-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.template-docs-panel h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-panel-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-panel-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.doc-panel-card:hover {
    border-color: var(--accent-teal);
    background: rgba(45, 212, 191, 0.05);
}

.doc-panel-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 6px;
}

.doc-panel-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.doc-panel-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}


/* ============================================
   16. Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), #5eead4);
    color: var(--bg-deep);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.3);
}

.guide-content .btn-primary,
.cta-section .btn-primary {
    color: var(--bg-deep);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-teal);
    background: var(--bg-card-hover);
}


/* ============================================
   17. Content Sections
   ============================================ */
.content-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.content-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-teal);
    border-radius: 2px;
    flex-shrink: 0;
}


/* ============================================
   18. Object Type Details
   ============================================ */
.object-type-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.object-type-detail:hover {
    border-color: var(--border);
}

.object-type-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.object-type-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 212, 191, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.object-type-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.object-type-purpose {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ============================================
   19. Relationship Diagram
   ============================================ */
.relationship-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.relationship-diagram pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.relationships-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.relationship-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    transition: border-color 0.2s;
}

.relationship-item:hover {
    border-color: rgba(45, 212, 191, 0.3);
}

.relationship-from,
.relationship-to {
    font-weight: 600;
    color: var(--text-primary);
}

.relationship-arrow {
    color: var(--accent-teal);
    font-size: 1.25rem;
}

.relationship-label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--bg-surface);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--accent-teal);
}

.relationship-description {
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}


/* ============================================
   20. Use Cases
   ============================================ */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.use-case-card:hover {
    border-color: rgba(45, 212, 191, 0.3);
}

.use-case-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.use-case-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ============================================
   21. Steps List
   ============================================ */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-teal), #5eead4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-deep);
    flex-shrink: 0;
    font-size: 0.9375rem;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ============================================
   22. Upgrade Table
   ============================================ */
.upgrade-triggers table {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.upgrade-triggers a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: opacity 0.2s;
}

.upgrade-triggers a:hover {
    text-decoration: underline;
    opacity: 0.85;
}


/* ============================================
   23. Documentation Grid
   ============================================ */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.doc-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.doc-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.doc-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.doc-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}


/* ============================================
   24. CTA Section
   ============================================ */
.cta-section {
    text-align: center;
    padding: 64px 0;
}

.cta-section h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}


/* ============================================
   25. Footer
   ============================================ */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-teal);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8125rem;
}


/* ============================================
   26. Checklist
   ============================================ */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding-left: 28px;
    position: relative;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
}


/* ============================================
   27. Reference Page
   ============================================ */
.references-intro {
    padding: 48px 0 32px;
    max-width: 800px;
}

.references-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.reference-category {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.reference-category:last-of-type {
    border-bottom: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.category-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 2px;
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reference-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    transition: border-color 0.2s, background 0.2s;
}

.reference-item:hover {
    border-color: rgba(45, 212, 191, 0.4);
    background: var(--bg-card-hover);
}

.reference-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.reference-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.reference-item h3 a:hover {
    color: var(--accent-teal);
}

.reference-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.reference-url {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
}


/* ============================================
   28. Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}


/* ============================================
   29. Responsive — Tablet & Mobile
   ============================================ */
@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .template-hero--split {
        grid-template-columns: 1fr;
    }

    .template-docs-panel {
        position: static;
    }

    .guide-nav {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 56px 0 36px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .guide-hero h1 {
        font-size: 1.75rem;
    }

    .template-hero h1 {
        font-size: 1.75rem;
    }

    .template-stats {
        gap: 24px;
    }

    .object-type-header {
        flex-direction: column;
    }

    .relationship-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: -8px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .reference-item {
        padding: 16px 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .guide-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container,
    .container--narrow {
        padding: 0 16px;
    }

    .page-hero {
        padding: 40px 0 28px;
    }

    .guide-hero {
        padding: 32px 0;
    }

    .template-hero {
        padding: 32px 0;
    }

    .content-section {
        padding: 32px 0;
    }

    .guide-content h2 {
        font-size: 1.25rem;
        margin: 36px 0 12px;
    }

    .guide-content h3 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}


/* ============================================
   30. Utility Helpers
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
