/* ============================================================
   AI Advisory — Shared Stylesheet
   Hyprr SEO Inc. DBA AI Advisory | aiadvisoryhq.com
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg-primary:       #0a0a0f;
    --bg-secondary:     #12121a;
    --bg-tertiary:      #1a1a26;
    --accent-primary:   #00d4aa;
    --accent-secondary: #00b894;
    --accent-warm:      #ff6b35;
    --accent-gold:      #f4d03f;
    --text-primary:     #ffffff;
    --text-secondary:   #a0a0b0;
    --text-muted:       #6a6a7a;
    --border-color:     rgba(255,255,255,0.08);
    --glow-primary:     rgba(0, 212, 170, 0.15);
    --glow-warm:        rgba(255, 107, 53, 0.15);
    --nav-height:       72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h4, h5, h6 {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
}

.mono { font-family: 'JetBrains Mono', monospace; }

p { color: var(--text-secondary); }

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

/* ── Layout ────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

/* ── Grid Background ───────────────────────────────────────── */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── Gradient Orbs ─────────────────────────────────────────── */
.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
}

.orb-1 { background: var(--glow-primary); top: -200px; right: -200px; }
.orb-2 { background: var(--glow-warm); bottom: -200px; left: -200px; }

/* ── Navigation ────────────────────────────────────────────── */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

#site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-logo-echo { width: 80px; height: auto; }

/* ── Nav Links ─────────────────────────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.nav-links > li > a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links > li > a.active { color: var(--accent-primary); }

.nav-chevron {
    width: 12px; height: 12px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

/* ── Learn Mega Dropdown ───────────────────────────────────── */
.nav-has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: auto;
    transform: translateY(-8px);
    width: 720px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    z-index: 100;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 16px 16px 0 0;
}

.nav-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-header span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-dropdown-header a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown-header a:hover { color: var(--accent-primary); }

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.nav-dropdown-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.nav-dropdown-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }

.nav-dropdown-col ul li a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 5px;
    display: block;
    transition: color 0.2s, background 0.2s;
    line-height: 1.4;
}

.nav-dropdown-col ul li a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* ── Nav CTA ───────────────────────────────────────────────── */
.nav-cta-btn {
    padding: 0.625rem 1.25rem;
    background: var(--accent-primary);
    color: var(--bg-primary) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-primary);
}

/* ── Mobile nav toggle ─────────────────────────────────────── */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Page Header (inner pages) ─────────────────────────────── */
.page-header {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.page-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-eyebrow::before {
    content: '';
    width: 32px; height: 1px;
    background: var(--accent-primary);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
    max-width: 860px;
}

.page-header h1 span { color: var(--accent-primary); }

.page-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.7;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 36px; height: 1px;
    background: var(--accent-primary);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--glow-primary);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ── Cards — shared base ───────────────────────────────────── */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover { border-color: rgba(0, 212, 170, 0.3); transform: translateY(-3px); }

.card-teal-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    border-radius: 12px 12px 0 0;
}

/* ── Citation / source styles ──────────────────────────────── */
.metric-cite {
    display: block;
    font-size: 0.65rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.35rem;
    text-transform: none;
    letter-spacing: 0;
}

.card-cite {
    display: block;
    font-size: 0.65rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.75rem;
    text-align: center;
}

/* ── Stat blocks ───────────────────────────────────────────── */
.stat-block {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Comparison table ──────────────────────────────────────── */
.comparison-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--bg-tertiary);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-header span { font-weight: 600; font-size: 0.875rem; }
.comparison-header span:last-child { color: var(--accent-primary); }

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1.1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.comparison-row:last-child { border-bottom: none; }
.comparison-row span:first-child { color: var(--text-secondary); font-size: 0.9rem; }
.check { color: var(--accent-primary); font-size: 1.25rem; }
.x { color: var(--text-muted); font-size: 1.25rem; }

/* ── Timeline ──────────────────────────────────────────────── */
.timeline { position: relative; margin-top: 4rem; }

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.timeline-content h4 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.timeline-content p { color: var(--text-secondary); font-size: 0.95rem; }

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--bg-primary);
    z-index: 10;
}

.timeline-duration {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 20px;
    color: var(--accent-primary);
}

/* ── Founding card ─────────────────────────────────────────── */
.founding-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0,212,170,0.08) 0%, rgba(0,184,148,0.04) 100%);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.founding-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.founding-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.25);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.founding-card h3 {
    font-size: 1.65rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* ── Cost cards ────────────────────────────────────────────── */
.cost-card {
    background: rgba(255,107,53,0.05);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.cost-card h4 { font-size: 1.2rem; color: var(--accent-warm); margin-bottom: 1rem; }
.cost-card p { color: var(--text-secondary); font-size: 0.95rem; }

.cost-card-source {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.25rem 0.5rem;
    background: rgba(255,107,53,0.1);
    border-radius: 4px;
}

/* ── Contact form ──────────────────────────────────────────── */
.contact-form { text-align: left; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group .optional { color: var(--text-muted); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; }

.btn-submit {
    width: 100%;
    padding: 1.1rem;
    font-size: 1rem;
    justify-content: center;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success svg { margin-bottom: 1.5rem; }
.form-success h3 { color: var(--accent-primary); margin-bottom: 0.5rem; font-size: 1.5rem; }
.form-success p { color: var(--text-secondary); }

.form-error {
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-error p { color: var(--accent-warm); margin: 0; font-size: 0.9rem; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── Loading spinner ───────────────────────────────────────── */
.loading-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Animate on scroll ─────────────────────────────────────── */
.animate-in { opacity: 1 !important; transform: translateY(0) !important; }

/* ── Footer ────────────────────────────────────────────────── */
#site-footer {
    background: var(--bg-secondary);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-echo { width: 65px; height: auto; }

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

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

.footer-col ul li a:hover { color: var(--accent-primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--accent-primary); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .nav-links > li > a { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
    .nav-dropdown { width: 600px; }
    .nav-dropdown-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        gap: 0.25rem;
        z-index: 999;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }
    .nav-links.open > li > a { padding: 0.875rem 1rem; font-size: 0.95rem; border-radius: 8px; }
    .nav-dropdown { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-top: 1px solid var(--border-color); border-radius: 0; margin-top: 0.25rem; padding: 1rem; background: var(--bg-tertiary); }
    .nav-dropdown::before { display: none; }
    .nav-dropdown-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .nav-mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
    .section { padding: 5rem 0; }
    .container { padding: 0 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; padding-left: 60px; }
    .timeline-content { width: 100%; }
    .timeline-marker { left: 20px; }
    .comparison-header, .comparison-row { grid-template-columns: 1.5fr 1fr 1fr; padding: 1rem; }
    .comparison-row span:first-child { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
