/* Adaryus Global Theme */
:root {
    --bg-primary: #001a33;
    --bg-secondary: #002855;
    --bg-tertiary: #003366;
    --bg-glass: rgba(0, 26, 51, 0.75);
    --fg-primary: #ffffff;
    --fg-secondary: #cbd5f5;
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-gold: #EAAA00;
    --accent-green: #34d399;
    --wv-navy: #002855;
    --wv-gold: #EAAA00;
    --neon-blue: #00d4ff;
    --neon-gold: #EAAA00;
    --neon-cyan: #00fff5;
    --gradient-1: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(234, 170, 0, 0.35));
    --gradient-2: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(234, 170, 0, 0.6));
    --gradient-neon: linear-gradient(135deg, rgba(0, 212, 255, 0.5), rgba(255, 215, 0, 0.5));
    --border-subtle: rgba(0, 212, 255, 0.15);
    --border-strong: rgba(0, 212, 255, 0.35);
    --border-neon: rgba(0, 212, 255, 0.6);
    --code-font: 'JetBrains Mono', monospace;
    --sans-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --card-radius: 18px;
    --transition-fast: 160ms ease;
    --transition-medium: 240ms ease;
    --transition-slow: 420ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg-primary);
    color: var(--fg-primary);
    font-family: var(--sans-font);
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

img {
    max-width: 100%;
    display: block;
}

main {
    width: 100%;
    overflow: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    background: rgba(14, 22, 37, 0.85);
    transition: box-shadow var(--transition-medium), background var(--transition-medium);
}

