/* Ayotta — Shared Design System
   UI style: Dark Mode First + Glassmorphism nav
   Palette:  Custom brass (warm gold) on dark slate — WCAG AA checked
   Fonts:    Instrument Serif (display) / Inter (body)
   Spacing:  4px base scale — 4, 8, 12, 16, 24, 32, 48, 64, 96
   Radius:   8px components, 14-18px cards, 999px pills               */

:root {
    /* Surfaces */
    --bg:          #151a1f;
    --bg-2:        #1a2027;
    --surface:     #1e252c;
    --surface-2:   #252c34;
    --divider:     rgba(232, 230, 224, 0.08);
    --divider-2:   rgba(232, 230, 224, 0.14);

    /* Typography */
    --ink:         #e8e6e0;   /* primary — 12.4:1 on --bg */
    --ink-2:       #b8b3a9;   /* secondary — 8.2:1 on --bg */
    --ink-3:       #8a857c;   /* muted — 4.6:1 on --bg (AA for large text) */

    /* Accent — brass / warm gold */
    --brass:       #d4a574;   /* 7.1:1 on --bg */
    --brass-hi:    #e6b988;
    --brass-dim:   rgba(212, 165, 116, 0.12);
    --brass-ring:  rgba(212, 165, 116, 0.28);
    --brass-glow:  rgba(212, 165, 116, 0.45);

    /* Status */
    --sage:        #8fb09c;
    --amber:       #e0a050;
    --coral:       #c96a5a;

    /* Shadows */
    --shadow-sm:   0 1px 2px rgba(0,0,0,0.25);
    --shadow-md:   0 4px 16px -4px rgba(0,0,0,0.4);
    --shadow-lg:   0 12px 40px -12px rgba(0,0,0,0.5);
    --shadow-brass: 0 8px 22px -10px rgba(212, 165, 116, 0.5);

    /* Transitions */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --duration:    180ms;

    /* Font families */
    --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Focus ring — visible on keyboard, hidden on click */
:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: var(--brass); text-decoration: none; transition: color var(--duration) var(--ease-out); }
a:hover { color: var(--brass-hi); }

/* Display headings use Instrument Serif */
h1, h2, .display { font-family: var(--font-display); }
h3, h4, h5, h6 { font-family: var(--font-body); }

/* Nav */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(21, 26, 31, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--divider);
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--brass);
    display: flex; align-items: center; justify-content: center;
    color: #2a1f10; font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px;
    font-weight: 600; font-size: 14px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    cursor: pointer; border: none;
}
.btn.btn-primary {
    background: var(--brass);
    color: #1a140a;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 22px -10px rgba(212, 165, 116, 0.6);
}
.btn.btn-primary:hover { background: var(--brass-hi); color: #1a140a; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 12px 28px -10px rgba(212, 165, 116, 0.8); }
.btn.btn-secondary {
    background: transparent; color: var(--ink-2);
    border: 1px solid var(--divider-2);
}
.btn.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    padding: 80px 0 56px;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(212, 165, 116, 0.10), transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--brass-dim);
    border: 1px solid var(--brass-ring);
    border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--brass-hi);
    margin-bottom: 20px;
}
.page-hero h1 {
    font-size: 52px; line-height: 1.08; letter-spacing: -0.01em;
    font-weight: 400; margin-bottom: 20px; color: var(--ink);
    max-width: 720px;
    font-style: italic;
}
.page-hero .lead {
    font-size: 18px; color: var(--ink-2); max-width: 640px;
    line-height: 1.7; margin-bottom: 28px;
}
.brass-accent { color: var(--brass); font-style: italic; font-weight: 600; }

