/*
Theme Name: FX Code Market
Description: Custom landing page theme for FX Code Market, converted from a static HTML build. Pairs with Easy Digital Downloads for checkout.
Author: FX Code Market
Version: 1.0
*/

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Poppins,sans-serif;
}

html{
scroll-behavior:smooth;
}

body{

background:#08111f;
color:white;
overflow-x:hidden;

}

/* Background */

body::before{

content:"";
position:fixed;
left:0;
top:0;
width:100%;
height:100%;
background:

radial-gradient(circle at top left,#2563eb22,transparent 30%),

radial-gradient(circle at bottom right,#22c55e22,transparent 30%);

z-index:-2;

}

/* NAV */

nav{

position:fixed;
top:0;
left:0;
width:100%;
padding:20px 8%;
display:flex;
justify-content:space-between;
align-items:center;

background:rgba(8,17,31,.8);

backdrop-filter:blur(15px);

z-index:1000;

}

.logo{

font-size:28px;
font-weight:700;

color:#60a5fa;

}

nav ul{

display:flex;
gap:35px;
list-style:none;

}

nav a{

color:white;
text-decoration:none;
transition:.3s;

}

nav a:hover{

color:#60a5fa;

}

.buy{

padding:12px 28px;

background:#22c55e;

border-radius:50px;

font-weight:600;

}

/* HERO */

.hero{

min-height:100vh;

display:flex;

align-items:center;

justify-content:space-between;

padding:120px 8%;

gap:60px;

}

.left{

flex:1;

}

.left h1{

font-size:65px;

line-height:1.1;

margin-bottom:20px;

}

.left span{

color:#60a5fa;

}

.left p{

font-size:19px;

opacity:.9;

margin-bottom:35px;

max-width:650px;

}

.buttons{

display:flex;

gap:20px;

margin-bottom:40px;

}

.btn{

padding:16px 35px;

border-radius:50px;

font-weight:600;

text-decoration:none;

transition:.3s;

}

.primary{

background:#22c55e;

color:white;

}

.secondary{

border:2px solid #60a5fa;

color:#60a5fa;

}

.btn:hover{

transform:translateY(-3px);

}

/* checklist */

.list{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:18px;

margin-top:20px;

}

.list div{

display:flex;

align-items:center;

gap:10px;

font-size:18px;

}

.list i{

color:#22c55e;

}

/* RIGHT */

.right{

flex:1;

display:flex;

justify-content:center;

}

.mockup{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.1);

backdrop-filter:blur(15px);

padding:20px;

border-radius:25px;

box-shadow:0 0 40px rgba(37,99,235,.2);

animation:float 4s ease-in-out infinite;

}

.mockup img{

width:100%;

max-width:560px;

border-radius:15px;

}

@keyframes float{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(-15px);

}

}

/* SECTION */

section{

padding:100px 8%;

}

.title{

text-align:center;

font-size:45px;

margin-bottom:70px;

}

.features{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(270px,1fr));

gap:30px;

}

.card{

background:rgba(255,255,255,.04);

border:1px solid rgba(255,255,255,.08);

border-radius:20px;

padding:35px;

transition:.4s;

}

.card:hover{

transform:translateY(-10px);

border-color:#60a5fa;

}

.card i{

font-size:45px;

color:#60a5fa;

margin-bottom:25px;

}

.card h3{

margin-bottom:15px;

}

.card p{

opacity:.85;

line-height:1.7;

}

@media(max-width:900px){

.hero{

flex-direction:column;

text-align:center;

}

.left h1{

font-size:45px;

}

.list{

grid-template-columns:1fr;

}

.buttons{

justify-content:center;

}

nav ul{

display:none;

}

}
.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
gap:30px;
}

.shot{
background:rgba(255,255,255,.05);
padding:15px;
border-radius:20px;
transition:.4s;
border:1px solid rgba(255,255,255,.08);
}

.shot:hover{
transform:translateY(-10px);
box-shadow:0 15px 40px rgba(0,0,0,.4);
}

.shot img{
width:100%;
display:block;
border-radius:15px;
}

.steps{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.step{
background:rgba(255,255,255,.05);
padding:40px;
border-radius:20px;
text-align:center;
}

.number{
width:60px;
height:60px;
margin:auto;
margin-bottom:20px;
background:#2563eb;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
font-weight:bold;
}

.stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:25px;
text-align:center;
}

.stat{
background:rgba(255,255,255,.05);
padding:40px;
border-radius:20px;
}

.stat h2{
font-size:50px;
color:#22c55e;
margin-bottom:10px;
}

.pricing{
max-width:700px;
margin:auto;
text-align:center;
padding:60px;
background:rgba(255,255,255,.05);
border-radius:30px;
border:1px solid rgba(255,255,255,.08);
}

.pricing h3{
font-size:28px;
}

