/* ========== Core variables & reset ========== */

:root {
    --ea-bg: #1F1D22;
    --ea-status-bg: #26242A;
    --ea-amber: #f6b450;
    --ea-cyan: #4fd6ff;
    --ea-border-grey: #3A383F;
    --ea-text: #E5E5EA;
    --ea-text-muted: #A3A3AA;
    --ea-radius-outer: 18px;
    --ea-radius-inner: 12px;
    --ea-shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.55);
    --ea-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--ea-font-sans);
    background: radial-gradient(circle at top, #27242B 0, var(--ea-bg) 40%, #141318 100%);
    color: var(--ea-text);
}

/* ========== Layout helpers ========== */
/* Gradient text link – for things like support@emergentaudio.com */
.ea-link-gradient {
    background: linear-gradient(90deg, var(--ea-amber), var(--ea-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

/* subtle underline */
.ea-link-gradient::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.08em;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--ea-amber), var(--ea-cyan));
    opacity: 0.65;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    transform-origin: left;
}

/* hover / focus: brighter underline */
.ea-link-gradient:hover::after,
.ea-link-gradient:focus-visible::after {
    opacity: 1;
    transform: scaleX(1.03);
}

.ea-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ea-section {
    padding: 3.5rem 0;
}

.ea-section-alt {
    background: rgba(0, 0, 0, 0.2);
}

/* Simple section title helper (used on product page) */
.ea-section-title {
    font-size: 1.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

/* ========== Header & nav ========== */

.ea-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: linear-gradient(to bottom, rgba(15, 14, 18, 0.95), rgba(15, 14, 18, 0.75));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ea-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
}

.ea-brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;

    /* Amber→cyan gradient text */
    background: linear-gradient(90deg, var(--ea-amber), var(--ea-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.ea-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    font-size: 0.9rem;
}

.ea-nav a {
    text-decoration: none;
    color: var(--ea-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
}

.ea-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ea-amber), var(--ea-cyan));
    transition: width 0.18s ease-out;
}

.ea-nav a:hover::after,
.ea-nav a.is-active::after {
    width: 100%;
}

.ea-nav a:hover {
    color: var(--ea-text);
}
/* ========== Top logo banner ========== */

.ea-logo-banner {
    padding: 1.8rem 0 1rem;
    text-align: center;
}

.ea-logo-banner-img {
    display: inline-block;
    max-width: 720px;  /* "nice" size on desktop/4K */
    width: 100%;       /* scale down with the container */
    height: auto;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.8));
}

/* Make it a bit tighter on small screens */
@media (max-width: 720px) {
    .ea-logo-banner {
        padding: 1.4rem 0 0.8rem;
    }

    .ea-logo-banner-img {
        max-width: 320px; /* smaller cap on phones */
    }
}

/* ========== Hero (index) ========== */

.ea-hero {
    padding: 3.5rem 0 2.5rem;
}

.ea-hero-inner {
    display: grid;
    /* Give the logo more real estate than the copy */
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.ea-hero-logo img {
    /* Allow it to grow larger on big screens but still be responsive */
    max-width: min(100%, 640px);
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
}

.ea-hero-copy {
    max-width: 640px;
}

.ea-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    color: var(--ea-cyan);
    margin-bottom: 0.75rem;
}

.ea-hero-title {
    font-size: clamp(1.9rem, 2.4vw + 1.2rem, 2.8rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.ea-hero-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ea-text);
    margin-bottom: 1.6rem;
}

.ea-hero-text strong {
    color: var(--ea-amber);
}

.ea-hero-text em {
    font-style: normal;
    color: var(--ea-cyan);
}

.ea-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

/* Coming in 2026 pill & note */

