/* ═══════════════════════════════════════════════════════
   NTherm — Shared Design System (matches index.html)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
    --primary-blue:   #c8b87a;
    --primary-green:  #7FB539;
    --primary-orange: #F58220;
    --dark-blue:      #003d5c;
    --ultra-dark:     #001a2b;
    --bg-primary:     #fafbfc;
    --bg-secondary:   #ffffff;
    --text-primary:   #0a1e2e;
    --text-secondary: #4a5d6f;
    --text-tertiary:  #7a8b9c;
    --border-color:   #e2e8f0;
    --success:  #10b981;
    --warning:  #f59e0b;
    --danger:   #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ── Reset ─────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Shared Header ─────────────────────────────────── */
.sh-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(11,14,7,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s;
}
.sh-header.scrolled { box-shadow: var(--shadow-md); }
.sh-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.sh-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex-shrink: 0;
}
.sh-logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #c8b87a, var(--primary-green));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700; font-size: 1rem; color: white;
    box-shadow: var(--shadow-md);
}
.sh-logo-text h1 { font-size:1.05rem; font-weight:700; color:var(--text-primary); letter-spacing:-.02em; }
.sh-logo-text p  { font-size:.72rem; color:var(--text-tertiary); font-weight:500; }
.sh-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.sh-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: .9rem;
    transition: color .3s;
    white-space: nowrap;
}
.sh-nav a:hover, .sh-nav a.active { color: #c8b87a; }
.sh-nav-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-shrink: 0;
}
.sh-btn-outline {
    padding: .6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 600; font-size: .85rem;
    text-decoration: none;
    transition: all .25s;
    white-space: nowrap;
}
.sh-btn-outline:hover { border-color:#c8b87a; color:#c8b87a; }
.sh-btn-primary {
    padding: .65rem 1.4rem;
    background: #c8b87a;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600; font-size: .85rem;
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 4px 14px rgba(0,153,204,.25);
    white-space: nowrap;
}
.sh-btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,153,204,.35); }
.sh-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.sh-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: all .25s;
}
.sh-mobile-menu {
    display: none;
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: rgba(11,14,7,0.98);
    border-bottom: 1px solid rgba(232,228,210,0.10);
    padding: 1rem 2rem 1.5rem;
    flex-direction: column;
    gap: .75rem;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}