.pricing h1{
font-size:80px;
margin:20px 0;
color:#22c55e;
}

.pricing ul{
list-style:none;
margin:40px 0;
}

.pricing li{
padding:12px;
font-size:18px;
}

.price-btn{
display:inline-block;
padding:18px 50px;
background:#22c55e;
color:white;
border-radius:50px;
font-size:20px;
font-weight:600;
text-decoration:none;
transition:.3s;
}

.price-btn:hover{
transform:translateY(-5px);
}

/* EDD button normalization — EDD renders its own buttons/forms;
   these rules make them inherit the .price-btn / .btn look */
.pricing .edd_download_purchase_form,
#contact .edd_download_purchase_form{
display:inline-block;
}

.pricing a.button,
#contact a.button,
.pricing .edd-add-to-cart,
#contact .edd-add-to-cart{
display:inline-block;
padding:18px 50px;
background:#22c55e;
color:white !important;
border-radius:50px;
font-size:20px;
font-weight:600;
text-decoration:none;
transition:.3s;
border:none;
cursor:pointer;
}

.pricing a.button:hover,
#contact a.button:hover,
.pricing .edd-add-to-cart:hover,
#contact .edd-add-to-cart:hover{
transform:translateY(-5px);
}

/* FAQ */

.faq{

max-width:900px;

margin:auto;

}

.faq-item{

margin-bottom:20px;

background:rgba(255,255,255,.05);

border-radius:15px;

overflow:hidden;

}

.faq-btn{

width:100%;

padding:22px;

background:none;

border:none;

color:white;

font-size:18px;

text-align:left;

cursor:pointer;

}

.faq-item.active .faq-content{

max-height:300px;

}

.faq-content{

max-height:0;

overflow:hidden;

transition:.35s;

padding:0 22px;

}

.faq-content p{

padding-bottom:20px;

opacity:.85;

}

/* Footer */

footer{

padding:40px;

text-align:center;

background:#050b16;

margin-top:80px;

}

/* Scroll button */

#topBtn{

position:fixed;

right:30px;

bottom:30px;

width:55px;

height:55px;

border:none;

border-radius:50%;

background:#2563eb;

color:white;

font-size:22px;

display:none;

cursor:pointer;

box-shadow:0 10px 25px rgba(0,0,0,.4);

transition:.3s;

z-index:999;

}

#topBtn:hover{

transform:translateY(-4px);

background:#1d4ed8;

}

/* ===========================
   EDD CHECKOUT PAGE STYLING
   =========================== */

body.edd-checkout {
  padding-top: 110px;
}

.edd-blocks__checkout {
  max-width: 700px;
  margin: 0 auto 100px;
  padding: 45px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 25px;
  color: white;
}

.edd-blocks__logged-in {
  opacity: .7;
  font-size: 14px;
  margin-bottom: 30px;
}

.edd-blocks__logged-in a {
  color: #60a5fa;
}

/* Cart rows */
.edd-blocks-cart__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  gap: 20px;
}

