/* ============================================
   DeepResearch2AGI — Editorial Science Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Design Tokens ---------- */
:root {
    /* Palette — warm editorial */
    --ink: #0F1B2D;
    --ink-soft: #2A3A52;
    --paper: #FAFAF7;
    --paper-warm: #F5F2EC;
    --paper-cool: #F0F3F8;
    --card-bg: #FFFFFF;
    --gold: #C9A227;
    --gold-light: #E8D48B;
    --gold-soft: rgba(201,162,39,0.08);
    --navy: #0A4D8C;
    --navy-deep: #062845;
    --navy-light: #3786C4;
    --terracotta: #B8472A;
    --terracotta-soft: rgba(184,71,42,0.06);
    --bio-green: #2E9E5B;
    --bio-purple: #7B4FB8;
    --border: rgba(15,27,45,0.08);
    --border-strong: rgba(15,27,45,0.14);
    --text: #1E2B3A;
    --text-secondary: #5A6B7F;
    --text-muted: #8A9AAB;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 4px rgba(15,27,45,0.06);
    --shadow: 0 4px 20px rgba(15,27,45,0.08);
    --shadow-lg: 0 12px 48px rgba(15,27,45,0.12);
    --transition: 0.3s cubic-bezier(0.22,1,0.36,1);
    --font-display: 'Cormorant Garamond', 'Georgia', 'Songti SC', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-mono: 'JetBrains Mono', "SF Mono", Consolas, monospace;
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

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

/* ---------- Reading Progress Bar ---------- */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--terracotta));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    background: rgba(250,250,247,0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 14px 0;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.nav-logo {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

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

.nav-links a {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    color: #fff;
    padding: 9px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--navy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15,27,45,0.15);
}

.nav-back {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

.nav-back:hover { color: var(--ink); }

/* ---------- Hero (Homepage) ---------- */
.hero {
    background: var(--ink);
    padding: 90px 32px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 25% 20%, rgba(201,162,39,0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 80%, rgba(10,77,140,0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(184,71,42,0.06) 0%, transparent 70%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 11px;
    color: var(--gold-light);
    margin-bottom: 32px;
    border: 1px solid rgba(201,162,39,0.2);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 52px;
    color: #fff;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 400;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: inline-flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.hero-cta-primary {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 4px 24px rgba(201,162,39,0.25);
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,162,39,0.35);
}

.hero-cta-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero-cta-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 0;
    margin-top: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
    flex: 1;
    padding: 28px 16px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.hero-stat:last-child { border-right: none; }

.hero-stat .num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1.1;
}

.hero-stat .num .unit {
    font-size: 20px;
    font-weight: 500;
    margin-left: 2px;
}

.hero-stat .label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ---------- Content Container ---------- */
.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 72px 28px 88px;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-label::before, .section-label::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 14px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ---------- Article Cards ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 72px;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.article-card-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
}

.article-card-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
}

.article-card-banner .banner-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 1;
}

.article-card-body {
    padding: 28px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.article-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.article-card-meta .date {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 400;
}

.article-card-meta .read-more {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin-left: auto;
    transition: gap var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card:hover .read-more { gap: 8px; }

/* ---------- Feature Cards ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    background: var(--gold-soft);
    border: 1px solid rgba(201,162,39,0.12);
}

.feature-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 56px 44px;
    text-align: center;
    margin-bottom: 56px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(10,77,140,0.15) 0%, transparent 50%);
}

.cta-section h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--ink);
    padding: 13px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,162,39,0.3);
}

/* ---------- Trust Ribbon ---------- */
.trust-ribbon {
    background: var(--paper-warm);
    border-bottom: 1px solid var(--border);
    padding: 32px 28px;
}

.trust-ribbon-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.trust-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 20px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.trust-logo {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}

/* ---------- Industries ---------- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.industry-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.industry-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold);
    margin-bottom: 22px;
}

.industry-icon svg {
    width: 24px;
    height: 24px;
}

.industry-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
}

.industry-link {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.industry-card:hover .industry-link {
    gap: 8px;
}

/* ---------- Methodology ---------- */
.methodology-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 72px;
}

.method-step {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.method-step:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.method-step::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--terracotta));
}

.step-num {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    line-height: 1;
}

.method-step h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.method-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 72px;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.about-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---------- Contact Section ---------- */
.contact-section {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 56px;
    margin-bottom: 56px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(201,162,39,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(10,77,140,0.18) 0%, transparent 50%);
}