.navbar.scrolled {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    background: rgba(11, 18, 30, 0.96);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.logo span {
    color: var(--accent-blue);
}

.mono {
    font-family: var(--code-font);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.72;
    color: var(--fg-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.nav-links a {
    position: relative;
    padding: 0.35rem 0.45rem;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    background: var(--accent-blue);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

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

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    background: var(--gradient-2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--fg-primary);
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.25);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
}

.mobile-toggle span {
    width: 26px;
    height: 2px;
    background: var(--fg-primary);
    border-radius: 2px;
    transition: transform var(--transition-medium);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu.active {
    display: flex;
}

/* Hero */
.hero {
    position: relative;
    padding: 9rem 1.5rem 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8, #a855f7, #facc15);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--fg-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-metrics div {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius);
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-metrics dt {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
}

.hero-metrics dd {
    font-size: 1.6rem;
    font-weight: 600;
}

.hero-aside {
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-aside h2 {
    font-size: 1.3rem;
}

.trend-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trend-list li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.trend-list span {
    color: var(--fg-secondary);
    font-size: 0.82rem;
}

.trend-list a {
    color: var(--fg-primary);
    font-weight: 500;
}

.trend-footnote {
    font-size: 0.8rem;
    color: var(--fg-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 500;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-2);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3), 0 20px 45px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
    background: transparent;
    border-color: var(--wv-gold);
    color: var(--fg-secondary);
    box-shadow: 0 0 10px rgba(234, 170, 0, 0.2);
}

.btn-secondary:hover {
    border-color: var(--neon-gold);
    color: var(--fg-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(234, 170, 0, 0.5), 0 0 30px rgba(234, 170, 0, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-subtle);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: transform var(--transition-fast), border var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
}

.stat-value {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Cards & Sections */
.section {
    padding: 5rem 1.5rem;
}

.section-header {
    max-width: 820px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(125, 211, 252, 0.8);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--fg-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.card-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    position: relative;
    padding: 2rem;
    border-radius: var(--card-radius);
    background: rgba(0, 26, 51, 0.85);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: transform var(--transition-medium), border var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 26px 60px rgba(0, 40, 85, 0.25);
}

.news-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    padding: 1.8rem;
    border-radius: var(--card-radius);
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform var(--transition-medium), border var(--transition-medium), box-shadow var(--transition-medium);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 24px 48px rgba(13, 148, 136, 0.18);
}

.news-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
}

.news-card p {
    color: var(--fg-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--fg-secondary);
}

.news-card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
}

.news-card-tags li {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 0.75rem;
}

.news-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--fg-secondary);
    margin-top: 0.35rem;
}

.badge-source {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    border-radius: var(--card-radius);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    color: var(--fg-secondary);
}

.empty-state.error {
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.skeleton {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

.skeleton-line {
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.24), rgba(148, 163, 184, 0.08));
    background-size: 320px 100%;
    animation: shimmer 1.4s infinite linear;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-title {
    height: 1.1rem;
    width: 80%;
}

@keyframes shimmer {
    0% {
        background-position: -320px 0;
    }
    100% {
        background-position: 320px 0;
    }
}

.chat-widget {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-log {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
}

.chat-message {
    padding: 1rem 1.2rem;
    border-radius: 14px;
    line-height: 1.6;
    font-size: 0.96rem;
    max-width: 92%;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--gradient-2);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.chat-message.ai {
    align-self: flex-start;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-subtle);
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-form textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(12, 20, 33, 0.7);
    color: var(--fg-primary);
    resize: vertical;
    min-height: 110px;
}

.chat-form textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.chat-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.chat-tip {
    font-size: 0.82rem;
    color: var(--fg-secondary);
}

.chat-results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.85rem 0 0;
    padding: 0;
}

.chat-results li {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

.chat-results span {
    display: block;
    font-size: 0.78rem;
    color: var(--fg-secondary);
    margin-top: 0.35rem;
}

.chat-results p {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--fg-secondary);
}

.integration-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.1));
    transition: opacity var(--transition-medium);
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: grid;
    place-items: center;
    color: var(--accent-blue);
    font-size: 1.35rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.card p {
    color: var(--fg-secondary);
    line-height: 1.6;
    font-size: 0.96rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Workflow visualiser */
.workflow-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.workflow-card {
    border-radius: var(--card-radius);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    position: relative;
}

.workflow-stage {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.workflow-stage + .workflow-stage {
    margin-top: 1.35rem;
}

.stage-indicator {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.12);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.stage-body h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.stage-body p {
    color: var(--fg-secondary);
    font-size: 0.92rem;
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    right: 2.2rem;
    bottom: 2.2rem;
    width: 62px;
    height: 62px;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(12, 19, 32, 0.92);
    display: grid;
    place-items: center;
    color: var(--accent-blue);
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(56, 189, 248, 0.18);
    transition: transform var(--transition-medium);
    z-index: 40;
}

.chatbot-toggle:hover {
    transform: translateY(-4px) scale(1.05);
}

.chatbot-panel {
    position: fixed;
    right: 2.2rem;
    bottom: 5.5rem;
    width: min(420px, calc(100vw - 3rem));
    max-height: min(620px, calc(100vh - 8rem));
    background: rgba(12, 19, 32, 0.9);
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    z-index: 45;
}

.chatbot-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.45);
    display: grid;
    place-items: center;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.12);
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 16px;
    max-width: 90%;
    line-height: 1.55;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.message.user {
    margin-left: auto;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
}

.message.ai {
    background: rgba(15, 23, 42, 0.85);
}

.message .sources {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.75);
}

.chatbot-footer {
    padding: 1.35rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.85rem;
}

.chatbot-footer input {
    flex: 1;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(14, 22, 37, 0.65);
    color: var(--fg-primary);
    font-size: 0.95rem;
}

.chatbot-footer input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.35);
}

.chatbot-footer button {
    padding: 0.9rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.16);
    color: var(--accent-blue);
    font-weight: 600;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Table & Utilities */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(14, 116, 144, 0.18);
}

thead th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tbody tr {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

tbody td {
    padding: 0.85rem 1rem;
    color: var(--fg-secondary);
}

.download-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.download-control {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
}

.download-input,
.download-select {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(14, 22, 37, 0.65);
    color: var(--fg-primary);
}

.download-table {
    width: 100%;
}

.download-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.65);
}

