/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* --- CSS VARIABLES --- */
:root {
    --primary: #f97316; /* Orange */
    --secondary: #eab308; /* Amber/Gold */
    --accent: #22c55e; /* Green for positive */
    --negative: #ef4444; /* Red for negative */
    --background: #09090b; /* Near Black */
    --surface: #18181b; /* Zinc 900 */
    --card: #27272a; /* Zinc 800 */
    --text: #fafafa; /* White */
    --muted: #71717a; /* Zinc 500 */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
}

/* --- GLOBAL STYLES & RESETS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

#matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 3rem; text-shadow: 0 0 15px var(--primary); }
h2 { font-size: 2.25rem; text-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* --- UTILITY & ANIMATION --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}
.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--background);
    box-shadow: 0 0 15px var(--secondary);
}

/* --- PRICE TICKER --- */
.price-ticker-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    padding: 0.5rem 0;
    z-index: 1001;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--surface);
}
.price-ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
    font-family: var(--font-body);
}
.ticker-item {
    margin: 0 1.5rem;
    color: var(--text);
    font-size: 0.9rem;
}
.positive { color: var(--accent); }
.negative { color: var(--negative); }
.ticker-disclaimer {
    position: absolute;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--muted);
    background: #000;
    padding: 0 0.5rem;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 40px;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--surface);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.logo-hexagon { width: 40px; height: 40px; fill: var(--primary); transition: transform 0.3s ease; }
.logo-icon { width: 20px; height: 20px; position: absolute; left: 10px; top: 10px; fill: var(--text); }
.logo span { margin-left: 0.5rem; }
.logo:hover .logo-hexagon { transform: rotate(60deg); }

.main-nav a {
    color: var(--muted);
    margin: 0 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--text);
}
.main-nav a:hover::after {
    width: 100%;
}


/* --- HERO SECTION --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.hero-content { z-index: 2; max-width: 800px; }
.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(249, 115, 22, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(249, 115, 22, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: grid-pan 20s linear infinite;
    z-index: 1;
}
@keyframes grid-pan {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* --- DISCLAIMER BOX --- */
.disclaimer-box-section { padding: 0; }
.disclaimer-box {
    border: 2px solid var(--primary);
    background-color: rgba(249, 115, 22, 0.05);
    padding: 2rem;
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    border-radius: 8px;
}
.disclaimer-box h2 { color: var(--primary); }
.disclaimer-box p { color: var(--text); font-size: 0.9rem; }
.disclaimer-box strong { color: var(--negative); font-weight: 700; }

/* --- INTRO SECTION --- */
.intro-section { text-align: center; max-width: 900px; }
.intro-section p { font-size: 1.1rem; color: var(--muted); }

/* --- ANALYSIS METHODS --- */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    background-color: var(--card);
    border: 1px solid var(--surface);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(9, 9, 11, 0.5), 0 0 20px rgba(249, 115, 22, 0.4);
}
.card img {
    border-radius: 4px;
    margin: 1.5rem 0;
    height: 150px;
    width: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.card-icon {
    font-size: 2.5rem;
    line-height: 1;
}
.card h3 {
    margin-top: 1rem;
    color: var(--text);
}
.card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- CRYPTO BASICS (TABS) --- */
.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--surface);
}
.tab-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-heading);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.tab-btn:hover {
    color: var(--text);
}
.tab-btn.active {
    color: var(--primary);
}
.tab-btn.active::after {
    width: 100%;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-pane.active {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}
.tab-pane img { border-radius: 8px; }
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- LIVE CHART --- */
.chart-container {
    background-color: var(--card);
    border: 1px solid var(--surface);
    padding: 1rem;
    border-radius: 8px;
}
.chart-image { filter: invert(0.9) hue-rotate(180deg) contrast(1.2); }
.chart-disclaimer { text-align: center; color: var(--muted); margin-top: 1rem; font-size: 0.8rem; }

/* --- GLOSSAR & FAQ (ACCORDION) --- */
.accordion { max-width: 900px; margin: 0 auto; }
.accordion-item {
    background-color: var(--card);
    border: 1px solid var(--surface);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.accordion-header {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}
.accordion-header::after {
    content: '>';
    position: absolute;
    right: 1.5rem;
    font-family: var(--font-body);
    font-weight: bold;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header::after {
    transform: rotate(-90deg);
}
.accordion-item.active .accordion-header { background-color: var(--surface); }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--muted);
    border-top: 1px solid var(--surface);
    padding-top: 1.5rem;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--surface);
    border: 1px solid var(--card);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}
.contact-info p { color: var(--muted); }
.contact-info strong { color: var(--text); }
.map-container { margin-top: 2rem; }

/* --- FOOTER --- */
.site-footer {
    background-color: var(--surface);
    padding-top: 4rem;
    font-size: 0.9rem;
    border-top: 2px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    background-color: var(--background);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--card);
}
.footer-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}
.footer-disclaimer { margin-top: 0.5rem !important; }

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--card);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--primary);
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    position: relative;
    animation: modal-pop 0.3s ease-out;
}
@keyframes modal-pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.close-btn {
    color: var(--muted);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-btn:hover { color: var(--text); }


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .contact-grid, .tab-pane.active { grid-template-columns: 1fr; }
    .tab-pane.active img { max-width: 300px; margin: 0 auto 2rem auto; }
}

@media (max-width: 768px) {
    .site-header .container { flex-wrap: wrap; }
    .main-nav {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    .main-nav a { margin: 0 0.5rem; }
    .hero-section { padding-top: 220px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .modal-content { width: 95%; padding: 2rem; }
}

@media (max-width: 576px) {
    .price-ticker-container { display: none; }
    .site-header { top: 0; }
    .hero-section { padding-top: 150px; }
    h1 { font-size: 2rem; }
    section { padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* === Contact Form Styles (Auto-Injected) === */
.contact-form-wrapper {
    background-color: var(--surface, #ffffff);
    padding: 2.5rem;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form-wrapper h3 {
    margin-bottom: 1rem;
    color: var(--primary, #333);
}

.contact-form-wrapper p {
    margin-bottom: 2rem;
    color: var(--text, #666);
    opacity: 0.8;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text, #333);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd; /* Fallback border */
    border-radius: var(--border-radius, 4px);
    background-color: var(#ffffff, #fff);
    color: var(--text, #333);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary, #007bff);
    box-shadow: 0 0 0 3px var(--primary);
}

.contact-form .submit-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--primary, #007bff);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius, 4px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.contact-form .submit-button:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.contact-form .submit-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}