.contact-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.contact-content {
    flex: 1;
}

.contact-content h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-content p {
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.contact-btn-primary {
    background: var(--gold);
    color: var(--ink);
}

.contact-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,162,39,0.3);
}

.contact-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.contact-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 260px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-key {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.contact-value {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    padding: 64px 32px 32px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-main {
    max-width: 320px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 22px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.footer-main p {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 6px;
}

.footer-links-group {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col h5 {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 24px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-mono);
}

/* ---------- Article Page Styles ---------- */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 28px 88px;
}

.article-hero {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 64px 44px;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(184,71,42,0.08) 0%, transparent 45%);
}

.article-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.article-hero-content { position: relative; z-index: 1; }

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,162,39,0.12);
    backdrop-filter: blur(8px);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 11px;
    color: var(--gold-light);
    margin-bottom: 28px;
    border: 1px solid rgba(201,162,39,0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.article-hero h1 {
    font-family: var(--font-display);
    font-size: 36px;
    color: #fff;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.article-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    line-height: 1.65;
    max-width: 580px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---------- Article Body ---------- */
.article-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    margin: 56px 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.article-body h2 .h2-icon { margin-right: 10px; }

.article-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy-deep);
    margin: 40px 0 18px;
    line-height: 1.35;
}

.article-body p { margin-bottom: 20px; }

.article-body strong {
    color: var(--ink);
    font-weight: 700;
}

.article-body em {
    color: var(--bio-purple);
    font-style: italic;
    font-weight: 500;
}

.article-body a {
    color: var(--navy);
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
    transition: border-color var(--transition);
}

.article-body a:hover { border-bottom-color: var(--terracotta); }

.article-body ul, .article-body ol {
    margin: 22px 0 22px 28px;
}

.article-body li { margin-bottom: 12px; }

.article-body blockquote {
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, var(--gold-soft) 0%, transparent 100%);
    padding: 22px 28px;
    margin: 28px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
    color: var(--ink-soft);
    font-style: italic;
}

.article-body blockquote strong {
    color: var(--gold);
    font-weight: 700;
    font-style: normal;
}

/* ---------- Code Block ---------- */
.code-block {
    background: var(--ink);
    color: #C8D3E5;
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin: 28px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    border: 1px solid rgba(255,255,255,0.06);
}

.code-block .code-comment { color: #5A6B7F; }
.code-block .code-keyword { color: var(--gold-light); }
.code-block .code-string { color: #6BCE8A; }

/* ---------- Info Card ---------- */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    margin: 32px 0;
    box-shadow: var(--shadow-sm);
}

.info-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.info-card-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.info-card-body th, .info-card-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.info-card-body th {
    font-weight: 700;
    color: var(--ink);
    background: var(--paper-warm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-body td code {
    background: var(--gold-soft);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--navy);
}

.info-card-body p { margin-bottom: 8px; }
.info-card-body p strong { color: var(--ink); }

/* ---------- Table of Contents ---------- */
.toc {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 0 0 40px;
    box-shadow: 0 2px 12px rgba(15,27,45,0.06);
}

.toc-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 0;
}

.toc-list li a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, padding-left 0.2s;
    line-height: 1.5;
}

.toc-list li:last-child a { border-bottom: none; }

.toc-list li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 28px;
}

.toc-list li a:hover {
    color: var(--navy);
    padding-left: 6px;
}

.toc-list li a .toc-icon {
    margin-right: 4px;
    font-size: 15px;
}

/* ---------- Takeaway Card ---------- */
.takeaway-card {
    background: linear-gradient(135deg, var(--paper-warm) 0%, var(--gold-soft) 100%);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: var(--radius);
    padding: 36px 32px;
    margin: 40px 0;
}

.takeaway-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.takeaway-card ol { margin-left: 22px; }

.takeaway-card ol li {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.75;
}

.takeaway-card ol li strong { color: var(--ink); }

