/* =====================================================
   SipLive SBC — Public Distribution Site
   ===================================================== */

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

:root {
    --navy: #0b1220;
    --navy2: #0f172a;
    --navy3: #1e293b;
    --sky: #0ea5e9;
    --sky-dark: #0284c7;
    --sky-light: #38bdf8;
    --white: #f8fafc;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --radius: 10px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   HEADER / NAV
   ===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,18,32,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-logo {
    text-decoration: none;
    flex-shrink: 0;
}
.logo-siplive {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
}
.logo-sbc-tag {
    font-size: .7rem;
    font-weight: 700;
    background: var(--sky);
    color: #fff;
    padding: .15rem .4rem;
    border-radius: 4px;
    margin-left: .3rem;
    vertical-align: middle;
    letter-spacing: .08em;
}
.site-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .15s;
}
.site-nav a:hover,
.site-nav a.nav-active { color: var(--white); }
.btn-demo {
    background: var(--sky);
    color: #fff;
    text-decoration: none;
    padding: .45rem 1.1rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.btn-demo:hover { background: var(--sky-dark); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 60%, #0c1a30 100%);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: 760px;
    margin: 0 auto;
}
.hero-eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--sky);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-hero-primary {
    display: inline-block;
    background: var(--sky);
    color: #fff;
    text-decoration: none;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: background .15s, transform .1s;
}
.btn-hero-primary:hover { background: var(--sky-dark); transform: translateY(-1px); }
.btn-hero-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,.15);
    transition: border-color .15s, background .15s;
}
.btn-hero-secondary:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }

/* =====================================================
   SELLING POINTS
   ===================================================== */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}
.selling-points { background: var(--navy2); }
.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.sp-card {
    background: var(--navy3);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.sp-icon { font-size: 2rem; margin-bottom: .75rem; }
.sp-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.sp-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* =====================================================
   HIGHLIGHTS
   ===================================================== */
.highlights { background: var(--navy); }
.hl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.hl-item {
    border-left: 3px solid var(--sky);
    padding-left: 1.25rem;
}
.hl-item h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.hl-item p { color: var(--muted); font-size: .875rem; line-height: 1.6; margin-bottom: .75rem; }
.hl-link { color: var(--sky); text-decoration: none; font-size: .875rem; font-weight: 600; }
.hl-link:hover { text-decoration: underline; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy2), var(--navy3));
    border-top: 1px solid rgba(255,255,255,.06);
}
.cta-section h2 { font-size: 2rem; font-weight: 700; color: var(--white); }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
    background: var(--navy2);
    padding: 4rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.page-hero .section-inner { padding: 0; max-width: 800px; }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; }

/* =====================================================
   FEATURES PAGE
   ===================================================== */
.features-page .section-inner { padding-top: 3rem; padding-bottom: 4rem; }
.features-layout { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .features-layout { grid-template-columns: 1fr; } .features-toc { display: none; } }
.features-toc {
    position: sticky;
    top: 5rem;
    background: var(--navy2);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,.07);
}
.features-toc h4 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.features-toc a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
    padding: .2rem 0;
    transition: color .15s;
}
.features-toc a:hover { color: var(--sky); }
.feature-section { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.feature-section:last-child { border-bottom: none; }
.feature-section h2 { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.feature-section ul { list-style: none; }
.feature-section ul li {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
    padding: .3rem 0 .3rem 1.2rem;
    position: relative;
}
.feature-section ul li::before { content: '→'; position: absolute; left: 0; color: var(--sky); font-size: .75rem; top: .38rem; }

/* =====================================================
   DEMO PAGE
   ===================================================== */
.demo-page .section-inner { padding-top: 3rem; padding-bottom: 4rem; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-cred-card {
    background: var(--navy3);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.demo-cred-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem; }
.cred-row { display: flex; gap: 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cred-row:last-of-type { border-bottom: none; }
.cred-label { font-size: .8rem; color: var(--muted); width: 70px; flex-shrink: 0; }
.cred-value { font-size: .9rem; color: var(--white); }
.demo-note { margin-top: 1.5rem; }
.demo-note h3 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.demo-note ul { list-style: none; }
.demo-note ul li { color: var(--muted); font-size: .875rem; padding: .25rem 0 .25rem 1.25rem; position: relative; }
.demo-note ul li::before { content: '•'; position: absolute; left: 0; color: var(--sky); }
.screenshot-gallery { display: flex; flex-direction: column; gap: 1rem; }
.screenshot-placeholder {
    background: var(--navy3);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .85rem;
}

/* =====================================================
   PRICING PAGE
   ===================================================== */
.pricing-page .section-inner { padding-top: 3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }
.pricing-card {
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    position: relative;
}
.pricing-card.pricing-featured {
    border-color: var(--sky);
    background: linear-gradient(160deg, #0c1e30, var(--navy2));
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sky);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .75rem;
    border-radius: 20px;
    white-space: nowrap;
}
.pricing-tier { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-bottom: .5rem; }
.pricing-price { font-size: 2.25rem; font-weight: 800; color: var(--white); }
.pricing-sub { font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.pricing-features li { color: var(--muted); font-size: .875rem; padding: .4rem 0 .4rem 1.4rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.05); }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--sky); font-weight: 700; }
.pricing-features small { color: #64748b; font-size: .77rem; }
.pricing-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.pricing-note a { color: var(--sky); text-decoration: none; }

/* =====================================================
   DOWNLOAD / CONTACT FORMS
   ===================================================== */
.download-page .section-inner,
.contact-page .section-inner { padding-top: 3rem; padding-bottom: 4rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: #cbd5e1; margin-bottom: .35rem; }
.form-input {
    width: 100%;
    padding: .6rem .85rem;
    background: var(--navy3);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    color: var(--white);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--sky); }
textarea.form-input { resize: vertical; }
.form-success {
    background: rgba(22,163,74,.15);
    border: 1px solid rgba(22,163,74,.4);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    color: #86efac;
    margin-bottom: 2rem;
}
.form-success h2 { color: #4ade80; margin-bottom: .5rem; }
.form-errors {
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.4);
    border-radius: 6px;
    padding: .75rem 1rem;
    color: #fca5a5;
    margin-bottom: 1rem;
    font-size: .875rem;
}

/* =====================================================
   CHANGELOG PAGE
   ===================================================== */
.changelog-page .section-inner { padding-top: 3rem; padding-bottom: 4rem; }
.changelog-entry {
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}
.changelog-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.changelog-version { font-size: 1.1rem; font-weight: 800; color: var(--sky); }
.changelog-date { font-size: .85rem; color: var(--muted); }
.changelog-tag { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; }
.tag-release { background: rgba(14,165,233,.2); color: var(--sky); }
.changelog-entry h2 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.changelog-entry h3 { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); margin: 1rem 0 .4rem; }
.changelog-entry ul { list-style: none; }
.changelog-entry ul li { color: var(--muted); font-size: .875rem; padding: .2rem 0 .2rem 1.2rem; position: relative; }
.changelog-entry ul li::before { content: '+'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }

/* =====================================================
   ADMIN CARD (reused in forms on public pages)
   ===================================================== */
.admin-card {
    background: var(--navy2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    color: var(--white);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--navy2);
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 3rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
}
.footer-brand p { color: var(--muted); font-size: .85rem; margin-top: .75rem; max-width: 300px; line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
}
@media (max-width: 640px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
    .site-nav { display: none; }
}
