/* stech-pro.css — professional surface. Load after main.css.
   Rollback: remove the <link> in base.html and restore from
   /home/strangstad/projects/stech/stech/backups/full-before-redesign-*
*/

:root {
    --bg: #070b12;
    --bg-elev: #0c121b;
    --text: #e8eef4;
    --text-muted: #93a0b0;
    --copy: rgba(226, 234, 242, 0.86);

    --steel: #8fb4d4;
    --steel-bright: #c9dcec;
    --steel-deep: #4d6f8c;
    --steel-border: rgba(143, 180, 212, 0.46);
    --steel-bg: rgba(143, 180, 212, 0.10);
    --steel-glow: 0 0 0 1px rgba(143, 180, 212, 0.10), 0 0 18px rgba(143, 180, 212, 0.10);

    --group-saga: #e8c36a;
    --group-saga-border: rgba(232, 195, 106, 0.50);
    --group-aella: #8fb4d4;
    --group-aella-border: rgba(143, 180, 212, 0.50);
    --group-heim: #3dba8a;
    --group-heim-border: rgba(61, 186, 138, 0.48);
    --group-thala: #7cb87c;
    --group-thala-border: rgba(124, 184, 124, 0.48);
    --group-skard: #a3b86c;
    --group-skard-border: rgba(163, 184, 108, 0.50);

    --card: rgba(12, 18, 27, 0.78);
    --border: rgba(168, 186, 204, 0.14);
    --radius: 12px;
    --font: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

[data-theme="dusk"],
[data-theme="light"] {
    --bg: #141a24;
    --bg-elev: #1b2230;
    --text: #e6ebf2;
    --text-muted: #9aa6b5;
}

html { color-scheme: dark; }
body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    letter-spacing: 0.01em;
}
body::before {
    background:
        radial-gradient(900px 420px at 8% -6%, rgba(143, 180, 212, 0.10), transparent 58%),
        radial-gradient(800px 380px at 96% 0%, rgba(61, 186, 138, 0.06), transparent 52%),
        linear-gradient(180deg, rgba(7, 11, 18, 0.62), rgba(7, 11, 18, 0.86));
}

/* —— Type —— */
h1, h2, h3, h4, .prod-title, .hero-vision__title {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    background: none;
    -webkit-background-clip: unset;
    color: var(--text);
    filter: none;
}
.prod-title,
.hero-vision .prod-title,
.hero-vision__title,
.page-head .prod-title,
.pg-page-head .prod-title,
.shop-header .prod-title,
.aella-hero h2,
.aella-hero .prod-title {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    line-height: 1.28;
    max-width: none;
    width: 100%;
    margin: 0 0 0.7rem;
}
.prod-eyebrow, .eyebrow {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel);
    text-shadow: none;
    margin: 0 0 0.4rem;
}
.lead, .hero-sell {
    font-size: 1.04rem;
    line-height: 1.6;
    color: var(--copy);
    margin: 0 0 0.25rem;
}
.page-head .lead,
.pg-page-head .lead,
.shop-header .lead,
.shop-header__copy .lead,
.hero-vision .lead,
.hero-sell {
    max-width: none;
    width: 100%;
}
.page-head,
.pg-page-head {
    margin: 0 0 1.5rem;
    width: 100%;
    max-width: none;
}
.software-page {
    max-width: 1200px;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}
.container.software-page {
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
}
.playground-page {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.pg-page-head .lead,
.software-page .page-head .lead,
.playground-page .page-head .lead {
    font-size: 1.04rem;
    line-height: 1.6;
    margin: 0 0 0.25rem;
}
.shop-header {
    width: 100%;
    align-items: flex-start;
}
.shop-header .page-head,
.shop-header__copy {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
}

/* —— Chrome —— */
.header {
    background: rgba(7, 11, 18, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}
.logo-container img {
    height: 42px;
    filter: none;
}
.nav-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    letter-spacing: 0.02em;
}
.nav-btn:hover,
.nav-btn.active,
.nav-btn[aria-current="page"] {
    border-color: var(--steel-border);
    background: var(--steel-bg);
    color: var(--steel-bright);
    box-shadow: none;
}
.footer {
    background: rgba(7, 11, 18, 0.9);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    color: var(--text-muted);
}
.footer-links a {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--steel-bright);
    border-color: var(--steel-border);
    background: transparent;
}
.footer-links a.active,
.footer-links a[aria-current="page"] {
    color: var(--steel-bright);
    border-color: var(--steel-border);
    background: var(--steel-bg);
}

