/* ════════════════════════════════════════════════════════════════
   AlphaPips Website – Global Stylesheet
   Design system mirrors the app: #0A0E1A background, #F5C518 gold
   ════════════════════════════════════════════════════════════════ */

:root {
    --bg: #0A0E1A;
    --card: #151A2B;
    --border: #1F2940;
    --gold: #F5C518;
    --text: #ffffff;
    --muted: #9AA5B8;
    --danger: #FF5370;
    --success: #00C864;
    --radius: 12px;
    --nav-h: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* ── Layout ─────────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-body {
    padding-top: var(--nav-h);
}

/* ── Navigation ─────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: rgba(10, 14, 26, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1000;
}

.nav-logo img {
    height: 62px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    text-decoration: none;
}

.nav-cta {
    background: var(--gold) !important;
    color: #0A0E1A !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.nav-cta:hover {
    opacity: 0.88;
    text-decoration: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--gold);
    color: #0A0E1A;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.88;
    text-decoration: none;
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 600px;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0A0E1A 0%, #0F1630 55%, #0A0E1A 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -180px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 197, 24, .07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 197, 24, .1);
    border: 1px solid rgba(245, 197, 24, .25);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: .5px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--gold);
}

.hero-sub {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 470px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Phone mock-up */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 255px;
    height: 455px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 44px;
    padding: 14px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 197, 24, .07);
}

.phone-screen {
    background: var(--bg);
    border-radius: 32px;
    width: 100%;
    height: 100%;
    padding: 18px 12px;
    overflow: hidden;
}

.phone-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.signal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.signal-pair {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.signal-type {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: .5px;
}

.signal-type.buy {
    background: rgba(0, 200, 100, .15);
    color: #00C864;
}

.signal-type.sell {
    background: rgba(255, 83, 112, .15);
    color: #FF5370;
}

.signal-val {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
}

/* ── Features ────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 52px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: border-color .2s, transform .2s;
}

.feature-card:hover {
    border-color: rgba(245, 197, 24, .35);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 197, 24, .1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ── Steps / How it works ────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 52px;
}

.step {
    text-align: center;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(245, 197, 24, .1);
    border: 1.5px solid rgba(245, 197, 24, .3);
    color: var(--gold);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ── Disclaimer box ──────────────────────────────────────────────── */
.disclaimer-box {
    background: rgba(245, 197, 24, .04);
    border: 1px solid rgba(245, 197, 24, .15);
    border-radius: var(--radius);
    padding: 22px 26px;
}

.disclaimer-box p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.disclaimer-box strong {
    color: var(--text);
}

/* ── CTA strip ───────────────────────────────────────────────────── */
.cta-strip {
    background: linear-gradient(135deg, #0F1630 0%, #151A35 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.cta-strip .section-sub {
    margin: 12px auto 32px;
}

/* ── Content pages (Privacy, Terms) ─────────────────────────────── */
.content-header {
    padding: 72px 0 40px;
    border-bottom: 1px solid var(--border);
}

.content-header h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
}

.content-meta {
    color: var(--muted);
    font-size: 14px;
}

.content-body {
    padding: 56px 0 80px;
}

.content-body .inner {
    max-width: 780px;
}

.policy-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.policy-content h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.policy-content p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.policy-content ul,
.policy-content ol {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    padding-left: 22px;
    margin-bottom: 14px;
}

.policy-content li {
    margin-bottom: 6px;
}

.policy-content a {
    color: var(--gold);
}

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

/* ── Contact page ────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 52px;
    align-items: start;
}

.contact-info h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-info>p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(245, 197, 24, .1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-text {
    font-size: 14px;
}

.contact-text span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 2px;
}

.contact-text a,
.contact-text strong {
    color: var(--text);
    font-weight: 500;
}

/* Form card */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    background: #0D1120;
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--gold);
}

.form-row select option {
    background: #0D1120;
}

.form-row textarea {
    resize: vertical;
    min-height: 130px;
}

.form-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: #0A0E1A;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s;
}

.btn-submit:hover {
    opacity: .88;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 200, 100, .1);
    border: 1px solid rgba(0, 200, 100, .3);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 83, 112, .1);
    border: 1px solid rgba(255, 83, 112, .3);
    color: var(--danger);
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
    background: #080C17;
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 46px;
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--text);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--muted);
    font-size: 13px;
}

.footer-risk {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ── 404 ─────────────────────────────────────────────────────────── */
.not-found {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.not-found h1 {
    font-size: 80px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
}

.not-found h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.not-found p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 32px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: #0D1120;
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 13px 24px;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-cta {
        border-radius: 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-sub {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-two-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
    }

    .content-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .form-card {
        padding: 24px 18px;
    }
}