/* ---------- Article Footer ---------- */
.article-footer {
    margin-top: 64px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.article-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.article-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.article-footer .footer-links a {
    font-size: 13px;
    color: var(--navy);
    font-weight: 600;
    transition: color var(--transition);
}

.article-footer .footer-links a:hover { color: var(--gold); }

.article-footer a.btn,
.article-footer .article-footer-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    background: var(--paper-warm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.article-footer a.btn:hover,
.article-footer .article-footer-back:hover {
    color: var(--ink);
    border-color: var(--gold);
    background: #fff;
    transform: translateY(-1px);
}

.article-footer .article-footer-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.article-footer .article-footer-tags .tag {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 100px;
    background: var(--paper-cool);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Article pages: simplified footer (no footer-inner grid) */
.footer-divider {
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 20px auto 24px;
}

.footer > .footer-brand {
    display: block;
    text-align: center;
    margin: 0 auto 0;
    max-width: 960px;
}

.footer > p {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
    margin: 0 auto 6px;
    max-width: 960px;
}

.footer > p.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    margin-top: 20px;
}

.footer .footer-inner > .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer .footer-inner > .footer-brand strong {
    font-family: var(--font-display);
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.footer .footer-inner > .footer-brand span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer .footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
}

.footer .footer-inner:has(.footer-copy):not(:has(.footer-main)) {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

@media (max-width: 768px) {
    .footer .footer-inner:has(.footer-copy):not(:has(.footer-main)) {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ---------- OpenDeploy CTA ---------- */
.opendeploy-cta {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px 56px;
}

.opendeploy-cta-inner {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.opendeploy-cta-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(10,77,140,0.12) 0%, transparent 50%);
}

.opendeploy-cta-inner > * { position: relative; z-index: 1; }

.opendeploy-cta-inner h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
}

.opendeploy-cta-inner p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 18px;
}

.opendeploy-cta-inner .invite-code {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    margin-bottom: 20px;
}

.opendeploy-cta-inner .invite-code span:first-child {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.opendeploy-cta-inner .invite-code span:last-child {
    color: var(--gold-light);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: var(--font-mono);
}

.opendeploy-cta-inner a.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--ink);
    padding: 13px 30px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

.opendeploy-cta-inner a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,162,39,0.3);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero-sub { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-cta { width: 100%; max-width: 320px; justify-content: center; }
    .hero-stats { flex-direction: column; }
    .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .hero-stat:last-child { border-bottom: none; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .trust-logos { gap: 8px; }
    .trust-logo { font-size: 13px; padding: 6px 14px; }
    .industries-grid { grid-template-columns: 1fr; }
    .methodology-steps { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-section { padding: 40px 28px; }
    .contact-inner { flex-direction: column; align-items: flex-start; gap: 36px; }
    .contact-info { width: 100%; }
    .footer-inner { flex-direction: column; gap: 40px; }
    .footer-links-group { flex-wrap: wrap; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .articles-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 28px; }
    .article-hero h1 { font-size: 26px; }
    .article-hero { padding: 44px 28px; }
    .article-body h2 { font-size: 22px; }
    .article-body h3 { font-size: 18px; }
    .code-block { font-size: 12px; padding: 18px 20px; }
    .cta-section { padding: 40px 28px; }
    .cta-section h3 { font-size: 22px; }
    .article-footer .footer-links { gap: 16px; }
}

/* ---------- Data Table (article body) ---------- */
.article-body .data-table {
    overflow-x: auto;
    margin: 24px 0 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.article-body .data-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}

.article-body .data-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--ink);
    background: var(--paper-warm);
    border-bottom: 2px solid var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body .data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    line-height: 1.6;
}

.article-body .data-table tr:last-child td { border-bottom: none; }
.article-body .data-table tr:hover td { background: var(--paper-cool); }

/* ---------- References ---------- */
.references {
    margin: 24px 0;
    padding: 28px 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.references ol {
    margin: 0;
    padding-left: 24px;
    list-style: decimal;
}

.references li {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.references li em {
    color: var(--navy);
    font-style: italic;
    font-weight: 500;
}

.references li a {
    color: var(--navy);
    font-weight: 500;
    border-bottom: 1px solid var(--gold);
    text-decoration: none;
}

/* ---------- Paper Info ---------- */
.article-body .paper-info {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.article-body .paper-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.article-body .paper-info p strong {
    color: var(--gold);
    font-weight: 700;
    display: inline-block;
    min-width: 80px;
}

@media (max-width: 480px) {
    .hero { padding: 64px 20px 56px; }
    .hero h1 { font-size: 28px; }
    .content { padding: 48px 20px 64px; }
    .article { padding: 32px 20px 64px; }
    .article-hero { padding: 36px 20px; }
    .article-hero h1 { font-size: 22px; }
    .nav-inner { padding: 0 20px; }
    .nav-brand { font-size: 18px; }
    .references { padding: 20px 18px; }
    .article-body .data-table { font-size: 12px; }
}
