/* ============================================================
   ForgeFX Global Stylesheet (Final Rebuild)
   - Minimal SaaS UI (Apple-inspired)
   - Sticky Header + Subtle Shadow
   - Full Light/Dark Theme Architecture
   - Grid, Cards, Buttons, Typography
   ============================================================ */
/* --------------------------------------------------
   GLOBAL THEME VARIABLES
-------------------------------------------------- */

:root {
    --bg: #ffffff;
    --text: #111111;
    --secondary-text: #555555;
    --border: #e5e5e5;
    --card: #f7f7f7;
    --accent: #3a7afe;
    --accent-hover: #1f5eea;

    --radius: 12px;
    --transition: 0.25s ease;
}

/* DARK THEME */
.dark {
    --bg: #0d0d0f;
    --text: #f2f2f2;
    --secondary-text: #bbbbbb;
    --border: #2a2a2d;
    --card: #1a1a1d;
    --accent: #5c8bff;
    --accent-hover: #7ba2ff;
}

/* --------------------------------------------------
   BODY + GLOBAL ELEMENTS
-------------------------------------------------- */

body {
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    transition: background var(--transition), color var(--transition);
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

p {
    line-height: 1.6;
    color: var(--secondary-text);
}

.container {
    max-width: 1200px; /* T1 confirmed */
    margin: auto;
    padding: 20px;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 25px 0;
}

/* --------------------------------------------------
   NAVIGATION BAR
-------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: background var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links a {
    margin: 0 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.theme-toggle {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    transition: color var(--transition);
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */

.hero {
    padding: 80px 20px;
    text-align: center;
}

.tagline-main {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tagline {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white !important;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition);
}

.cta-button:hover {
    background: var(--accent-hover);
}

.secondary-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* --------------------------------------------------
   CARDS
-------------------------------------------------- */

.card {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    transition: background var(--transition), border var(--transition);
}

/* Price text */
.price {
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 20px 0;
    color: var(--accent);
}

/* --------------------------------------------------
   GRID LAYOUTS
-------------------------------------------------- */

.pricing-grid,
.grid {
    display: grid;
    gap: 25px;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.comparison-3col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* --------------------------------------------------
   BULLET LIST FIX
-------------------------------------------------- */

ul li {
    margin-left: 18px;
    padding-left: 6px;
}

/* Fix spacing between bullet and text */
ul {
    list-style-position: outside;
}

/* --------------------------------------------------
   DASHBOARD PREVIEW IMAGE
-------------------------------------------------- */

.dashboard-preview {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* --------------------------------------------------
   CHECKOUT LAYOUT (C1)
-------------------------------------------------- */

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 40px;
}

.checkout-summary h2,
.checkout-payment h2 {
    margin-bottom: 10px;
}

.summary-note,
.secure-note {
    opacity: 0.7;
    font-size: 14px;
}

/* PayPal dark button */
.paypal-dark {
    width: 100%;
    background: #222;
    padding: 14px;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    border: none;
    margin: 10px 0;
    cursor: pointer;
}

/* Stripe black button */
.stripe-black {
    width: 100%;
    background: #000;
    padding: 14px;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

/* --------------------------------------------------
   AUTH PAGES (LOGIN + REGISTER)
-------------------------------------------------- */

.auth-header {
    border-bottom: 1px solid var(--border);
}

.auth-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-subtext {
    opacity: 0.8;
    margin-bottom: 20px;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    opacity: 0.8;
}

.auth-switch a {
    color: var(--accent);
}

/* --------------------------------------------------
   FORM ELEMENTS
-------------------------------------------------- */

input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    margin-bottom: 18px;
    transition: border var(--transition);
}

input:focus {
    border-color: var(--accent);
    outline: none;
}

/* --------------------------------------------------
   RESPONSIVE MOBILE FIXES
-------------------------------------------------- */

@media (max-width: 900px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none; /* cleaner mobile UI for now */
    }
}

@media (max-width: 600px) {
    .tagline-main {
        font-size: 32px;
    }
}

/* ------------------------------
   0. FONT
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font: 'Inter', sans-serif;

    /* LIGHT THEME COLORS */
    --bg: #ffffff;
    --text: #1d1d1f;
    --text-muted: #5c5c5e;
    --card-bg: #ffffff;
    --border: #e6e6e8;
    --accent: #4d7cff;
    --shadow: rgba(0,0,0,0.05); /* S1 subtle shadow */

    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(0,0,0,0.06);
}

/* DARK THEME OVERRIDE */
[data-theme="dark"] {
    --bg: #111113;
    --text: #f5f5f7;
    --text-muted: #999;
    --card-bg: #1a1a1d;
    --border: #2b2b2e;
    --accent: #6d8bff;
    --shadow: rgba(0,0,0,0.3);

    --nav-bg: rgba(17, 17, 19, 0.85);
    --nav-border: rgba(255,255,255,0.08);
}

/* ------------------------------
   1. GLOBAL RESET
------------------------------ */
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.25s, color 0.25s;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* ------------------------------
   2. STICKY HEADER + NAVIGATION
------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 1px 4px var(--shadow); /* subtle S1 shadow */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding: 12px 20px;
}

.nav-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 0.6;
}

.theme-toggle {
    border: none;
    background: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text);
}

/* ------------------------------
   3. HERO SECTIONS
------------------------------ */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.logo {
    width: 120px;
    margin-bottom: 15px;
}

.tagline-main {
    font-size: 2.4rem;
    margin: 0;
    font-weight: 700;
}

.tagline {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ------------------------------
   4. GRID + CARDS
------------------------------ */
.grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--shadow);
}

.forgefx {
    border-color: var(--accent);
}

/* ------------------------------
   5. PRICING GRID
------------------------------ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 20px;
}

/* ------------------------------
   6. CTA BUTTON
------------------------------ */
.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.cta-button:hover {
    opacity: 0.85;
}

/* ------------------------------
   7. COMPARISON 3-COLUMN
------------------------------ */
.comparison-3col {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.compare-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 12px;
}

.compare-card ul {
    padding-left: 20px;
    margin-top: 15px;
}

/* Fix bullet spacing */
.compare-card li,
ul li {
    margin-bottom: 8px;
}

/* ------------------------------
   8. DASHBOARD PREVIEWS
------------------------------ */
.dashboard-hero img,
.dashboard-preview {
    border-radius: 14px;
    box-shadow: 0 4px 22px var(--shadow);
}

.dashboard-preview-small {
    border-radius: 14px;
    width: 85%;
    margin: 20px auto;
}

/* ------------------------------
   9. FOOTER
------------------------------ */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

/* ------------------------------
   10. MOBILE OPTIMIZATION
------------------------------ */
@media (max-width: 780px) {
    .nav-links {
        display: none; /* We can add mobile menu later if you want */
    }

    .tagline-main {
        font-size: 1.9rem;
    }
}
