/* ============================================================
   Forecast Falcon — Web3 redesign
   Prepared by Plastic Digital Group LLC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    /* Surfaces */
    --bg:            #070a17;
    --bg-2:          #0a1022;
    --surface:       rgba(255, 255, 255, 0.025);
    --surface-hover: rgba(255, 255, 255, 0.05);
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Signal palette */
    --blue:       #3b82f6;
    --blue-light: #60a5fa;
    --cyan:       #22d3ee;
    --violet:     #a855f7;
    --pink:       #f472b6;
    --green:      #34d399;

    /* Text */
    --text:       #e9edf6;
    --text-dim:   #9aa4ba;
    --text-faint: #626c82;

    /* Gradients + glow */
    --grad-signal: linear-gradient(115deg, #60a5fa 0%, #22d3ee 48%, #a855f7 100%);
    --grad-accent: linear-gradient(135deg, #3b82f6, #22d3ee);
    --glow-blue:   0 0 48px rgba(59, 130, 246, 0.30);
    --glow-cyan:   0 0 48px rgba(34, 211, 238, 0.22);

    /* Geometry */
    --radius:      16px;
    --radius-sm:   10px;
    --radius-pill: 999px;
    --maxw:        1160px;

    /* Type */
    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', ui-monospace, 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.003em;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Living background: aurora orbs + data grid --------------- */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(34, 211, 238, 0.07), transparent 60%),
        var(--bg);
}

.bg-decor::before {
    /* faint data grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 80%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.orb-1 {
    width: 520px; height: 520px;
    top: -160px; left: -120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.55), transparent 70%);
    animation: drift-1 26s ease-in-out infinite;
}
.orb-2 {
    width: 460px; height: 460px;
    top: 10%; right: -140px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 70%);
    animation: drift-2 32s ease-in-out infinite;
}
.orb-3 {
    width: 600px; height: 600px;
    bottom: -220px; left: 40%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
    animation: drift-3 38s ease-in-out infinite;
}

@keyframes drift-1 { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift-2 { 50% { transform: translate(-70px, 50px) scale(1.08); } }
@keyframes drift-3 { 50% { transform: translate(-60px, -50px) scale(1.12); } }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section headings ---------------------------------------- */
.picks-section h2,
.how-works h2,
.section-title-container h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    position: relative;
    padding-left: 18px;
}
.picks-section h2::before,
.how-works h2::before,
.section-title-container h2::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 0.78em;
    border-radius: var(--radius-pill);
    background: var(--grad-signal);
}
.picks-section h2 { margin-bottom: 44px; }
.how-works h2 { margin-bottom: 44px; }

/* ---- Header -------------------------------------------------- */
.header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    background: rgba(7, 10, 23, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.header-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.logo img { height: 26px; }

.nav { display: flex; gap: 34px; }
.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}
.nav a:hover { color: var(--blue-light); }

/* ---- Hero (the one bold moment) ------------------------------ */
.hero {
    padding: 112px 24px 96px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.hero-logo {
    height: 76px;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 28px rgba(34, 211, 238, 0.45));
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 8vw, 76px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    background: var(--grad-signal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.tagline {
    font-size: clamp(16px, 2.2vw, 19px);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.45;
    max-width: 620px;
    margin-left: auto; margin-right: auto;
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-description {
    font-size: 15px;
    color: var(--text-dim);
    margin: 0 auto 36px;
    line-height: 1.7;
    max-width: 580px;
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.hero-signup {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px;
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero-signup input {
    flex: 1;
    min-width: 220px;
    padding: 13px 20px;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
}
.hero-signup input::placeholder { color: var(--text-faint); }
.hero-signup input:focus { outline: none; }

.signup-note {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 16px;
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

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

/* ---- Buttons ------------------------------------------------- */
.btn {
    padding: 13px 26px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary {
    background: var(--grad-accent);
    color: #04121f;
    box-shadow: 0 6px 24px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.45);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
}
.btn-secondary:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* ---- Shared glass card -------------------------------------- */
.pick-card,
.how-card,
.market-logo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ---- Picks --------------------------------------------------- */
.picks-section { padding: 96px 24px; }

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.pick-card {
    padding: 26px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pick-card::before {
    /* top signal hairline, revealed on hover */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-signal);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pick-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), var(--glow-blue);
}
.pick-card:hover::before { opacity: 1; }

.pick-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-dim);
}
.pick-category::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}
.pick-category.economics { color: var(--violet); }
.pick-category.culture   { color: var(--pink); }
.pick-category.politics  { color: var(--green); }

.pick-card h3 {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.pick-card p {
    font-size: 13.5px;
    color: var(--text-dim);
    margin-bottom: 22px;
    line-height: 1.6;
}

.pick-footer {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12.5px;
}
.pick-footer .market,
.pick-footer .fair {
    display: inline-flex;
    flex-direction: column;
    color: var(--text);
    font-weight: 600;
}
.pick-footer span { color: var(--text-dim); }

.ratio {
    margin-left: auto;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--cyan);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.18);
}

/* ---- Markets ------------------------------------------------- */
.markets-section { padding: 0; }

.section-title-container {
    padding: 88px 24px 36px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.markets-bar {
    padding: 8px 24px 96px;
}

.markets-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.market-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 112px;
    padding: 24px 28px;
    transform: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.market-logo-staggered { transform: none; }   /* retire the zigzag for cohesion */

.market-logo:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), var(--glow-cyan);
}

.market-logo img {
    height: auto;
    width: auto;
    max-height: 46px;
    max-width: 76px;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.market-logo:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.55));
}
.market-logo--wordmark img { max-height: 40px; max-width: 160px; }

.market-name {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1;
    color: var(--text-dim);
    transition: color 0.3s ease;
}
.market-logo:hover .market-name { color: var(--text); }

/* ---- How it works ------------------------------------------- */
.how-works { padding: 96px 24px; }

.how-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.how-card {
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.how-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.how-card .icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 22px;
    padding: 13px;
    border-radius: 14px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.1);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.how-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--text);
}
.how-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ---- Disclaimer --------------------------------------------- */
.disclaimer {
    padding: 28px 24px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-faint);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Footer -------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 24px 28px;
    background: linear-gradient(180deg, transparent, rgba(10, 16, 34, 0.6));
}
.footer-content { text-align: center; margin-bottom: 36px; }
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.footer-logo img { height: 22px; opacity: 0.85; }
.footer-content p {
    font-size: 12.5px;
    color: var(--text-faint);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12.5px;
    color: var(--text-faint);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .hero { padding: 80px 20px 72px; }
    .nav { gap: 18px; font-size: 13px; }
    .hero-signup { flex-direction: column; border-radius: var(--radius); }
    .hero-signup input { min-width: 100%; text-align: center; }
    .hero-signup .btn { width: 100%; }
    .markets-grid { grid-template-columns: repeat(2, 1fr); }
    .picks-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .header-container { flex-direction: column; gap: 14px; }
    .hero h1 { font-size: 40px; }
    .hero-logo { height: 58px; }
    .picks-section, .how-works { padding: 64px 20px; }
    .section-title-container { padding: 56px 20px 28px; }
    .markets-bar { padding: 4px 20px 64px; }
    .market-logo { min-height: 88px; padding: 16px; gap: 12px; }
    .market-logo img { max-height: 32px; max-width: 52px; }
    .market-logo--wordmark img { max-height: 30px; max-width: 118px; }
    .market-name { font-size: 16px; }
    .markets-grid { gap: 12px; }
}

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