/* —— One button language —— */
.cta-button,
.cta-button--ghost,
.cta-button--action,
a.cta-button,
button.cta-button,
#shop-build-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid var(--steel-border);
    background: var(--steel-bg);
    color: var(--steel-bright);
    box-shadow: var(--steel-glow);
    transform: none;
    text-decoration: none;
}
.cta-button:hover,
.cta-button--ghost:hover,
.cta-button--action:hover,
#shop-build-open:hover {
    transform: none;
    border-color: rgba(201, 220, 236, 0.72);
    background: rgba(143, 180, 212, 0.18);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(143, 180, 212, 0.18), 0 0 20px rgba(143, 180, 212, 0.16);
}

/* —— Hero —— */
.hero-vision {
    padding: 0.6rem 0 1.4rem;
}
.hero-vision::after { content: none; }
.hero-actions { margin-top: 1.15rem; gap: 0.55rem; }

/* —— Path steps: number on the title line —— */
.path-line { margin: 1.5rem 0 1.75rem; }
.path-line .page-head { margin: 0 0 1rem; }
.path-line .page-head .prod-title { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.path-line li {
    padding: 0.8rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
}
.path-line__n {
    display: inline;
    width: auto;
    height: auto;
    margin: 0 0.38rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    color: var(--steel);
    font-size: inherit;
    font-weight: 700;
}
.path-line strong { display: inline; margin: 0; color: var(--text); }
.path-line li p { margin: 0.35rem 0 0; color: var(--text-muted); }

/* —— Surfaces: do not flatten group borders —— */
.card,
.vision-card,
.site-story,
.install-preview__card,
.stack-card,
.sol-primary__card {
    background: var(--card);
    box-shadow: var(--shadow);
}
.card:hover,
.eco-card:hover,
.aella-channel:hover,
.vision-card:hover {
    transform: none;
}

/* —— Install groups (one colour per bundle) —— */
.platform-group--saga,
.card--saga { border-color: var(--group-saga-border) !important; }
.platform-detail--saga,
.platform-detail--rune,
.platform-detail--edda {
    border-left: 3px solid var(--group-saga) !important;
    border-color: var(--group-saga-border);
}
.eco-row--required .eco-node,
.eco-node--core { border-color: var(--group-saga-border) !important; }
.platform-badge--saga {
    color: var(--group-saga);
    border-color: var(--group-saga-border);
    background: rgba(232, 195, 106, 0.12);
}

.platform-group--aella,
.card--aella,
.card--stella,
.card--skjal,
.eco-card--aella,
.install-preview__card--aella { border-color: var(--group-aella-border) !important; }
.platform-detail--aella,
.platform-detail--stella,
.platform-detail--skjal {
    border-left: 3px solid var(--group-aella) !important;
    border-color: var(--group-aella-border);
}
.eco-row--aella .eco-node,
.eco-node--aella,
.eco-node--stella,
.eco-node--skjal { border-color: var(--group-aella-border) !important; }
.card--aella,
.card--stella,
.card--skjal { border-top-color: var(--group-aella) !important; }
.platform-group--aella .platform-badge,
.platform-badge--skjal {
    color: var(--steel-bright);
    border-color: var(--group-aella-border);
    background: var(--steel-bg);
}

/* Independent products — green family, distinct */
.platform-detail--heim,
.eco-card--heim,
.eco-node--heim,
.card--heim {
    border-color: var(--group-heim-border) !important;
    border-left-color: var(--group-heim) !important;
}
.platform-detail--thala,
.eco-node--thala,
.card--thala,
.core-chip--thala {
    border-color: var(--group-thala-border) !important;
}
.platform-detail--thala { border-left: 3px solid var(--group-thala) !important; }
.card--thala { border-top-color: var(--group-thala) !important; }

.platform-group--skard,
.card--skard,
.platform-detail--coin,
.eco-card--coin,
.eco-node--skard {
    border-color: var(--group-skard-border) !important;
}
.platform-detail--coin,
.eco-card--coin { border-left-color: var(--group-skard) !important; }
.card--skard { border-top-color: var(--group-skard) !important; }

/* —— Stills: keep photos, quiet frame —— */
.product-still {
    background: #0a0e14;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
}
.product-still:hover { transform: none; }
.product-still img,
.product-still:hover img {
    transform: none;
    filter: none;
}
.product-still figcaption {
    padding: 0.5rem 0.7rem 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* —— Advisory banner fades —— */
.beta-banner {
    background: rgba(7, 11, 18, 0.95);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    transition: opacity 0.45s ease, max-height 0.45s ease, padding 0.45s ease;
    max-height: 3rem;
    overflow: hidden;
}
.beta-banner.is-hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
}

.chat-demo-banner {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--steel-border);
    background: var(--steel-bg);
    color: var(--steel-bright);
    font-size: 0.76rem;
    font-weight: 600;
}

.trust-pill {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.site-story {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1.3rem;
}

.aella-wireframe {
    box-shadow: 0 0 0 1px var(--group-aella-border);
}

/* Feature ticks follow steel, not pink */
.feature-list li::before { color: var(--steel); }

@media (max-width: 720px) {
    .hero-actions { gap: 0.45rem; }
}
