/* ====================================================
   ChatPay — Shared Stylesheet
   Used by: index.html, privacy.html, terms.html, support.html
   ==================================================== */

:root {
    --bg-primary: #08090d;
    --bg-secondary: #0e1018;
    --bg-card: #12141c;
    --bg-card-hover: #181b26;
    --accent: #00e599;
    --accent-dim: #00b377;
    --accent-glow: rgba(0, 229, 153, 0.15);
    --accent-glow-strong: rgba(0, 229, 153, 0.3);
    --text-primary: #e8eaf0;
    --text-secondary: #8b8fa3;
    --text-dim: #555870;
    --border: rgba(255,255,255,0.06);
    --border-accent: rgba(0,229,153,0.2);
    --danger: #ff4d6a;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === NOISE TEXTURE OVERLAY === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--bg-primary);
}

.nav-logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.nav-logo-text span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
    background: var(--accent);
    color: var(--bg-primary) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: #00ffaa !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.mobile-menu { display: none; cursor: pointer; color: var(--text-primary); font-size: 24px; }

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 32px;
    font-family: var(--font-mono);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
}

.btn-primary:hover {
    background: #00ffaa;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* === STATS BAR === */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}
.stat-label {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* === SECTIONS === */
.section {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
}

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
}

/* === HOW IT WORKS === */
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    counter-increment: step;
}

.step-card::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.65;
}

/* === SMART CONTRACT === */
.contract-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.contract-section h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.contract-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-weight: 300;
}

.contract-address {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-primary);
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-accent);
    word-break: break-all;
    color: var(--accent);
    margin-bottom: 12px;
}

.contract-link {
    color: var(--text-dim);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.contract-link:hover { color: var(--accent); }

/* === DOWNLOAD === */
.download-section {
    text-align: center;
    padding: 100px 24px;
    position: relative;
}

.download-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    min-width: 220px;
}

.store-btn:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.store-btn-icon { font-size: 32px; }
.store-btn-text { text-align: left; }
.store-btn-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.store-btn-name { font-size: 18px; font-weight: 700; }

/* === TEAM === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-glow), var(--bg-primary));
    border: 2px solid var(--border-accent);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.team-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }

/* === COMMUNITY / SOCIAL MEDIA === */
.social-featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.social-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-featured:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 229, 153, 0.15);
}

.social-featured:hover::before { opacity: 1; }

.social-featured-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-glow);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s;
}

.social-featured:hover .social-featured-icon {
    background: var(--accent);
    color: var(--bg-primary);
}

.social-featured-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-featured-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.social-featured-handle {
    font-size: 0.95rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.social-featured-cta {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* === FOOTER === */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 40px 32px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.footer-links h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1100px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* === LEGAL PAGES === */
.legal-page {
    padding: 120px 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.legal-page .legal-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 14px;
    color: var(--accent);
}

.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-page p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.75;
    text-align: justify;
}

.legal-page ul {
    color: var(--text-secondary);
    margin: 10px 0 18px 24px;
    line-height: 1.75;
}

.legal-page li { margin-bottom: 6px; }

.legal-page strong { color: var(--text-primary); }

.legal-page a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-page a:hover { opacity: 0.8; }

.legal-page .important-box {
    background: rgba(255, 77, 106, 0.08);
    border-left: 3px solid var(--danger);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
}

.legal-page .important-box strong { color: var(--danger); }

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.legal-page th {
    background: var(--bg-card);
    color: var(--accent);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-accent);
}

.legal-page td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.legal-page .contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.legal-page .contact-box p {
    margin-bottom: 6px;
    text-align: left;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    transition: gap 0.2s;
}

.back-to-home:hover { gap: 10px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .features-grid, .how-steps, .team-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-direction: column; gap: 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .contract-section { padding: 32px 20px; }
    .hero { padding: 100px 20px 60px; }
    .social-featured { padding: 36px 24px; }
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