.edd_cart_header_row {
  font-weight: 600;
  opacity: .6;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.edd_checkout_cart_item_title {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.edd_cart_item_price {
  font-size: 18px;
  color: #60a5fa;
  font-weight: 600;
}

.edd-blocks-cart__action-remove {
  color: #f87171;
  font-size: 13px;
  text-decoration: none;
  opacity: .8;
  transition: .2s;
}

.edd-blocks-cart__action-remove:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Discount code row */
.edd_cart_discount_row input[type="text"] {
  padding: 12px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  color: white;
  font-size: 15px;
}

.edd_cart_discount_row button,
.edd_cart_discount_row input[type="submit"] {
  padding: 10px 24px;
  border-radius: 50px;
  background: #2563eb;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
}

/* Total row */
.edd_cart_footer_row:not(.edd_cart_discount_row) {
  border-bottom: none;
  padding-top: 24px;
}

.edd_cart_total {
  font-size: 20px;
  font-weight: 700;
}

.edd_cart_amount {
  color: #22c55e;
  font-size: 26px;
  font-weight: 800;
  margin-left: 10px;
}

/* Payment / PayPal button area */
.edd-blocks__purchase-form {
  margin-top: 35px;
}

.edd-blocks__payment-details {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-top: 15px;
}

/* Loading spinner */
.edd-loading-ajax.edd-loading {
  filter: brightness(0) invert(1);
}

@media (max-width: 700px) {
  .edd-blocks__checkout {
    margin: 0 16px 80px;
    padding: 30px 20px;
  }
  .edd-blocks-cart__row {
    flex-wrap: wrap;
  }
}


.buy:hover {
  color: white !important;
  background: #16a34a;
  transform: translateY(-3px);
}

body.edd-checkout section {
  padding-top: 110px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edd_empty_cart {
  font-size: 22px;
  opacity: .8;
  text-align: center;
}


/* Distraction-free checkout: hide nav links + buy button, keep logo only */
body.edd-checkout nav ul,
body.edd-checkout nav .buy {
  display: none;
}

/* ===========================
   FAKE LIVE PANEL (animated demo)
   =========================== */

.fp-panel {
  background: #f7f7f7;
  border: 1px solid #cccccc;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  font-family: Arial, sans-serif;
  color: #222;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}

.fp-titlebar {
  background: #f0f0f0;
  border-bottom: 1px solid #d5d5d5;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.fp-titlebar-icons {
  opacity: .5;
  font-size: 12px;
  letter-spacing: 4px;
}

.fp-body {
  padding: 16px 18px 20px;
}

.fp-balance-row {
  font-size: 13px;
  margin-bottom: 14px;
}

.fp-balance-row b {
  color: #0000f5;
  font-weight: 400;
}

.fp-divider {
  margin: 0 10px;
  opacity: .4;
}

.fp-section-label {
  text-align: center;
  font-size: 11px;
  color: #666;
  letter-spacing: .5px;
  margin: 14px 0 10px;
}

.fp-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fp-row-2 {
  margin-top: 4px;
}

.fp-btn {
  border: 1px solid #000;
  border-radius: 3px;
  color: white;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 10px;
  flex: 1;
  min-width: 0;
  cursor: default;
  font-family: inherit;
}

.fp-gray {
  background: #808080;
  color: #fff;
}

.fp-gray2 {
  background: #a9a9a9;
  color: #222;
}

.fp-wide {
  flex: 1;
}

.fp-full {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  margin-bottom: 6px;
}

.fp-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
  gap: 10px;
}

.fp-blue {
  color: #0000f5;
  font-weight: 400;
  transition: color .3s;
}

.fp-blue.fp-flash {
  color: #16a34a;
}

.fp-close {
  flex: 0 0 auto;
  min-width: 100px;
}

.fp-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.fp-input {
  display: inline-block;
  width: 90px;
  height: 22px;
  background: white;
  border: 1px solid #bbb;
  border-radius: 2px;
}

@media (max-width: 500px) {
  .fp-panel {
    max-width: 100%;
  }
  .fp-btn {
    font-size: 10px;
    padding: 7px 6px;
  }
}


html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  max-width: 100vw;
}

nav, .hero, section, footer {
  max-width: 100vw;
  box-sizing: border-box;
}

.fp-panel, .mockup {
  box-sizing: border-box;
}


nav {
  box-shadow: 0 6px 24px rgba(0,0,0,.6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.buy {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 150px;
  }
}

@media (max-width: 500px) {
  nav {
    padding: 16px 6%;
  }
  .logo {
    font-size: 22px;
  }
  .buy {
    padding: 10px 18px;
    font-size: 14px;
  }
}


.edd-no-js {
  display: none !important;
}

.shot-caption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #9aa1ad;
  text-align: center;
}


.fp-label {
  display: inline-block;
  min-width: 100px;
}

[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .hero {
  flex-direction: row-reverse;
}
[dir="rtl"] .buttons,
[dir="rtl"] .pill-list {
  justify-content: flex-start;
}
[dir="rtl"] .faq-q::before {
  content: none;
}

[dir="rtl"] .faq-btn {
  text-align: right;
}


/* --- Responsive Navigation & Mobile Menu Styles --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 999;
    padding: 0;
}

/* Keeps hamburger lines cleanly visible using standard light text color */
.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff; /* Falls back to crisp white for dark mode scannability */
    transition: all 0.3s ease;
    display: block;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #111827; /* Rich dark container background */
        padding: 10px 20px; /* Compact padding */
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        z-index: 998;
    }

    html[dir="rtl"] nav ul {
        text-align: right;
    }
    html[dir="ltr"] nav ul {
        text-align: left;
    }

    nav ul.open {
        display: flex;
    }

    /* CHANGED: Brought links even closer together and added a clean separator border */
    nav ul li {
        margin: 0;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07); /* Smooth, subtle divider line */
    }

    /* Removes the separator line completely from the language link and buy button area */
    nav ul li:nth-last-child(2),
    nav ul li.mobile-buy-link {
        border-bottom: none;
    }

    /* Target the main desktop layout nav bar button to hide it safely */
    nav > .buy {
        display: none; 
    }

    /* Balanced spacing above the buy button container */
    nav ul .mobile-buy-link {
        display: block !important;
        text-align: center;
        margin-top: 8px;
        padding-top: 4px;
    }
    
    /* Hardcoded crisp green button styling */
    nav ul .mobile-buy-link a {
        display: inline-block !important;
        background-color: #22c55e !important;
        color: #ffffff !important;
        padding: 10px 24px;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
    }
}

/* Hide the mobile wrapper link cleanly on desktop screen sizes */
@media (min-width: 769px) {
    nav ul .mobile-buy-link {
        display: none !important;
    }
}