/* ============================================
   XAUUSD Signals — Premium Gold Fintech 2026
   ============================================ */

:root {
    --bg-primary: #0B0F14;
    --bg-secondary: #11161C;
    --bg-card: #1F2630;
    --bg-accent: #2A323D;
    --gold-start: #C6A75E;
    --gold-end: #F4E2B3;
    --gold-gradient: linear-gradient(135deg, #C6A75E, #F4E2B3);
    --text-primary: #FFFFFF;
    --text-secondary: #B8C1CC;
    --text-muted: #8E98A3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(198, 167, 94, 0.3);
    --glow-gold: rgba(198, 167, 94, 0.4);
    --radius-sm: 14px;
    --radius-lg: 20px;
    --font: 'Manrope', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
    background: rgba(11, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header__inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
}

.header__logo-text {
    color: var(--text-primary);
}

.header__logo-accent {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__cta {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--gold-gradient);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-gold);
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== SECTIONS TYPOGRAPHY ========== */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn--gold {
    background: var(--gold-gradient);
    color: var(--bg-primary);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--glow-gold);
}

.btn--pulse {
    animation: btnPulse 5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(198, 167, 94, 0.4); }
    50% { box-shadow: 0 0 24px 8px rgba(198, 167, 94, 0.2); }
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 40%, var(--bg-primary) 100%);
    z-index: 2;
}

.hero__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero__glow--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
    top: 20%;
    left: 10%;
}

.hero__glow--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 226, 179, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: -4s;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

/* Candles animation */
.hero__candles {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    z-index: 3;
    opacity: 0.4;
}

.candle {
    width: 12px;
    border-radius: 4px;
    animation: candleMove 3s ease-in-out infinite;
}

.candle--up {
    height: 40px;
    background: linear-gradient(180deg, #4ade80, #22c55e);
}

.candle--down {
    height: 28px;
    background: linear-gradient(180deg, #f87171, #ef4444);
}

.candle:nth-child(1) { animation-delay: 0s; }
.candle:nth-child(2) { animation-delay: 0.3s; }
.candle:nth-child(3) { animation-delay: 0.6s; }
.candle:nth-child(4) { animation-delay: 0.9s; }
.candle:nth-child(5) { animation-delay: 1.2s; }

@keyframes candleMove {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1.5rem;
}

.hero__title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero__btn {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FORMAT SECTION ========== */
.format {
    padding: 6rem 0;
    position: relative;
}

.format__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.format-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.format-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.format-card:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(198, 167, 94, 0.15);
}

.format-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.format-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: url(#goldGradient);
}

.format-card__icon svg {
    stroke: var(--gold-start);
}

.format-card:hover .format-card__icon svg {
    stroke: var(--gold-end);
}

.format-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.format-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== WHY GOLD SECTION ========== */
.why-gold {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.why-gold__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.why-gold__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 50%, var(--bg-primary) 100%);
}

.why-gold__container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-gold__content {
    max-width: 400px;
}

.why-gold__title {
    text-align: left;
    margin-bottom: 2rem;
}

.why-gold__list {
    list-style: none;
}

.why-gold__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateX(-30px);
}

.why-gold__item:last-child {
    border-bottom: none;
}

.why-gold__item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.why-gold__check {
    font-size: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-gold__visual {
    position: relative;
}

.why-gold__image {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    background-image: url('https://images.unsplash.com/photo-1610375461246-83df859d849d?w=600&q=80');
    background-size: cover;
    background-position: center;
}

/* ========== CAPTURE SECTION ========== */
.capture {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.capture__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 60%);
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.capture__cursor-light {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(198, 167, 94, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.capture__cursor-light.active {
    opacity: 1;
}

.capture__title {
    margin-bottom: 0.75rem;
}

.capture__subtitle {
    margin-bottom: 2rem;
}

.capture__btn {
    min-width: 260px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--gold-start);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 22, 28, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--glass-border);
}

.cookie-banner.visible {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .cookie-banner {
        display: none !important;
    }
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner__content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 250px;
}

.cookie-banner__content a {
    color: var(--gold-start);
    text-decoration: underline;
}

.cookie-banner__btn {
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .why-gold__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-gold__content {
        max-width: 100%;
    }

    .why-gold__title {
        text-align: center;
    }

    .why-gold__list {
        max-width: 400px;
        margin: 0 auto;
    }

    .why-gold__visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .format__grid {
        grid-template-columns: 1fr;
    }

    .hero__candles {
        display: none;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    .capture__btn {
        width: 100%;
        min-width: unset;
    }

    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header__cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero__content {
        padding: 1.5rem 1rem;
    }

    .format,
    .why-gold,
    .capture {
        padding: 4rem 0;
    }

    .format-card {
        padding: 1.5rem;
    }
}