.download-table .download-empty td {
    text-align: center;
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.95rem;
    padding: 1.35rem;
}

.prompt-card ul,
.impact-card ul {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.9rem;
    padding-left: 1.1rem;
    color: var(--fg-secondary);
    list-style: disc;
}

.prompt-card ul li::marker,
.impact-card ul li::marker {
    color: rgba(56, 189, 248, 0.7);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 0.75rem;
}

.metric-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric {
    padding: 1.4rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metric .value {
    font-size: 2rem;
    font-weight: 600;
}

.metric .trend-up {
    color: var(--accent-green);
}

.metric .trend-down {
    color: #f87171;
}

.timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-entry {
    border-left: 2px solid rgba(56, 189, 248, 0.25);
    padding-left: 1.4rem;
    position: relative;
}

.timeline-entry::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent-blue);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.15);
    left: -7px;
    top: 0.2rem;
}

.footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer p {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    color: rgba(148, 163, 184, 0.75);
}

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

/* Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 19, 0.76);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 22px;
    border: 1px solid var(--border-strong);
    max-width: min(820px, calc(100vw - 3rem));
    max-height: calc(100vh - 4rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.6rem 1.9rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.9rem;
    overflow-y: auto;
    display: grid;
    gap: 1.4rem;
}

.code-block {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 1.2rem;
    font-family: var(--code-font);
    font-size: 0.85rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding-top: 7.5rem;
    }

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

    .hero-aside {
        order: -1;
    }

    .chatbot-toggle {
        right: 1.4rem;
        bottom: 1.4rem;
    }

    .chatbot-panel {
        right: 1.4rem;
        bottom: 4.2rem;
        width: calc(100vw - 2.8rem);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 1.05rem;
    }

    .card,
    .workflow-card {
        padding: 1.5rem;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-tip {
        text-align: left;
    }

    .news-card {
        padding: 1.5rem;
    }

    .hero-metrics {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 760px) {
    .download-controls {
        flex-direction: column;
    }

    .download-table thead {
        display: none;
    }

    .download-table tbody tr {
        display: grid;
        gap: 0.75rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .download-table tbody tr:last-of-type {
        border-bottom: none;
    }

    .download-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.25rem 0;
    }

    .download-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: rgba(148, 163, 184, 0.85);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .download-table tbody td button {
        width: 100%;
    }
}

/* Neon Effects for AI Business Plan Framework */
.neon-hero {
    background: linear-gradient(135deg, rgba(0, 40, 85, 0.9), rgba(0, 26, 51, 0.95));
    position: relative;
    overflow: hidden;
}

.neon-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(234, 170, 0, 0.15), transparent 50%);
    pointer-events: none;
    animation: neonPulse 8s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.neon-badge {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(234, 170, 0, 0.2));
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), inset 0 0 15px rgba(0, 212, 255, 0.1);
}

.neon-text {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.neon-btn {
    position: relative;
    overflow: hidden;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-card {
    background: rgba(0, 40, 85, 0.6);
    border: 1px solid var(--border-neon);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.neon-card-hover {
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.neon-card-hover:hover {
    border-color: var(--neon-blue);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        0 26px 60px rgba(0, 40, 85, 0.3);
    transform: translateY(-8px);
}

.neon-chip {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--neon-blue);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.neon-eyebrow {
    color: var(--neon-gold);
    text-shadow: 0 0 10px rgba(234, 170, 0, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Code blocks with neon styling */
.code-block {
    font-family: var(--code-font);
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 245, 0.3);
}

/* Timeline with neon accents */
.timeline li::before {
    background: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Neon underline effect for links in neon sections */
.neon-card-hover a {
    position: relative;
    transition: color 0.3s ease;
}

.neon-card-hover a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    transition: width 0.3s ease;
}

.neon-card-hover a:hover::after {
    width: 100%;
}