/* Sections */
section { padding: 96px 0; }
.section-header { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.section-eyebrow {
    font-size: 12px; font-weight: 600; color: var(--brass);
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: 42px; line-height: 1.12; letter-spacing: -0.01em;
    font-weight: 400; margin-bottom: 16px; color: var(--ink);
    font-style: italic;
}
.section-header p { font-size: 18px; color: var(--ink-2); }

/* Super cards (platform pillars) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 860px) {
    .pillars-grid { grid-template-columns: 1fr; }
}
.super-card {
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 18px;
    transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    display: flex; flex-direction: column; gap: 18px;
    box-shadow: var(--shadow-sm);
}
.super-card:hover {
    border-color: var(--brass-ring);
    transform: translateY(-3px);
    background: var(--surface-2);
    box-shadow: var(--shadow-lg);
}
.super-card .super-head { display: flex; align-items: center; gap: 14px; }
.super-card .super-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--brass-dim);
    border: 1px solid var(--brass-ring);
    display: flex; align-items: center; justify-content: center;
    color: var(--brass-hi); flex-shrink: 0;
}
.super-card h3 {
    font-size: 24px; font-weight: 700; color: var(--ink);
    letter-spacing: -0.015em; line-height: 1.2;
}
.super-card .super-tag {
    display: inline-block;
    font-size: 11px; font-weight: 700; color: var(--brass-hi);
    text-transform: uppercase; letter-spacing: 0.16em;
    margin-top: 4px;
}
.super-card .super-lead { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.super-card .super-features {
    list-style: none;
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    padding-top: 6px;
    border-top: 1px solid var(--divider);
    margin-top: 4px;
}
@media (max-width: 520px) {
    .super-card .super-features { grid-template-columns: 1fr; }
}
.super-card .super-features li {
    font-size: 13.5px; color: var(--ink-2);
    padding: 10px 0 10px 22px; position: relative;
    line-height: 1.5;
}
.super-card .super-features li strong { color: var(--ink); font-weight: 600; }
.super-card .super-features li:before {
    content: "→"; position: absolute; left: 0; top: 9px;
    color: var(--brass); font-weight: 700;
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 16px;
    transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    box-shadow: var(--shadow-sm);
}
.feature-card:hover { border-color: var(--brass-ring); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--ink); letter-spacing: -0.01em; }
.feature-card p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.feature-card ul { list-style: none; margin-top: 14px; }
.feature-card li { padding: 6px 0 6px 22px; color: var(--ink-2); font-size: 14px; position: relative; }
.feature-card li:before { content: "→"; position: absolute; left: 0; color: var(--brass); font-weight: 600; }

/* Industry chip */
.industry-chip {
    display: inline-block;
    font-size: 11px; font-weight: 700; color: var(--brass-hi);
    text-transform: uppercase; letter-spacing: 0.16em;
    padding: 5px 12px;
    background: var(--brass-dim);
    border: 1px solid var(--brass-ring);
    border-radius: 999px;
    margin-bottom: 14px;
}

/* Audience / industry cards */
.audience {
    background: var(--bg-2);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}
.audience-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.audience-card {
    padding: 32px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--divider);
    transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    box-shadow: var(--shadow-sm);
}
.audience-card:hover { border-color: var(--brass-ring); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.audience-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 14px; color: var(--ink); letter-spacing: -0.01em; }
.audience-card ul { list-style: none; }
.audience-card li { padding: 8px 0; color: var(--ink-2); font-size: 15px; position: relative; padding-left: 24px; }
.audience-card li:before { content: "→"; position: absolute; left: 0; color: var(--brass); font-weight: 600; }

/* Secondary cards */
.secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.secondary-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 12px;
    transition: border-color .2s ease;
}
.secondary-card:hover { border-color: var(--brass-ring); }
.secondary-card h4 { font-size: 15px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.secondary-card p { font-size: 13px; color: var(--ink-2); }

/* Integrations bar */
.integrations-bar {
    padding: 56px 0 72px;
    background: var(--bg-2);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}
.integrations-label {
    text-align: center; font-size: 12px; font-weight: 600;
    color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em;
    margin-bottom: 32px;
}
.integrations-logos {
    display: flex; justify-content: center; align-items: center;
    gap: 14px; flex-wrap: wrap;
}
.integration-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 10px;
    font-weight: 600; color: var(--ink); font-size: 14px;
    transition: border-color .15s ease, background .15s ease;
}
.integration-chip:hover { border-color: var(--brass-ring); background: var(--surface-2); }

