/* ===== VARIABLES ===== */
:root {
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-surface-alt: #f1f3f5;
    --color-text: #212529;
    --color-text-secondary: #495057;
    --color-text-muted: #868e96;
    --color-accent: #364fc7;
    --color-accent-light: #4263eb;
    --color-accent-bg: #edf2ff;
    --color-accent-border: #bac8ff;
    --color-border: #dee2e6;
    --color-success: #2b8a3e;
    --color-success-bg: #ebfbee;
    --color-warning: #e67700;
    --color-warning-bg: #fff9db;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --max-width: 1120px;
    --header-height: 64px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--color-text-secondary); max-width: 640px; margin-bottom: 48px; }
.badge {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--color-accent); background: var(--color-accent-bg);
    padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000; transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: var(--color-text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--color-accent); }
.logo-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: 0.88rem; font-weight: 500; color: var(--color-text-secondary); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--color-accent); text-decoration: none; }
.nav-cta {
    background: var(--color-accent); color: #fff !important;
    padding: 8px 20px; border-radius: 100px; font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--color-accent-light); transform: translateY(-1px); text-decoration: none !important; }

/* ===== BURGER ===== */
.burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
    padding: 16px 20px; gap: 4px; z-index: 999;
    transform: translateY(-110%); transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--color-text-secondary); padding: 12px 0; border-bottom: 1px solid var(--color-surface-alt); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--color-accent); text-decoration: none; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-size: 1rem; font-weight: 600;
    padding: 14px 28px; border-radius: 100px; border: none;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent-border); color: var(--color-accent); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--color-accent); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--color-accent); }
.btn-cta-primary { background: #fff; color: var(--color-text); }
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--color-text); }
.btn-cta-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding-top: calc(var(--header-height) + 48px); padding-bottom: 48px;
    background: linear-gradient(135deg, #edf2ff 0%, #f8f9fa 60%, #e9ecef 100%);
    border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px;
}
.page-hero p { font-size: 1.1rem; color: var(--color-text-secondary); max-width: 640px; line-height: 1.6; }

/* ===== HOME HERO ===== */
.hero {
    padding-top: calc(var(--header-height) + 60px); padding-bottom: 80px;
    background: linear-gradient(135deg, #edf2ff 0%, #f8f9fa 60%, #e9ecef 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(66,99,235,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 32px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.hero-copy { min-width: 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; color: var(--color-accent);
    background: var(--color-surface); border: 1px solid var(--color-accent-border);
    padding: 8px 16px; border-radius: 100px; margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero p { font-size: 1.15rem; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-highlight {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    margin-bottom: 28px;
    max-width: 620px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(54,79,199,0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(237,242,255,0.92) 100%);
    box-shadow: var(--shadow-sm);
}
.hero-highlight strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text);
}
.hero-highlight span {
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}
.hero-side-note {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 0.96rem;
    color: var(--color-text-muted);
}
.hero-access-board {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(33,37,41,0.96) 0%, rgba(54,79,199,0.96) 100%);
    box-shadow: 0 24px 60px rgba(30,41,59,0.18);
}
.hero-access-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(255,255,255,0.6);
}
.hero-access-step {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.hero-access-body h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.hero-access-body p {
    max-width: none;
    margin-bottom: 16px;
    font-size: 0.97rem;
    line-height: 1.7;
}
.hero-access-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--color-accent-bg);
    color: var(--color-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-access-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}
.hero-access-list li {
    position: relative;
    padding-left: 20px;
    color: var(--color-text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}
.hero-access-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

/* ===== COUNCIL BRIEF ===== */
.council-brief {
    padding-top: 0;
}
.council-brief-card {
    padding: 36px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(54,79,199,0.12);
    box-shadow: var(--shadow-md);
}
.council-brief-head .section-subtitle {
    max-width: 760px;
    margin-bottom: 0;
}
.council-brief-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 24px;
}
.council-brief-item {
    padding: 22px;
    border-radius: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}
.council-brief-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.35;
}
.council-brief-item p {
    margin: 0;
    max-width: none;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}
