/* ShvTerm — Public Site (dark mode exclusivo) */

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.shvterm-site {
    background: #080c14;
    color: #cbd5e1;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.site-brand-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.03em;
}

.site-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex: 1;
}

.site-nav-links li a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.site-nav-links li a:hover,
.site-nav-links li a.active {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.07);
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-site-primary {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 7px;
    text-decoration: none;
    border: none;
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

.btn-site-primary:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn-site-primary:active {
    transform: scale(0.98);
}

.btn-site-primary-lg {
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9px;
}

.btn-site-ghost {
    display: inline-block;
    color: #94a3b8 !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 7px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-site-ghost:hover {
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.btn-site-outline-lg {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 9px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1 !important;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-site-outline-lg:hover {
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

/* ── Mobile nav toggle ───────────────────────────────────────── */
.site-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.site-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: background 0.15s;
}

.site-nav-mobile {
    display: none;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.25rem;
}

.site-nav-mobile a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.15s;
}

.site-nav-mobile a:hover { color: #f1f5f9; }

.site-nav.open .site-nav-mobile { display: flex; }

@media (max-width: 768px) {
    .site-nav-toggle { display: flex; }
    .site-nav-links,
    .site-nav-actions { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.site-hero {
    padding: 7rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.12), transparent);
    pointer-events: none;
}

.site-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.site-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 1.375rem;
}

.site-hero h1 .hero-highlight {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-hero p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.site-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Terminal Mockup ──────────────────────────────────────────── */
.site-terminal-wrap {
    max-width: 780px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}

.site-terminal {
    background: #0f1724;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.site-terminal-bar {
    background: #161d2d;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-dot-red   { background: #ef4444; opacity: 0.7; }
.terminal-dot-yellow{ background: #f59e0b; opacity: 0.7; }
.terminal-dot-green { background: #22c55e; opacity: 0.7; }

.site-terminal-title {
    font-size: 0.75rem;
    color: #475569;
    margin-left: auto;
    margin-right: auto;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.site-terminal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.75;
    color: #94a3b8;
    min-height: 200px;
}

.term-prompt { color: #22c55e; }
.term-cmd    { color: #f1f5f9; }
.term-output { color: #64748b; }
.term-highlight { color: #38bdf8; }
.term-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #38bdf8;
    vertical-align: middle;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Features ────────────────────────────────────────────────── */
.site-features {
    padding: 5rem 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.site-section-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 0.75rem;
}

.site-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.03em;
    margin-bottom: 0.875rem;
}

.site-section-sub {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #0f1724;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.75rem 1.625rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.125rem;
}

.feature-icon svg {
    color: #38bdf8;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.65;
}

/* ── CTA ──────────────────────────────────────────────────────── */
.site-cta {
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(14, 165, 233, 0.08), transparent);
    pointer-events: none;
}

.site-cta-inner {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.site-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.site-cta p {
    color: #64748b;
    font-size: 1.0625rem;
    margin-bottom: 2.25rem;
}

.site-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Placeholder pages (pricing / docs) ──────────────────────── */
.site-placeholder {
    min-height: calc(100vh - 64px - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    text-align: center;
}

.site-placeholder-inner {
    max-width: 420px;
}

.site-placeholder-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #38bdf8;
}

.site-placeholder h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.site-placeholder p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ── Language switcher (bandeiras) ───────────────────────────── */
.site-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-lang-opt {
    display: inline-flex;
    padding: 3px;
    border-radius: 6px;
    line-height: 0;
    opacity: 0.4;
    border: 1px solid transparent;
    transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}

.site-lang-opt:hover { opacity: 0.85; }

.site-lang-opt.active {
    opacity: 1;
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.12);
}

.site-flag svg {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-nav-mobile-lang {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Security (zero-knowledge) ───────────────────────────────── */
.site-security {
    padding: 5.5rem 1.5rem;
    background: #0b1019;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-security-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.site-security-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem 2.5rem;
}

.security-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.security-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}

.security-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.security-text p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.65;
}

.site-security-note {
    text-align: center;
    margin: 3rem auto 0;
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 520px;
}

/* ── Platforms / download ────────────────────────────────────── */
.site-platforms {
    padding: 5.5rem 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.platforms-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem auto 2rem;
}

.platform-card {
    background: #0f1724;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    min-width: 160px;
    color: #38bdf8;
    transition: border-color 0.2s, transform 0.2s;
}

.platform-card:hover {
    border-color: rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
}

.platform-os {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.platform-format {
    font-size: 0.8rem;
    color: #475569;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.site-platforms-note {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 auto 1.75rem;
    max-width: 480px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 1.5rem 2rem;
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-footer-brand {
    max-width: 280px;
}

.site-footer-tagline {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
    line-height: 1.6;
}

.site-footer-cols {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.site-footer-col a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.site-footer-col a:hover { color: #cbd5e1; }

.site-footer-copy {
    max-width: 1180px;
    margin: 2.5rem auto 0;
    font-size: 0.8125rem;
    color: #334155;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 600px) {
    .site-footer-inner { flex-direction: column; gap: 2rem; }
    .site-footer-cols { gap: 2rem; }
}