.ea-hero-note {
    font-size: 0.8rem;
    color: var(--ea-text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ea-coming-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(246, 180, 80, 0.7);
    background: rgba(246, 180, 80, 0.06);
    color: var(--ea-amber);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ========== Buttons ========== */

.ea-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        background-color 0.16s ease-out,
        border-color 0.16s ease-out,
        transform 0.08s ease-out,
        box-shadow 0.16s ease-out,
        color 0.16s ease-out;
}

.ea-btn-primary {
    background: radial-gradient(circle at 10% 0, var(--ea-cyan), var(--ea-amber));
    color: #0a090d;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.ea-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.75);
}

.ea-btn-secondary {
    background: transparent;
    border-color: rgba(246, 180, 80, 0.7);
    color: var(--ea-text);
}

.ea-btn-secondary:hover {
    border-color: var(--ea-cyan);
    color: var(--ea-cyan);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

/* ========== Panels (hardware-style) ========== */

.ea-panel {
    border-radius: var(--ea-radius-outer);
    border: 1px solid rgba(246, 180, 80, 0.8);
    box-shadow: var(--ea-shadow-soft);
    margin-bottom: 2.5rem;
    background: radial-gradient(circle at top left,
        rgba(79, 214, 255, 0.06),
        rgba(246, 180, 80, 0.04),
        transparent 55%);
}

.ea-panel-metal {
    border-radius: calc(var(--ea-radius-outer) - 4px);
    padding: 1.9rem;
    /* temporary solid background instead of a texture */
    background: #222126;
    /* background-image: url("assets/img/brushed-metal.png"); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ea-panel-inner {
    border-radius: var(--ea-radius-inner);
    background: var(--ea-status-bg);
    border: 1px solid var(--ea-border-grey);
    padding: 1.8rem 1.6rem;
}

/* Panel typography */

.ea-panel-inner h1,
.ea-panel-inner h2 {
    color: var(--ea-amber);
    margin-top: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.ea-panel-inner h1 {
    font-size: 1.2rem;
}

.ea-panel-lead {
    margin-top: 0.4rem;
    margin-bottom: 1.3rem;
    color: var(--ea-text);
    font-size: 0.95rem;
}

.ea-subheading {
    color: var(--ea-cyan);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    margin-bottom: 1.4rem;
}

/* Lists */

.ea-list {
    margin: 0;
    padding-left: 1.1rem;
    list-style: none;
}

.ea-list li {
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ea-text);
}

.ea-list li::before {
    content: "•";
    position: absolute;
    left: -0.9rem;
    top: 0.15rem;
    font-size: 0.8rem;
    color: var(--ea-amber);
}

/* Notes & muted text */

.ea-text-muted {
    font-size: 0.86rem;
    color: var(--ea-text-muted);
}

.ea-coming-note {
    margin-top: 1.3rem;
    font-size: 0.9rem;
    color: var(--ea-amber);
}

/* ========== PRODUCT PAGE – Inside the Emergent Channel ========== */

/* Give the product page some space under the sticky header */
.ea-main--product {
    padding-top: 3.5rem;
}

/* Make the product page a bit narrower so cards are taller, not super wide */
.ea-main--product .ea-container {
    max-width: 880px;
}

/* Section wrapper on product.html */
.ea-channel {
    padding: 3.5rem 0 5rem;
}

/* Center the section title just on this section */
.ea-channel .ea-section-title {
    text-align: center;
}

/* 2×3 grid: 5 feature cards + CTA */
.ea-channel-grid {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

/* Individual cards */
.ea-channel-card {
    position: relative;
}

/* 2px amber→cyan outer ring */
.ea-channel-card-border {
    padding: 2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ea-amber), var(--ea-cyan));
}

/* Inner “hardware panel” */
.ea-channel-card-inner {
    border-radius: 20px;
    background: var(--ea-status-bg);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 440px;  /* <- NEW: tune this number to taste */
}


/* Screenshot area – like the old feature-shot:
   - NO cropping
   - Fully visible image, shrunk to fit */
.ea-channel-card-media {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ea-channel-card-media img {
    max-width: 100%;    /* don't overflow the card horizontally */
    max-height: 260px;  /* cap how tall it can get */
    width: auto;        /* let width/height scale together */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* Card typography */
.ea-channel-card-inner h2 {
    font-size: 1.05rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ea-amber);
}

.ea-channel-card-inner p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: var(--ea-text);
}

/* CTA card tweaks */
.ea-channel-card-inner--cta {
    justify-content: space-between;
}

.ea-channel-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.ea-channel-cta-note {
    font-size: 0.78rem;
    opacity: 0.78;
}

.ea-channel-cta-actions .ea-btn-primary {
    width: fit-content;
}

/* Routing & Status: two mini shots side-by-side */
.status-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.status-shots img {
    max-height: 120px;  /* smaller than the big cards */
}

/* Responsive: 1 column on phones */
@media (max-width: 768px) {
    .ea-main--product .ea-container {
        max-width: 100%;
    }

    .ea-channel-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ========== Footer ========== */

.ea-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    padding: 1.4rem 0 1.6rem;
    background: rgba(10, 9, 13, 0.9);
}

.ea-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--ea-text-muted);
}