.council-brief-note {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #212529 0%, #364fc7 100%);
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
}
.council-brief-note strong { color: #fff; }
.council-brief-note a {
    color: #fff;
    font-weight: 700;
    margin-left: 8px;
}

/* ===== CARDS (universal) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--color-accent-bg); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ===== DOCUMENT CARD ===== */
.doc-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; }
.doc-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.doc-card-body { flex: 1; }
.doc-card-body h3 { font-size: 0.95rem; margin-bottom: 4px; }
.doc-card-body p { font-size: 0.85rem; }
.doc-type {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 3px 8px; border-radius: 4px; margin-top: 8px;
}
.doc-type-protocol { background: #dbe4ff; color: #364fc7; }
.doc-type-report { background: #d3f9d8; color: #2b8a3e; }
.doc-type-tariff { background: #fff3bf; color: #e67700; }
.doc-type-response { background: #e8defc; color: #7048e8; }
.doc-type-guide { background: #d0ebff; color: #1971c2; }
.doc-type-legal { background: #ffe8cc; color: #d9480f; }

/* ===== DOCUMENT META & BADGES ===== */
.doc-meta {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px;
}
.doc-house-label {
    font-size: 0.78rem; color: var(--color-text-muted);
}
.doc-badges {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.doc-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 600;
    padding: 2px 8px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.doc-badge-verified { background: var(--color-success-bg); color: var(--color-success); }
.doc-badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.doc-badge-preparing { background: var(--color-accent-bg); color: var(--color-accent); }
.doc-badge-nofile { background: #e9ecef; color: #868e96; }

/* ===== HOUSE CARD ===== */
.house-card { text-align: center; padding: 32px 24px; }
.house-number {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--color-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800; margin: 0 auto 16px;
}
.house-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.house-stats {
    display: flex; gap: 16px; justify-content: center;
    margin-top: 16px; font-size: 0.8rem; color: var(--color-text-muted);
}
.house-stats span { display: flex; align-items: center; gap: 4px; }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-tab {
    font-family: inherit; font-size: 0.85rem; font-weight: 500;
    padding: 8px 16px; border-radius: 100px;
    border: 1px solid var(--color-border); background: var(--color-surface);
    color: var(--color-text-secondary); cursor: pointer; transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--color-accent-border); color: var(--color-accent); }
.filter-tab.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ===== INFO BLOCK ===== */
.info-block {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 32px; margin-bottom: 24px;
}
.info-block h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.info-block p { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 12px; }
.info-block p:last-child { margin-bottom: 0; }
.info-block ul, .info-block ol { color: var(--color-text-secondary); padding-left: 24px; margin-bottom: 12px; line-height: 1.8; }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* ===== NOTICE ===== */
.notice { background: var(--color-warning-bg); border: 1px solid #ffe066; border-radius: var(--radius-md); padding: 24px 28px; margin-top: 32px; }
.notice h4 { font-size: 1rem; font-weight: 700; color: var(--color-warning); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.notice p { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.6; }
.notice-info { background: var(--color-accent-bg); border-color: var(--color-accent-border); }
.notice-info h4 { color: var(--color-accent); }

/* ===== STEPS VERTICAL ===== */
.steps-vertical { display: flex; flex-direction: column; }
.step-v { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.step-v:last-child { border-bottom: none; }
.step-v-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.step-v h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step-v p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ===== CHECKLIST ===== */
.checklist { list-style: none; }
.checklist li {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px 0;
    border-bottom: 1px solid var(--color-surface-alt);
    font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.6;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: '\2713'; flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--color-success-bg); color: var(--color-success);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; margin-top: 1px;
}

/* ===== ABOUT GRID ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text p { color: var(--color-text-secondary); font-size: 1.05rem; margin-bottom: 16px; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat { background: var(--color-surface-alt); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.about-stat-number { font-size: 2rem; font-weight: 800; color: var(--color-accent); line-height: 1.2; }
.about-stat-label { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 4px; }

/* ===== GOALS ===== */
.goals-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.goal-item { display: flex; gap: 16px; align-items: flex-start; }
.goal-check {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--color-success-bg); color: var(--color-success);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; margin-top: 2px;
}
.goal-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.goal-item p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.5; }

/* ===== MAX SECTION ===== */
.max-card {
    background: linear-gradient(135deg, #364fc7 0%, #4263eb 100%);
    border-radius: var(--radius-xl); padding: 48px; color: #fff;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.max-card h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.max-card > div > p { font-size: 1.05rem; opacity: 0.9; line-height: 1.7; margin-bottom: 24px; }
.max-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.max-side-note { margin-top: 14px; font-size: 0.85rem; opacity: 0.82; line-height: 1.6; }
.max-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.max-features li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.max-features li::before {
    content: '\2713'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
}
.marketplace-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: var(--shadow-sm);
}
.marketplace-card .section-title { margin-bottom: 10px; }
.marketplace-card .section-subtitle { margin-bottom: 0; max-width: none; }
.marketplace-actions { display: flex; justify-content: flex-end; }

/* ===== ROADMAP (horizontal) ===== */
.steps-h { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps-h::before { content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: var(--color-border); }
.step-h { text-align: center; position: relative; padding: 0 12px; }
.step-h-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
    margin: 0 auto 16px; position: relative; z-index: 1;
}
.step-h h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step-h p { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.5; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, #212529 0%, #343a40 100%); color: #fff; text-align: center; }
.cta-section .section-title { color: #fff; }
.cta-section .section-subtitle { color: rgba(255,255,255,0.7); margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.legal-content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
.legal-content p { color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul, .legal-content ol { color: var(--color-text-secondary); padding-left: 24px; margin-bottom: 16px; line-height: 1.8; }
.legal-content li { margin-bottom: 4px; }

/* ===== CONCEPT BADGE ===== */
.concept-badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--color-warning); background: var(--color-warning-bg);
    padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}

/* ===== FOOTER ===== */
.footer { background: var(--color-text); color: rgba(255,255,255,0.6); padding: 48px 0 0; font-size: 0.85rem; }
.footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { margin-top: 8px; line-height: 1.6; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--color-accent-border); }
.footer-logo-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.footer-notice { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-notice p { font-size: 0.8rem; line-height: 1.7; }
.footer-notice strong { color: rgba(255,255,255,0.9); }
.footer-bottom { padding: 20px 0; text-align: center; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--color-accent-border); }
.faq-question {
    width: 100%; background: none; border: none; font-family: inherit;
    font-size: 1rem; font-weight: 600; text-align: left; padding: 20px 24px;
    cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; color: var(--color-text); transition: background 0.2s;
}
.faq-question:hover { background: var(--color-surface-alt); }
.faq-arrow { flex-shrink: 0; width: 24px; height: 24px; transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav { display: none; }
    .burger { display: flex; }
    .about-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
    .hero-layout, .council-brief-grid { grid-template-columns: 1fr; }
    .marketplace-card { grid-template-columns: 1fr; padding: 24px; }
    .marketplace-actions { justify-content: flex-start; }
    .goals-list { grid-template-columns: 1fr; }
    .max-card { grid-template-columns: 1fr; padding: 32px; }
    .steps-h { grid-template-columns: 1fr; gap: 24px; }
    .steps-h::before { display: none; }
    .step-h { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
    .step-h-num { margin: 0; flex-shrink: 0; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    .hero-copy p, .hero-highlight { max-width: none; }
    .council-brief-card { padding: 28px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 600px) {
    .hero { padding-top: calc(var(--header-height) + 32px); padding-bottom: 48px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-highlight { padding: 16px; }
    .hero-access-board { padding: 12px; border-radius: 22px; }
    .hero-access-card { grid-template-columns: 1fr; padding: 18px; }
    .hero-access-step { width: 44px; height: 44px; border-radius: 14px; font-size: 1.1rem; }
    .hero-access-body h2 { font-size: 1.15rem; }
    .max-actions { flex-direction: column; align-items: stretch; }
    .council-brief-card { padding: 22px; border-radius: 22px; }
    .council-brief-grid { margin-top: 22px; }
    .card-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .page-hero { padding-top: calc(var(--header-height) + 32px); padding-bottom: 32px; }
    .max-card { padding: 24px; }
    .cta-buttons, .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .footer-columns { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== FILTER SELECT ===== */
.filter-select {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s;
}
.filter-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ===== CONTACTS ===== */
.contact-card {
    text-align: center;
}
.contact-phone {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.5rem 0;
}
.contact-phone a {
    color: var(--color-accent);
    text-decoration: none;
}
.contact-phone a:hover {
    text-decoration: underline;
}
.contact-avail {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-accent-bg, #edf2ff);
    color: var(--color-accent);
    border-radius: 999px;
}
.contact-source {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: italic;
}
.contacts-restricted-block {
    margin-top: 2rem;
}
.contact-restricted-item {
    padding: 1rem 1.25rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}
.contact-restricted-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.contact-restricted-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ===== BOT PAGE ===== */
.bot-hero {
    padding-bottom: 72px;
}
.bot-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.bot-hero-layout .hero-copy h1 em {
    color: var(--color-accent);
    font-style: normal;
}
.bot-hero-visual {
    display: grid;
    gap: 20px;
}
.bot-hero-visual-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(160deg, #0b0d17 0%, #18163a 100%);
    box-shadow: 0 28px 70px rgba(30, 21, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 1 / 1;
}
.bot-hero-visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bot-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.bot-hero-meta-item {
    display: grid;
    gap: 4px;
}
.bot-hero-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}
.bot-hero-meta-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

/* ----- Sample dialogues ----- */
.bot-samples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.bot-sample {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bot-sample:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.bot-sample-head {
    display: grid;
    gap: 8px;
}
.bot-sample-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.bot-sample-tag {
    display: inline-flex;
    align-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-accent-bg);
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.bot-sample-chat {
    display: grid;
    gap: 10px;
}
.bot-msg {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 90%;
    word-wrap: break-word;
}
.bot-msg-user {
    justify-self: end;
    background: var(--color-accent);
    color: #fff;
    border-bottom-right-radius: 6px;
}
.bot-msg-bot {
    justify-self: start;
    background: var(--color-surface-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 6px;
}
.bot-msg-bot a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bot-msg-bot strong {
    color: var(--color-text);
}

/* ----- Capability cards (bot page) ----- */
.capability-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.capability-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    isolation: isolate;
}
.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(30, 21, 74, 0.18);
    border-color: rgba(54, 79, 199, 0.28);
}
.capability-card-illustration {
    position: relative;
    aspect-ratio: 1 / 1;
    background: radial-gradient(120% 120% at 50% 0%, #1b1850 0%, #0b0d22 65%, #05061a 100%);
    overflow: hidden;
}
.capability-card-illustration::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(5, 6, 26, 0.55) 100%);
    pointer-events: none;
}
.capability-card-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.capability-card:hover .capability-card-illustration img {
    transform: scale(1.04);
}
.capability-card-body {
    padding: 22px 24px 26px;
    display: grid;
    gap: 8px;
}
.capability-card-body h3 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text);
}
.capability-card-body p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ----- Hero visual online badge ----- */
.bot-hero-visual-frame { position: relative; }
.bot-hero-visual-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(8, 10, 28, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 2;
}
.bot-hero-visual-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38d9a9;
    box-shadow: 0 0 10px rgba(56, 217, 169, 0.85);
    animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ----- Team / AAMX card (dark, brand-aligned) ----- */
.team-card {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b0d22 0%, #1a1648 55%, #2a1a6e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 72px rgba(20, 13, 60, 0.3);
    position: relative;
}
.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 20% 20%, rgba(180, 61, 255, 0.22) 0%, transparent 55%),
                radial-gradient(50% 70% at 90% 90%, rgba(66, 99, 235, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.team-card-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    min-height: 240px;
    background: transparent;
}
.team-card-visual img {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(146, 72, 255, 0.35));
    position: relative;
    z-index: 1;
}
.team-card-body {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    z-index: 1;
}
.team-card-body .badge.badge-on-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    align-self: flex-start;
}
.team-card-body .section-title {
    margin-bottom: 4px;
    color: #fff;
}
.team-card-body p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin: 0;
    max-width: 640px;
}
.team-card-body strong {
    color: #fff;
}
.team-card-small {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.62) !important;
}

/* ----- Nowrap anchors in copy ----- */
.link-nowrap {
    color: var(--color-accent);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(54, 79, 199, 0.35);
    transition: text-decoration-color 0.15s;
}
.link-nowrap:hover {
    text-decoration-color: var(--color-accent);
}

/* ----- Footer link wrapping safety ----- */
.footer-col a {
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

/* ----- Bot page responsive ----- */
@media (max-width: 960px) {
    .bot-hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .bot-hero-visual-frame {
        max-width: 480px;
        margin: 0 auto;
    }
    .team-card {
        grid-template-columns: 1fr;
    }
    .team-card-visual {
        padding: 28px 28px 0;
        min-height: 200px;
    }
    .team-card-visual img {
        max-width: 260px;
    }
    .team-card-body {
        padding: 24px 28px 32px;
    }
}
@media (max-width: 560px) {
    .bot-hero-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bot-hero-visual-frame {
        border-radius: 22px;
    }
    .capability-card-body {
        padding: 20px 22px 24px;
    }
    .team-card-visual img {
        max-width: 200px;
    }
}
