/* ================================
   ForexPhantom - Global Styles
   ================================ */

:root {
    --bg-main: #050910;
    --bg-card: #0b101a;
    --accent: #00b36b; /* money green */
    --accent-soft: rgba(0, 179, 107, 0.12);
    --text-main: #f5f7ff;
    --text-muted: #9ba3c1;
    --border-subtle: #1b2133;
    --header-height: 70px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --radius-xl: 18px;
    --transition-fast: 0.2s ease-out;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    height: 100%;
    overflow-y: scroll; /* Reserve vertical scrollbar space on all pages */
}

body {
    height: 100%;
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #151b2f 0, #050910 50%, #020308 100%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}


/* ================================
   Layout Containers
   ================================ */

.fx-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ================================
   Header & Navigation
   ================================ */

.fx-header {
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    background: linear-gradient(
        to right,
        rgba(5, 9, 16, 0.96),
        rgba(5, 9, 16, 0.9)
    );
    position: sticky;
    top: 0;
    z-index: 10;
}

/* New: header has its own width + padding, independent of .fx-container */
.fx-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    min-height: 70px;              /* use min-height instead of fixed height */
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.fx-logo-main {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.fx-logo-accent {
    color: var(--accent);
}

.fx-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fx-nav-link {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.fx-nav-link:hover {
    color: var(--text-main);
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.fx-nav-link.active {
    color: var(--bg-main);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(0, 179, 107, 0.45);
}

/* ================================
   Main Content Wrapper
   ================================ */

.fx-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3.5rem 1.5rem 3rem;
}

/* ================================
   Hero / Card Blocks
   ================================ */

.fx-hero {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2.2rem;
    background: linear-gradient(145deg, var(--bg-card), #050814);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fx-hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 179, 107, 0.12), transparent 60%),
        radial-gradient(circle at 80% 85%, rgba(0, 173, 255, 0.16), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.fx-hero > * {
    position: relative;
    z-index: 1;
}

.fx-hero h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fx-hero h2 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Page-style hero */
.fx-hero--page {
    text-align: left;
    margin-bottom: 2rem;
}

.fx-hero--page h1,
.fx-hero--page h2 {
    text-align: left;
}

/* Centered hero variant */
.fx-hero--center {
    text-align: center;
}

.fx-hero--page h1 {
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: clamp(2rem, 2.6vw, 2.3rem);
}

.fx-hero--page h2 {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Coming soon text */
.fx-coming-soon {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.fx-coming-soon strong {
    color: var(--accent);
}

/* Subtext / info blocks */
.fx-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px dashed var(--border-subtle);
    background: rgba(4, 10, 25, 0.95);
}

.fx-subtext--light {
    border-style: solid;
}

/* ================================
   Generic Sections / Typography
   ================================ */

.fx-section {
    margin-bottom: 3rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.fx-section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.fx-lead {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ================================
   Split Layout (text + screenshot)
   ================================ */

.fx-split {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.fx-split .fx-text {
    flex: 1.4;
}

.fx-image-card {
    flex: 1;
}

/* ================================
   Screenshot & Graph Placeholders
   ================================ */

.fx-image-placeholder,
.fx-graph-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-subtle);
    border-radius: 14px;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.fx-image-placeholder span,
.fx-graph-placeholder span {
    opacity: 0.7;
}

.fx-graph-card {
    margin: 1rem 0 2rem;
}

/* ================================
   CTA Buttons
   ================================ */

.fx-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-main);
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 179, 107, 0.35);
    transition: 0.2s ease-out;
    margin: 1.2rem 0;
}

.fx-cta:hover {
    background: #00a162;
    transform: translateY(-1px);
}

.fx-cta-final {
    margin-top: 2rem;
    display: block;
    text-align: center;
}

/* ================================
   Lists
   ================================ */

.fx-list {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.4rem;
    line-height: 1.7;
}

.fx-list li {
    margin-bottom: 0.6rem;
}

/* ================================
   FAQ Styles
   ================================ */

.fx-faq {
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.fx-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fx-faq-item {
    background: rgba(5, 9, 16, 0.9);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

/* <details>/<summary> tweaks */
.fx-faq-item > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding-right: 1.5rem;
}

.fx-faq-item > summary::-webkit-details-marker {
    display: none;
}

.fx-faq-item > summary::after {
    content: "+";
    position: absolute;
    right: 0.2rem;
    top: 0;
    font-weight: 700;
    transition: transform var(--transition-fast);
}

.fx-faq-item[open] > summary::after {
    content: "–";
    transform: translateY(1px);
}

.fx-faq-item p {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================
   Contact Form
   ================================ */

.fx-form-wrap {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.fx-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.fx-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fx-form-row label {
    font-size: 0.9rem;
    color: var(--text-main);
}

.fx-input,
.fx-select,
.fx-textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(5, 9, 16, 0.95);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.fx-input:focus,
.fx-select:focus,
.fx-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(0, 179, 107, 0.35);
    background: rgba(5, 9, 16, 1);
}

.fx-input--small {
    max-width: 160px;
}

.fx-input--error,
.fx-select.fx-input--error,
.fx-textarea.fx-input--error {
    border-color: #ff4b6b;
}

.fx-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Button */

.fx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: var(--bg-main);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 179, 107, 0.35);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.fx-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(0, 179, 107, 0.45);
    background: #00a162;
}

.fx-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(0, 179, 107, 0.3);
}

.fx-form-row--actions {
    margin-top: 0.3rem;
}

/* Validation messages */

.fx-field-error {
    font-size: 0.8rem;
    color: #ff8598;
}

/* Alerts */

.fx-alert {
    max-width: 720px;
    margin: 0 auto 1.2rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.fx-alert--error {
    background: rgba(120, 10, 30, 0.9);
    border: 1px solid #ff4b6b;
    color: #ffd8e0;
}

/* Honeypot – hidden from humans */

.fx-hp-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.fx-hp {
    opacity: 0;
}

/* ================================
   Footer
   ================================ */

.fx-footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    background: #03060c;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    .fx-main {
        padding: 2.2rem 1rem 2rem;
    }

    .fx-hero {
        padding: 2rem 1.4rem;
    }

    .fx-nav {
        gap: 0.6rem;
    }

    .fx-form-wrap {
        margin-bottom: 2.4rem;
    }

    .fx-input--small {
        max-width: 100%;
    }

    .fx-faq-item {
        padding: 0.8rem 0.85rem;
    }

    .fx-faq-item p {
        font-size: 0.88rem;
    }

    .fx-split {
        flex-direction: column;
    }

    .fx-image-placeholder,
    .fx-graph-placeholder {
        padding: 2rem 1rem;
    }
}
