/* ===== ShareWave approved Midnight Glass static pages ===== */

:root {
    --bg:#070b14;
    --header:#050b18;
    --panel:rgba(10,23,43,.82);
    --panel2:rgba(13,27,49,.90);
    --line:rgba(94,112,255,.30);
    --line-soft:rgba(148,163,184,.12);
    --text:#f8fafc;
    --muted:#b7c3d7;
    --purple:#7c6cff;
    --indigo:#6366f1;
    --cyan:#27d3f2;
    --green:#22d3b6;
}

* {
    box-sizing:border-box;
}

html {
    background:var(--bg);
}

body {
    margin:0;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
    color:var(--text);
    font-family:Inter,Arial,Helvetica,sans-serif;
    background:
        radial-gradient(circle at 12% 36%,rgba(79,70,229,.10),transparent 27%),
        radial-gradient(circle at 88% 40%,rgba(14,165,233,.08),transparent 26%),
        linear-gradient(180deg,#071120 0%,#070b14 58%,#050914 100%);
}

/* dashboard dotted side waves */
body::before,
body::after {
    content:"";
    position:fixed;
    z-index:0;
    top:135px;
    width:370px;
    height:620px;
    pointer-events:none;
    opacity:.50;
    background-size:11px 11px;
    mask-image:linear-gradient(to bottom,transparent,#000 17%,#000 75%,transparent);
    -webkit-mask-image:linear-gradient(to bottom,transparent,#000 17%,#000 75%,transparent);
}

body::before {
    left:-210px;
    transform:rotate(-9deg) skewY(-12deg);
    background-image:radial-gradient(circle,rgba(124,108,255,.86) 1.35px,transparent 1.55px);
}

body::after {
    right:-210px;
    transform:rotate(9deg) skewY(12deg);
    background-image:radial-gradient(circle,rgba(39,211,242,.78) 1.35px,transparent 1.55px);
}

/* ===== Header ===== */

header {
    position:sticky;
    top:0;
    z-index:50;
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 max(28px,calc((100% - 1180px)/2));
    border-bottom:1px solid rgba(148,163,184,.10);
    background:rgba(4,10,22,.94);
    backdrop-filter:blur(18px);
}

.logo {
    display:flex;
    align-items:center;
    gap:8px;
    color:#fff;
    text-decoration:none;
    font-size:1.32rem;
    font-weight:850;
    letter-spacing:-.04em;
}

.logo::before {
    content:"⚡";
    color:var(--purple);
    font-size:1.45rem;
    filter:drop-shadow(0 0 10px rgba(124,108,255,.45));
}

.logo span {
    color:var(--cyan);
}

nav {
    display:flex;
    align-items:center;
    gap:27px;
}

nav a {
    position:relative;
    padding:23px 0 20px;
    color:#bcc7da;
    text-decoration:none;
    font-size:.84rem;
    font-weight:650;
}

nav a:hover,
nav a:focus-visible {
    color:#fff;
}

nav a::after {
    content:"";
    position:absolute;
    left:50%;
    bottom:14px;
    width:0;
    height:2px;
    border-radius:10px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,var(--purple),var(--cyan));
}

body.page-about nav a[href="/about.html"],
body.page-faq nav a[href="/faq.html"],
body.page-privacy nav a[href="/privacy.html"],
body.page-terms nav a[href="/terms.html"],
body.page-contact nav a[href="/contact.html"] {
    color:#fff;
}

body.page-about nav a[href="/about.html"]::after,
body.page-faq nav a[href="/faq.html"]::after,
body.page-privacy nav a[href="/privacy.html"]::after,
body.page-terms nav a[href="/terms.html"]::after,
body.page-contact nav a[href="/contact.html"]::after {
    width:100%;
}

/* ===== Page shell ===== */

.page {
    position:relative;
    z-index:2;
    width:min(1100px,calc(100% - 40px));
    margin:0 auto;
    padding:30px 0 46px;
    flex:1 0 auto;
}

.card {
    padding:0;
    border:0;
    background:none;
    box-shadow:none;
}

.page-hero {
    max-width:850px;
    margin:0 auto 28px;
    text-align:center;
}

.page-hero h1 {
    margin:0 0 10px;
    font-size:clamp(2rem,3.7vw,2.75rem);
    line-height:1.05;
    letter-spacing:-.045em;
}

.page-hero h1::after {
    content:"";
    display:block;
    width:72px;
    height:3px;
    margin:15px auto 0;
    border-radius:10px;
    background:linear-gradient(90deg,var(--purple),var(--cyan));
}

.page-hero > p,
.hero-copy p {
    max-width:760px;
    margin:13px auto 0;
    color:#c5d0e2;
    line-height:1.65;
}

.compact-hero {
    margin-bottom:22px;
}

h2 {
    color:#f8fafc;
}

p,
li {
    color:var(--muted);
    line-height:1.62;
}

strong {
    color:#f8fafc;
}

a {
    color:#9da8ff;
}

/* ===== About ===== */

.about-feature-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.feature-card {
    position:relative;
    min-height:150px;
    display:grid;
    grid-template-columns:50px 1fr;
    gap:16px;
    padding:22px;
    border:1px solid var(--line-soft);
    border-radius:14px;
    background:
        linear-gradient(145deg,rgba(14,30,55,.88),rgba(8,20,38,.82));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.feature-card:hover {
    border-color:rgba(99,102,241,.38);
}

.feature-icon {
    width:48px;
    height:48px;
    border:1px solid rgba(99,102,241,.48);
    border-radius:13px;
    background:
        radial-gradient(circle at 50% 50%,rgba(124,108,255,.25),transparent 66%),
        rgba(99,102,241,.08);
    position:relative;
}

.feature-icon::before {
    content:"";
    position:absolute;
    inset:13px;
    border:2px solid var(--purple);
    border-radius:6px;
}

.feature-2 .feature-icon {
    border-color:rgba(34,211,182,.45);
}

.feature-2 .feature-icon::before {
    border-color:var(--green);
    border-radius:50%;
}

.feature-3 .feature-icon {
    border-color:rgba(39,211,242,.40);
}

.feature-3 .feature-icon::before {
    border-color:var(--cyan);
    transform:rotate(45deg);
    border-radius:3px;
}

.feature-4 .feature-icon::before {
    border-radius:50%;
    border-color:#a78bfa;
}

.feature-card h2 {
    margin:1px 0 7px;
    font-size:1.02rem;
}

.feature-card p {
    margin:0 0 8px;
    font-size:.91rem;
}

.about-note-wrap {
    max-width:760px;
    margin:22px auto 0;
}

/* ===== FAQ ===== */

body.page-faq .page {
    width:min(900px,calc(100% - 40px));
}

.faq-list {
    display:grid;
    gap:8px;
}

.faq-item {
    overflow:hidden;
    border:1px solid rgba(111,128,180,.18);
    border-radius:10px;
    background:rgba(13,28,51,.80);
}

.faq-question {
    width:100%;
    min-height:47px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:10px 17px;
    border:0;
    color:#f5f7ff;
    background:transparent;
    text-align:left;
    font:inherit;
    font-size:.91rem;
    font-weight:700;
    cursor:pointer;
}

.faq-question:hover {
    background:rgba(99,102,241,.07);
}

.faq-chevron {
    color:#93a4ff;
    font-size:1.1rem;
    transition:transform .18s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform:rotate(180deg);
}

.faq-answer {
    padding:0 17px 15px;
    border-top:1px solid rgba(148,163,184,.08);
}

.faq-answer p {
    margin:13px 0 0;
    font-size:.9rem;
}

/* ===== Privacy + Terms ===== */

body.page-privacy .page,
body.page-terms .page {
    width:min(960px,calc(100% - 40px));
}

.policy-stack {
    display:grid;
    gap:10px;
}

.policy-section {
    padding:17px 20px;
    border:1px solid rgba(111,128,180,.16);
    border-radius:12px;
    background:linear-gradient(145deg,rgba(13,29,53,.82),rgba(8,20,38,.78));
}

.policy-section h2 {
    margin:0 0 6px;
    font-size:1rem;
}

.policy-section p {
    margin:6px 0;
    font-size:.9rem;
}

.policy-note-wrap {
    margin-top:14px;
}

/* ===== Contact ===== */

body.page-contact .page {
    width:min(960px,calc(100% - 40px));
}

.contact-layout {
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(250px,.75fr);
    gap:14px;
    align-items:start;
}

.contact-stack {
    display:grid;
    gap:12px;
}

.contact-section,
.contact-safety {
    padding:20px 22px;
    border:1px solid rgba(111,128,180,.18);
    border-radius:13px;
    background:linear-gradient(145deg,rgba(13,29,53,.86),rgba(8,20,38,.80));
}

.contact-section h2 {
    margin:0 0 8px;
    font-size:1rem;
}

.contact-section p,
.contact-section li {
    margin-top:6px;
    font-size:.91rem;
}

.contact-section ul {
    padding-left:20px;
}

.contact-safety .note {
    margin:0;
}

/* ===== Shared note ===== */

.note {
    padding:15px 18px;
    border:1px solid rgba(124,108,255,.30);
    border-left:3px solid var(--purple);
    border-radius:11px;
    background:linear-gradient(90deg,rgba(99,102,241,.12),rgba(13,27,49,.72));
    color:#c6d0e1;
    line-height:1.6;
}

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

footer {
    position:relative;
    z-index:5;
    min-height:76px;
    margin-top:auto;
    padding:0 max(28px,calc((100% - 1180px)/2));
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:24px;
    border-top:1px solid rgba(148,163,184,.13);
    background:rgba(4,10,22,.94);
}

footer::before {
    content:"⚡  ShareWave";
    justify-self:start;
    color:#f8fafc;
    font-size:1.08rem;
    font-weight:800;
}

footer > div {
    grid-column:2;
    display:flex;
    align-items:center;
    gap:23px;
}

footer > div a[href="/"] {
    display:none;
}

footer a {
    color:#b8c4d8;
    text-decoration:none;
    font-size:.81rem;
}

footer a:hover {
    color:#fff;
}

footer p {
    grid-column:3;
    justify-self:end;
    margin:0;
    color:#aab6ca;
    font-size:.80rem;
    white-space:nowrap;
}

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

@media (max-width:800px) {
    header {
        padding:0 20px;
    }

    nav {
        gap:17px;
    }

    .about-feature-grid,
    .contact-layout {
        grid-template-columns:1fr;
    }

    footer {
        padding:22px;
        grid-template-columns:1fr;
        justify-items:center;
        gap:15px;
        text-align:center;
    }

    footer::before,
    footer > div,
    footer p {
        grid-column:1;
        justify-self:center;
    }
}

@media (max-width:620px) {
    header {
        padding:14px 16px;
        flex-direction:column;
        gap:10px;
    }

    nav {
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
        gap:8px 18px;
    }

    nav a {
        padding:4px 0 8px;
        font-size:.78rem;
    }

    nav a::after {
        bottom:2px;
    }

    .page,
    body.page-faq .page,
    body.page-privacy .page,
    body.page-terms .page,
    body.page-contact .page {
        width:calc(100% - 24px);
        padding-top:24px;
    }

    .page-hero h1 {
        font-size:2rem;
    }

    .feature-card {
        grid-template-columns:42px 1fr;
        padding:18px;
    }

    .feature-icon {
        width:42px;
        height:42px;
    }

    .feature-icon::before {
        inset:11px;
    }

    footer > div {
        flex-wrap:wrap;
        justify-content:center;
    }

    footer p {
        white-space:normal;
    }

    body::before,
    body::after {
        opacity:.27;
    }
}


/* ===== Homepage-matched static header/footer ===== */

.site-header {
    position:sticky;
    top:0;
    z-index:50;
    min-height:64px;
    padding:0;
    border-bottom:1px solid rgba(148,163,184,.10);
    background:rgba(4,10,22,.96);
    backdrop-filter:blur(18px);
}

.site-header-inner {
    width:min(1180px,calc(100% - 56px));
    min-height:64px;
    margin:0 auto;
    display:flex;
    align-items:center;
}

.home-brand {
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
    color:#fff;
    text-decoration:none;
}

.home-brand-bolt {
    color:#7c6cff;
    font-size:1.45rem;
    line-height:1;
    filter:drop-shadow(0 0 10px rgba(124,108,255,.45));
}

.home-brand-name {
    color:#f8fafc;
    font-size:1.32rem;
    font-weight:850;
    letter-spacing:-.04em;
}

.home-brand-name span {
    color:#39d3f2;
}

.home-brand-tagline {
    margin-left:32px;
    color:#9eabc0;
    font-size:.80rem;
    font-weight:600;
    white-space:nowrap;
}

.home-nav {
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:27px;
}

.home-nav a {
    position:relative;
    padding:23px 0 20px;
    color:#bcc7da;
    text-decoration:none;
    font-size:.84rem;
    font-weight:650;
}

.home-nav a:hover,
.home-nav a:focus-visible {
    color:#fff;
}

.home-nav a::after {
    content:"";
    position:absolute;
    left:50%;
    bottom:14px;
    width:0;
    height:2px;
    border-radius:10px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,#7c6cff,#39d3f2);
}

body.page-about .home-nav a[href="/about.html"],
body.page-faq .home-nav a[href="/faq.html"],
body.page-privacy .home-nav a[href="/privacy.html"],
body.page-terms .home-nav a[href="/terms.html"],
body.page-contact .home-nav a[href="/contact.html"] {
    color:#fff;
}

body.page-about .home-nav a[href="/about.html"]::after,
body.page-faq .home-nav a[href="/faq.html"]::after,
body.page-privacy .home-nav a[href="/privacy.html"]::after,
body.page-terms .home-nav a[href="/terms.html"]::after,
body.page-contact .home-nav a[href="/contact.html"]::after {
    width:100%;
}


/* Footer */

.site-footer {
    position:relative;
    z-index:5;
    min-height:76px;
    margin-top:auto;
    padding:0;
    display:block;
    border-top:1px solid rgba(148,163,184,.13);
    background:rgba(4,10,22,.96);
}

.site-footer::before {
    content:none;
}

.site-footer-inner {
    width:min(1480px,calc(100% - 96px));
    min-height:76px;
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(300px,1fr) auto minmax(300px,1fr);
    align-items:center;
    gap:28px;
}

.footer-brand-area {
    display:flex;
    align-items:center;
    gap:20px;
    min-width:0;
}

.footer-brand {
    display:flex;
    align-items:center;
    gap:7px;
    color:#fff;
    text-decoration:none;
    white-space:nowrap;
}

.footer-brand-bolt {
    color:#7c6cff;
    font-size:1.15rem;
    line-height:1;
}

.footer-brand-name {
    color:#f8fafc;
    font-size:1.08rem;
    font-weight:850;
    letter-spacing:-.035em;
}

.footer-brand-name span {
    color:#39d3f2;
}

.footer-tagline {
    color:#aab6ca;
    font-size:.80rem;
    white-space:nowrap;
}

.site-footer .footer-nav {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:25px;
}

.site-footer .footer-nav a {
    padding:0;
    color:#b8c4d8;
    text-decoration:none;
    font-size:.81rem;
    font-weight:500;
}

.site-footer .footer-nav a::after {
    content:none;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus-visible {
    color:#fff;
}

.footer-copyright {
    justify-self:end;
    margin:0;
    color:#aab6ca;
    font-size:.80rem;
    white-space:nowrap;
}


/* Override the earlier generic header/footer rules */

header.site-header .home-brand::before {
    content:none;
}

header.site-header nav.home-nav {
    width:auto;
}

footer.site-footer > .site-footer-inner {
    grid-column:auto;
}

footer.site-footer p.footer-copyright {
    grid-column:auto;
}


/* Responsive */

@media (max-width:1000px) {
    .site-header-inner {
        width:calc(100% - 40px);
    }

    .home-brand-tagline {
        display:none;
    }

    .site-footer-inner {
        width:calc(100% - 40px);
        grid-template-columns:1fr auto;
        padding:18px 0;
        gap:16px 24px;
    }

    .footer-brand-area {
        gap:14px;
    }

    .footer-copyright {
        grid-column:1 / -1;
        justify-self:center;
    }
}

@media (max-width:700px) {
    .site-header {
        padding:0;
    }

    .site-header-inner {
        width:calc(100% - 28px);
        min-height:auto;
        padding:13px 0 10px;
        flex-wrap:wrap;
        justify-content:center;
        gap:9px 16px;
    }

    .home-brand {
        width:100%;
        justify-content:center;
    }

    .home-nav {
        width:100%;
        margin-left:0;
        justify-content:center;
        flex-wrap:wrap;
        gap:6px 18px;
    }

    .home-nav a {
        padding:4px 0 8px;
        font-size:.78rem;
    }

    .home-nav a::after {
        bottom:2px;
    }

    .site-footer-inner {
        width:calc(100% - 28px);
        grid-template-columns:1fr;
        justify-items:center;
        gap:15px;
        padding:22px 0;
        text-align:center;
    }

    .footer-brand-area {
        flex-direction:column;
        gap:7px;
    }

    .site-footer .footer-nav {
        flex-wrap:wrap;
        gap:9px 20px;
    }

    .footer-copyright {
        grid-column:1;
        justify-self:center;
        white-space:normal;
    }
}

/* ===== Contact safety notice above footer ===== */
body.page-contact .contact-safety-bottom {
    width:100%;
    margin-top:auto;
    padding:18px 0 14px;
    border:0;
    border-radius:0;
    background:none;
}

body.page-contact .contact-safety-bottom .note {
    width:100%;
    margin:0 auto;
    padding:11px 18px;
    border:1px solid rgba(124,108,255,.28);
    border-left:3px solid var(--purple);
    border-radius:11px;
    background:linear-gradient(
        90deg,
        rgba(99,102,241,.10),
        rgba(13,27,49,.68),
        rgba(34,211,238,.06)
    );
    color:#c6d0e1;
    font-size:.88rem;
    line-height:1.5;
    text-align:center;
}

@media (max-width:620px) {
    body.page-contact .contact-safety-bottom {
        padding:16px 0 12px;
    }

    body.page-contact .contact-safety-bottom .note {
        padding:10px 14px;
        font-size:.82rem;
        text-align:left;
    }
}

/* ===== Contact final aligned composition ===== */

/* Remove the old two-column allocation now that the safety note is below */
body.page-contact .contact-layout {
    display:block;
}

/* Keep the main contact information centered and consistently sized */
body.page-contact .contact-stack {
    width:min(720px,100%);
    margin:0 auto;
}

/* Align the safety notice with the contact cards above */
body.page-contact .contact-safety-bottom {
    width:min(720px,100%);
    margin:auto auto 0;
    padding:18px 0 14px;
}

/* Keep the notice elegant rather than full-page width */
body.page-contact .contact-safety-bottom .note {
    width:100%;
    box-sizing:border-box;
    padding:11px 18px;
    text-align:center;
}

@media (max-width:620px) {
    body.page-contact .contact-stack,
    body.page-contact .contact-safety-bottom {
        width:100%;
    }

    body.page-contact .contact-safety-bottom .note {
        text-align:left;
    }
}