/* Credibility */
.credibility {
    padding: 88px 0;
    background: var(--bg);
    color: var(--ink);
    border-top: 1px solid var(--divider);
}
.credibility-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
    align-items: center;
}
.credibility h2 { font-size: 34px; font-weight: 400; font-style: italic; letter-spacing: -0.01em; margin-bottom: 18px; color: var(--ink); }
.credibility p { color: var(--ink-2); font-size: 17px; margin-bottom: 26px; }
.credibility strong { color: var(--brass-hi); font-weight: 600; }
.credibility a.btn { background: transparent; color: var(--brass); border: 1px solid var(--brass-ring); }
.credibility a.btn:hover { background: var(--brass-dim); border-color: var(--brass); color: var(--brass-hi); }
.credibility-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card { padding: 24px; background: var(--surface); border: 1px solid var(--divider); border-radius: 12px; transition: border-color .2s ease; }
.stat-card:hover { border-color: var(--brass-ring); }
.stat-value { font-size: 28px; font-weight: 700; margin-bottom: 6px; color: var(--brass); letter-spacing: -0.01em; }
.stat-label { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* CTA */
.cta-section-wrap { padding: 40px 24px 8px; }
.cta {
    position: relative;
    text-align: center;
    background: var(--surface);
    color: var(--ink);
    padding: 80px 32px;
    border-radius: 20px;
    margin: 24px auto;
    max-width: 1100px;
    border: 1px solid var(--divider-2);
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(212, 165, 116, 0.14), transparent 70%);
    pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: 42px; font-weight: 400; font-style: italic; margin-bottom: 16px; letter-spacing: -0.01em; color: var(--ink); }
.cta p { font-size: 18px; color: var(--ink-2); margin-bottom: 32px; }
.cta .btn { background: var(--brass); color: #1a140a; padding: 16px 32px; font-size: 16px; }
.cta .btn:hover { background: var(--brass-hi); color: #1a140a; transform: translateY(-2px); }

/* Footer */
footer {
    padding: 56px 0 32px;
    border-top: 1px solid var(--divider);
    background: var(--bg-2);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px;
    margin-bottom: 40px;
}
.footer-brand p { color: var(--ink-3); font-size: 14px; margin-top: 14px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.14em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-3); font-size: 14px; }
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--divider);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    color: var(--ink-3); font-size: 13px;
}

/* Blog / content styles */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-card {
    display: block;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 16px;
    transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}
.article-card:hover { border-color: var(--brass-ring); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.article-card .article-meta {
    font-size: 13px; color: var(--ink-3); margin-bottom: 10px;
    display: flex; gap: 16px; align-items: center;
}
.article-card .article-tag {
    font-size: 11px; font-weight: 700; color: var(--brass-hi);
    text-transform: uppercase; letter-spacing: 0.14em;
    padding: 3px 8px;
    background: var(--brass-dim);
    border: 1px solid var(--brass-ring);
    border-radius: 999px;
}
.article-card h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.article-card p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }

/* Prose content (blog posts, FAQ) */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { font-size: 30px; font-weight: 400; font-style: italic; margin: 48px 0 16px; color: var(--ink); letter-spacing: -0.01em; }
.prose h3 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; color: var(--ink); }
.prose p { font-size: 17px; color: var(--ink-2); margin-bottom: 20px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 20px 24px; }
.prose li { font-size: 17px; color: var(--ink-2); padding: 4px 0; line-height: 1.7; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
    border-left: 3px solid var(--brass);
    padding: 12px 24px;
    margin: 24px 0;
    background: var(--brass-dim);
    border-radius: 0 8px 8px 0;
}
.prose blockquote p { color: var(--ink-2); margin-bottom: 0; }

/* FAQ accordion */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--divider);
}
.faq-item:first-child { border-top: 1px solid var(--divider); }
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0;
    cursor: pointer;
    width: 100%; border: none; background: none;
    text-align: left;
    font-family: inherit;
}
.faq-q h3 { font-size: 18px; font-weight: 600; color: var(--ink); flex: 1; padding-right: 16px; }
.faq-q .faq-arrow {
    color: var(--brass); font-size: 20px;
    transition: transform .2s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-q .faq-arrow { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
    padding: 0 0 24px;
    font-size: 16px; color: var(--ink-2); line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
    display: flex; gap: 8px; align-items: center;
    font-size: 13px; color: var(--ink-3);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb .sep { color: var(--ink-3); }

::selection { background: var(--brass-dim); color: var(--ink); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links a:not(.btn) { display: none; }
    section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 28px; }
    .page-hero { padding: 56px 0 40px; }
    .page-hero h1 { font-size: 32px; }
    .credibility-content { grid-template-columns: 1fr; gap: 32px; }
    .cta { padding: 56px 20px; margin: 16px; }
    .cta h2 { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .integrations-logos { gap: 10px; }
    .integration-chip { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .page-hero h1 { font-size: 28px; }
}