.ea-footer-note {
    color: var(--ea-cyan);
}

/* ========== Responsive tweaks ========== */

/* Tighter header/nav on medium screens (like 1080p) */
@media (max-width: 1280px) {
    .ea-header-inner {
        padding-inline: 1.25rem;
    }

    .ea-nav {
        gap: 1.25rem;
        font-size: 0.8rem;
        letter-spacing: 0.12em;
    }
}

/* Even tighter if the window gets a bit narrower */
@media (max-width: 1024px) {
    .ea-nav {
        gap: 1rem;
        font-size: 0.78rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 840px) {
    .ea-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .ea-hero {
        padding-top: 2.5rem;
    }

    .ea-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .ea-nav {
        flex-wrap: wrap;
        gap: 0.9rem;
        font-size: 0.78rem;
    }

    .ea-panel-metal {
        padding: 1.4rem;
    }

    .ea-panel-inner {
        padding: 1.4rem 1.2rem;
    }
}

/* Product grid: stack to 1 column on phones */
@media (max-width: 768px) {
    .ea-channel-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "input"
            "output"
            "preamp"
            "rms"
            "routing"
            "cta";
    }
}


@media (max-width: 520px) {
    .ea-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Two mini shots side by side in Routing & Status */
.status-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: none;   /* don’t clamp the whole block */
}

.status-shots img {
    height: auto;
    object-fit: contain; /* keep them intact */
}
/* Gradient text helper – reuse brand colors without changing size */
.ea-gradient-text {
    background: linear-gradient(90deg, var(--ea-amber), var(--ea-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Center the product page heading */
.ea-channel .ea-section-title {
    text-align: center;
}
/* ===== Mobile fixes for index hero ===== */
@media (max-width: 720px) {
    .ea-hero {
        padding: 2.3rem 0 2rem;
    }

    /* Stack hero into a single column and center everything */
    .ea-hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.6rem;
    }

    .ea-hero-logo img {
        max-width: 260px;   /* keep it from dominating the screen */
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .ea-hero-copy {
        max-width: 100%;
        margin: 0 auto;
    }

    .ea-hero-title {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .ea-hero-text {
        font-size: 0.95rem;
    }

    .ea-hero-actions {
        justify-content: center;
    }
}

/* Tighten container & nav a bit on very small phones */
@media (max-width: 480px) {
    .ea-container {
        padding: 0 1rem;
    }

    .ea-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .ea-nav {
        flex-wrap: wrap;
        gap: 0.7rem;
        font-size: 0.78rem;
        letter-spacing: 0.1em;
    }
}
/* ===== Support page layout using the same framed cards ===== */

.ea-support-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "contact    download"
        "activation requirements"
        "faq        faq";   /* FAQ spans both columns */
}


/* Map the support cards to grid areas */
.ea-support-card--contact      { grid-area: contact; }
.ea-support-card--download     { grid-area: download; }
.ea-support-card--activation   { grid-area: activation; }
.ea-support-card--requirements { grid-area: requirements; }
.ea-support-card--faq          { grid-area: faq; }


/* FAQ details inside a card */
.ea-faq-item {
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.ea-faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--ea-amber);
}

.ea-faq-item summary::marker {
    display: none;
}

.ea-faq-item p {
    margin: 0.3rem 0 0.6rem;
    color: var(--ea-text);
}

/* Stack the support cards on phones */
@media (max-width: 768px) {
    .ea-support-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "contact"
            "download"
            "activation"
            "requirements"
            "faq";
    }
}
/* ===== Index page two-card layout using the same framed style ===== */

.ea-index-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.1rem;
    align-items: stretch;
}

