/* 
   XAUUSD Signals Landing Page 
   Design System & Styles 
*/

:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-card-bg: #FFFFFF;
    --color-text-main: #111827;
    --color-text-secondary: #6B7280;
    --color-accent-dark: #1F2937;

    --color-gold-start: #D4AF37;
    --color-gold-end: #F5D76E;
    --gradient-gold: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));

    --color-green: #10B981;
    --color-red: #EF4444;

    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 8px 24px rgba(212, 175, 55, 0.25);

    /* Typography */
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: var(--font-primary);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
.logo,
.hero-title,
.section-title {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Scale */
h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 22px;
    font-weight: 600;
}

p {
    font-size: 15px;
    color: var(--color-text-secondary);
}

@media (min-width: 768px) {
    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 32px;
    }

    p {
        font-size: 16px;
    }
}

/* Component: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-gold);
    color: white;
    height: 52px;
    padding: 0 24px;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

/* Header & Hero Section */
.hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 30px;
    letter-spacing: 0;
}

.hero-content {
    max-width: 100%;
}

.hero-title {
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.hero-subtitle {
    margin-bottom: 32px;
    max-width: 480px;
}

/* Hero Visual (Graph) */
/* Hero Visual (Image & Icons) */
.hero-image-wrapper {
    position: relative;
    aspect-ratio: 1232 / 928;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #f0f0f0;
    /* Fallback */
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.02);
}

.hero-overlay-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.overlay-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    animation: float-icon 4s ease-in-out infinite;
}

.overlay-icon svg {
    width: 20px;
    height: 20px;
}

.overlay-icon.buy {
    color: var(--color-green);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.overlay-icon.sell {
    color: var(--color-red);
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.bothelp-slot {
    min-height: 52px;
    display: flex;
    align-items: center;
}

.bothelp-slot-center {
    justify-content: center;
}

@keyframes float-icon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Sections Spacer */
section {
    padding: 60px 0;
}

/* Signal Format Section */
.signal-format-section {
    background-color: white;
    /* Alternate slight bg if needed, staying clean for now */
}

.center-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, rgb(244 240 229), rgb(253 252 252));
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-wrapper {
    margin-bottom: 16px;
    display: inline-flex;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
}

.feature-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--color-text-main);
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Why Gold Section */
.why-gold-section {
    background: #ffffff;
}

.why-gold-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.check-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Why Gold Visual */
/* Why Gold Visual (Slider) */
.slider-container {
    width: 100%;
    max-width: 450px;
    /* Adjust as needed */
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: #f9fafb;
    box-shadow: var(--shadow-soft);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.slide-picture {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #fafafa;
}

.slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fafafa;
}

.signal-message {
    padding: 20px;
    background: #F9FAFB;
    border-top: 1px solid #F3F4F6;
    font-family: inherit;
    /* Or monospace if preferred */
}

.msg-header {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.msg-scenario {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    font-style: italic;
}

.msg-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    color: white;
    margin-bottom: 12px;
}

.msg-type.long {
    background-color: var(--color-green);
}

.msg-type.short {
    background-color: var(--color-red);
}

.msg-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-main);
}

.msg-body div {
    display: flex;
    gap: 8px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    /* Let clicks pass through if not on btn */
    padding: 0 10px;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: white;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    /* If outside, but here it's inside slider-container usually */
    position: absolute;
    bottom: 15px;
    /* Adjust based on where you want it */
    width: 100%;
}

/* Move dots outside for this design since msg has text */
.slider-container {
    padding-bottom: 10px;
    /* give space for dots if needed, effectively inside wrapper but below content? No, dots are absolute */
}

/* Actually, let's put dots on the image part? or just remove them if controls are enough. 
   Or position them relative to content. 
   Let's position them inside on top of text? No, that matches bad contrast.
   Let's hide dots for now or put them overlaying the image bottom.
*/
.slider-dots {
    bottom: unset;
    top: 220px;
    /* Just above message */
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Final CTA Section */
.final-cta-section {
    position: relative;
}

.cta-box {
    background: linear-gradient(135deg, rgb(244 240 229), rgb(253 252 252));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    margin-bottom: 10px;
}

.cta-subtitle {
    margin-bottom: 30px;
}

.floating-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent-dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Footer */
.site-footer {
    padding: 60px 0 40px;
    border-top: 1px solid #E5E7EB;
    background: white;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--color-text-main);
}

.footer-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: #9CA3AF;
    max-width: 600px;
}

.footer-rights {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: var(--color-text-main);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-gold-start);
}

.footer-contact {
    margin-top: 4px;
}

.contact-email {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
}

.footer-telegram-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    transition: background 0.2s;
    margin-top: 10px;
}

.footer-telegram-btn-small:hover {
    background: #E5E7EB;
}

/* Desktop sizing for footer */
@media (min-width: 900px) {
    .footer-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-col-left {
        flex: 2;
        padding-right: 60px;
    }

    .footer-col-right {
        flex: 1;
        align-items: flex-start;
    }
}

/* Desktop Media Queries */
@media (min-width: 900px) {
    .container {
        padding: 0 40px;
    }

    section {
        padding: 50px 0;
    }

    /* Hero */
    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-content {
        max-width: 500px;
    }

    .hero-visual {
        flex: 1;
        max-width: 550px;
    }

    .graph-card {
        min-height: 380px;
    }

    .chart-area {
        height: 300px;
    }

    /* Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Why Gold */
    .why-gold-container {
        flex-direction: row;
        align-items: center;
    }

    .why-gold-content {
        flex: 1;
    }

    .why-gold-visual {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .chart-preview-card {
        width: 100%;
        max-width: 450px;
        height: 280px;
    }

    .cta-box {
        padding: 80px;
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Documentation Pages */
.doc-page {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.doc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    font-size: 14px;
}

.back-link:hover {
    color: var(--color-gold-start);
}

.doc-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.doc-content h1 {
    margin-bottom: 12px;
    font-size: 32px;
}

.doc-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F3F4F6;
}

.doc-content h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.doc-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.doc-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.doc-content li {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 15px;
    /* Match p size usually */
    line-height: 1.6;
}

.doc-content strong {
    font-weight: 600;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .doc-content {
        padding: 24px;
    }

    .doc-content h1 {
        font-size: 24px;
    }
}