.sh-mobile-menu.open { display: flex; }
.sh-mobile-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.sh-mobile-menu a:last-child { border-bottom: none; }
.sh-mobile-menu a:hover { color: #c8b87a; }

/* ── Page Hero (shared across info pages) ──────────── */
.sh-page-hero {
    margin-top: 73px;
    background: linear-gradient(135deg, var(--ultra-dark) 0%, var(--dark-blue) 60%, #004e7a 100%);
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.sh-page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,153,204,.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(127,181,57,.1) 0%, transparent 60%);
}
.sh-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.sh-page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.sh-page-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(0,153,204,.15); border: 1px solid rgba(0,153,204,.3);
    color: #5dd0f5;
    padding: .4rem 1rem; border-radius: 99px;
    font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.sh-page-hero h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: white; font-weight: 700; line-height: 1.15;
    margin-bottom: 1.25rem;
}
.sh-page-hero h1 span { color: #c8b87a; }
.sh-page-hero p {
    color: rgba(255,255,255,.7);
    font-size: 1.1rem;
    max-width: 620px;
    line-height: 1.7;
}

/* ── Section styles ────────────────────────────────── */
.sh-section { padding: 5rem 2rem; }
.sh-section-alt { background: rgba(232,228,210,0.03); }
.sh-container { max-width: 1200px; margin: 0 auto; }
.sh-section-header { margin-bottom: 3.5rem; }
.sh-section-tag {
    display: inline-block;
    background: rgba(200,184,122,.1); color: #c8b87a;
    padding: .4rem 1rem; border-radius: var(--radius-full);
    font-size: .8rem; font-weight: 600; margin-bottom: .75rem;
}
.sh-section-title {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}
.sh-section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

/* ── Shared Footer ─────────────────────────────────── */
.sh-footer {
    background: var(--ultra-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}
.sh-footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.sh-footer-brand-logo {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.25rem;
}
.sh-footer-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #c8b87a, var(--primary-green));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Mono', monospace; font-weight: 700; color: white; font-size: .9rem;
}
.sh-footer-brand-logo span { font-weight:700; font-size:1.1rem; }
.sh-footer-desc {
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.sh-footer-copy { color: rgba(255,255,255,.4); font-size: .8rem; line-height: 1.6; }
.sh-footer-col-title {
    font-weight: 700; font-size: .95rem;
    margin-bottom: 1.25rem;
    color: white;
}
.sh-footer-links { list-style: none; }
.sh-footer-links li { margin-bottom: .7rem; }
.sh-footer-links a {
    color: rgba(255,255,255,.6);
    text-decoration: none; font-size: .875rem;
    transition: color .3s;
}
.sh-footer-links a:hover { color: white; }
.sh-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    color: rgba(255,255,255,.45);
    font-size: .82rem;
}

/* ── Upgrade Banner (dashboard) ────────────────────── */
.upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--ultra-dark), var(--dark-blue));
    border-top: 3px solid #c8b87a;
    box-shadow: var(--shadow-md);
}
.upgrade-banner-text h3 {
    font-family: 'Space Mono', monospace;
    font-size: .95rem; font-weight: 700; color: white; margin-bottom: .2rem;
}
.upgrade-banner-text p { font-size: .82rem; color: rgba(255,255,255,.65); }
.upgrade-banner-right { display: flex; align-items: center; gap: 1rem; }
.upgrade-banner-stats { display: flex; gap: .75rem; }
.upgrade-stat { text-align: center; }
.upgrade-stat-num {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem; font-weight: 700; color: white;
}
.upgrade-stat-lbl { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 1px; }
.btn-upgrade {
    padding: .6rem 1.25rem;
    background: #c8b87a;
    color: white;
    border: none; border-radius: 8px;
    font-weight: 700; font-size: .85rem;
    cursor: pointer; transition: all .2s;
    white-space: nowrap;
}
.btn-upgrade:hover { background: #007fb0; transform: translateY(-1px); }
.premium-active-badge {
    padding: .5rem 1.25rem;
    background: rgba(16,185,129,.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,.3);
    border-radius: var(--radius-full);
    font-weight: 700; font-size: .82rem;
    font-family: 'Space Mono', monospace;
}

/* ── Utility ───────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.75rem; border-radius: var(--radius-full);
    font-weight: 600; font-size: .95rem;
    text-decoration: none; transition: all .3s;
    border: none; cursor: pointer; font-family: 'Work Sans', sans-serif;
}
.btn-primary {
    background: #c8b87a; color: #0b0e07;
    box-shadow: 0 4px 14px rgba(0,153,204,.25);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,153,204,.35); }
.btn-secondary {
    background: rgba(14,18,10,0.98); color: var(--text-primary);
    border: 2px solid var(--border-color);
}
.btn-secondary:hover { border-color:#c8b87a; color:#c8b87a; }
.btn-white { background: rgba(14,18,10,0.98); color: #c8b87a; }
.btn-white:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.15); }

/* ── CTA section ───────────────────────────────────── */
.sh-cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #c8b87a 0%, var(--primary-green) 100%);
    color: white;
    text-align: center;
}
.sh-cta-section h2 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700; margin-bottom: .75rem;
}
.sh-cta-section p {
    font-size: 1.1rem; margin-bottom: 2rem; opacity: .92; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .sh-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .sh-nav { gap: 1.25rem; }
}
@media (max-width: 768px) {
    .sh-nav { display: none; }
    .sh-hamburger { display: flex; }
    .sh-page-hero { padding: 4rem 1.5rem 3rem; }
    .sh-section { padding: 3.5rem 1.5rem; }
    .upgrade-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .sh-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .sh-header-inner { padding: .85rem 1.25rem; }
}