/* hook for future tweaks if needed */
.ea-index-card {
    /* empty for now */
}

/* Stack on phones */
@media (max-width: 768px) {
    .ea-index-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* ===== Video card on index – match card width, not full container ===== */

.ea-video-card {
    max-width: 540px;      /* similar to one of your text cards */
    margin: 2.5rem auto 0; /* center it under the two boxes */
}


.ea-video-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 16:9 responsive video embed */
.ea-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    background: #000;
}

.ea-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ea-footer-disclaimer {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    line-height: 1.5;
    opacity: 0.8;
}
/* ========== Download page ========== */

.ea-download-hero {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.ea-download-hero h1 {
    margin-bottom: 0.6rem;
}

.ea-download-hero p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* Panels layout for the download cards */
.ea-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

/* Buttons inside each panel */
.ea-download-label {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ea-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.9rem;
}
/* Stack the Linux download buttons vertically */
/* Linux download buttons: stacked, but not full-card huge */
.ea-channel-card--linux .ea-download-buttons {
    flex-direction: column;
    align-items: center;   /* center the buttons */
}

.ea-channel-card--linux .ea-download-btn {
    flex: 0 0 auto;        /* don’t stretch */
    width: 100%;
    max-width: 360px;      /* tweak to taste: 320–360px works well */
}


.ea-download-btn {
    flex: 1 1 180px;
    justify-content: center;
    text-align: center;
}

/* “Disabled / coming soon” look */
.ea-download-btn-disabled {
    background: rgba(37, 35, 42, 0.9);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: default;
    pointer-events: none;
}

.ea-download-btn-disabled:hover {
    filter: none;
    border-color: var(--border);
}

.ea-download-note {
    margin-top: 0.9rem;
    color: var(--muted);
}
/* Tighter vertical spacing on the download page */
.ea-section--download-hero {
    /* keep the top padding from .ea-section, but shrink the bottom */
    padding-bottom: 1rem;
}

.ea-section--download-hero .ea-download-hero {
    /* was 2.5rem – we only need a little breathing room */
    margin-bottom: 0.5rem;
}

.ea-section--download-grid {
    /* reduce the default 3.5rem top padding for this section only */
    padding-top: 1.5rem;
}
.ea-video-thumb a img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ea-video-thumb a:hover img {
    transform: scale(1.01);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75);
}
/* Make the FAQ card wider on the page */
.ea-section.ea-channel .ea-support-card--faq {
    max-width: 1100px;      /* try 1100–1200px on 1080/1440/4K displays */
    margin-left: auto;
    margin-right: auto;
}
.ea-panel-lead--small {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem; /* new */
    opacity: 1;
}


/* Global link colors (excluding buttons & special gradient links) */
.ea-main a:not(.ea-btn):not(.ea-link-gradient),
.ea-section a:not(.ea-btn):not(.ea-link-gradient),
.ea-footer a:not(.ea-btn):not(.ea-link-gradient) {
    color: #00e5ff;            /* cyan for normal/active links */
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.ea-main a:not(.ea-btn):not(.ea-link-gradient):visited,
.ea-section a:not(.ea-btn):not(.ea-link-gradient):visited,
.ea-footer a:not(.ea-btn):not(.ea-link-gradient):visited {
    color: #ffb347;            /* amber for visited links */
}

/* Optional hover tweak */
.ea-main a:not(.ea-btn):not(.ea-link-gradient):hover,
.ea-section a:not(.ea-btn):not(.ea-link-gradient):hover,
.ea-footer a:not(.ea-btn):not(.ea-link-gradient):hover {
    opacity: 0.85;
}

