/*
Theme Name: wLoyalty Pro
Theme URI: https://wloyalty.com
Author: Marios Filippas
Author URI: https://business2040.gr
Description: Professional landing page theme for wLoyalty Pro — Points & Rewards for WooCommerce.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wloyalty-pro-theme
Tags: one-page, landing-page, product
*/

/* ===================================
   RESET & BASE
=================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B2A4A;
  --navy-dark: #111D33;
  --navy-mid: #243354;
  --orange: #F5A623;
  --orange-dark: #E08A00;
  --white: #FFFFFF;
  --light: #F8F9FC;
  --muted: #6B7A99;
  --border: #E2E8F0;
  --text: #2D3748;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(27,42,74,0.10);
  --shadow-lg: 0 12px 48px rgba(27,42,74,0.18);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

.section-label {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-dark .section-title { color: var(--white); }

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

.text-center { text-align: center; }

/* ===================================
   BUTTONS
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 20px rgba(245,166,35,0.45);
  transform: translateY(-1px);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.btn-lg { padding: 18px 36px; font-size: 17px; border-radius: 10px; }

/* ===================================
   HEADER / NAV
=================================== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27,42,74,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow .3s;
}

#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo img { height: 36px; width: auto; }
.site-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}
.site-logo-text span { color: var(--orange); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.site-nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--orange);
  color: var(--navy) !important;
  padding: 9px 20px;
  border-radius: 7px;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ===================================
   HERO
=================================== */
#hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #253B6E 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
}
.stat-item .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Hero visual */
.hero-visual { position: relative; }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-card-icon {
  width: 44px; height: 44px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.hero-card-title { color: var(--white); font-size: 15px; font-weight: 600; }
.hero-card-sub { color: rgba(255,255,255,0.5); font-size: 13px; }

.points-balance {
  text-align: center;
  padding: 16px;
  background: rgba(245,166,35,0.08);
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(245,166,35,0.2);
}
.points-balance .pts-value { font-size: 42px; font-weight: 800; color: var(--orange); }
.points-balance .pts-label { font-size: 13px; color: rgba(255,255,255,0.5); }
.points-balance .pts-equiv { font-size: 15px; color: rgba(255,255,255,0.75); margin-top: 4px; }

.tier-bar { margin-bottom: 16px; }
.tier-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.tier-progress {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.tier-progress-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--orange), #FFD166);
  border-radius: 3px;
}

.mini-transactions { display: flex; flex-direction: column; gap: 8px; }
.mini-tx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.mini-tx-pts { color: var(--orange); font-weight: 600; }
.mini-tx-pts.neg { color: #FF8080; }

.floating-badge {
  position: absolute;
  top: -16px; right: -16px;
  background: var(--orange);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
  white-space: nowrap;
}

/* ===================================
   FEATURES GRID
=================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(245,166,35,0.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(245,166,35,0.2);
}

.feature-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===================================
   UNIQUE / EXCLUSIVE FEATURES
=================================== */
.exclusive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.exclusive-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .25s;
}
.exclusive-card:hover {
  background: rgba(245,166,35,0.08);
  border-color: rgba(245,166,35,0.35);
  transform: translateY(-3px);
}

.exclusive-card .exc-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.exclusive-card h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 8px;
}
.exclusive-card .exc-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.exclusive-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ===================================
   EARN & REDEEM FLOW
=================================== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(245,166,35,0.2));
  z-index: 0;
}

.flow-step { text-align: center; position: relative; z-index: 1; padding: 0 16px; }

.flow-step-num {
  width: 56px; height: 56px;
  background: var(--orange);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
}

.flow-step h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--muted); }

/* ===================================
   SCREENSHOTS
=================================== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .25s;
}
.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.screenshot-item img { width: 100%; display: block; }
.screenshot-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

/* ===================================
   PRICING
=================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: all .25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(245,166,35,0.2);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

.pricing-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.pricing-card .price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin: 16px 0 4px;
}
.pricing-card .price-amount span { font-size: 24px; vertical-align: super; }
.pricing-card .price-note { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-buy {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
}
.btn-buy-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245,166,35,0.35);
}
.btn-buy-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  color: var(--navy);
}
.btn-buy-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-buy-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

/* ===================================
   COMPATIBILITY BADGES
=================================== */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.compat-item {
  text-align: center;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .2s;
}
.compat-item:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(245,166,35,0.12);
  transform: translateY(-2px);
}
.compat-item .compat-icon { font-size: 28px; margin-bottom: 10px; }
.compat-item strong { display: block; font-size: 14px; color: var(--navy); }
.compat-item span { font-size: 12px; color: var(--muted); }

/* ===================================
   CTA SECTION
=================================== */
#cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.1) 0%, transparent 70%);
  pointer-events: none;
}

#cta h2 { font-size: clamp(28px, 4vw, 44px); color: var(--white); margin-bottom: 16px; position: relative; }
#cta p { font-size: 18px; color: rgba(255,255,255,0.65); margin-bottom: 40px; position: relative; }

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  position: relative;
}

/* ===================================
   FOOTER
=================================== */
#site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-logo span { color: var(--orange); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 13px; }
.footer-copy a { color: var(--orange); }

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .flow-steps::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 34px; }
  .hero-stats { gap: 20px; }

  .features-grid { grid-template-columns: 1fr; }
  .exclusive-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: 1fr; }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--navy-dark);
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .menu-toggle { display: flex; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
