/*
Theme Name: MyTradeEdge
Theme URI: https://mytradeedge.com
Author: ADSEM MARKETING SRL
Author URI: https://adsem.ro
Description: Custom dark theme for MyTradeEdge trading ecosystem. Electric Teal brand identity, optimized for 90+ PageSpeed.
Version: 1.0.0
License: Proprietary
Text Domain: mytradeedge
*/

/* ═══════════════════════════════════════
   BRAND DESIGN SYSTEM
   ═══════════════════════════════════════ */

:root {
  /* Backgrounds */
  --deep: #0B0F19;
  --surface: #141925;
  --elevated: #1C2333;
  --border: #2A3148;

  /* Accent */
  --teal: #00D4AA;
  --teal-dim: rgba(0,212,170,.12);
  --teal-glow: rgba(0,212,170,.25);
  --amber: #F5A623;
  --coral: #FF6B6B;
  --emerald: #4ADE80;
  --indigo: #6366F1;
  --pink: #EC4899;
  --violet: #8B5CF6;

  /* Text */
  --t1: #F0F2F5;
  --t2: #8B92A5;
  --t3: #5A6178;

  /* Typography */
  --font-d: 'Space Grotesk', Arial, sans-serif;
  --font-b: 'Inter', Arial, sans-serif;
  --font-m: 'JetBrains Mono', Consolas, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Shadows */
  --shadow-glow-teal: 0 0 20px rgba(0,212,170,.15);
}

/* ═══════ RESET & BASE ═══════ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body { background:var(--deep); color:var(--t1); font-family:var(--font-b); line-height:1.6; overflow-x:hidden; }
img, svg { display:block; max-width:100%; height:auto; }
a { color:inherit; text-decoration:none; }
ul, ol { list-style:none; }
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }

/* ═══════ TYPOGRAPHY ═══════ */
h1,h2,h3,h4,h5,h6 { font-family:var(--font-d); font-weight:700; line-height:1.15; letter-spacing:-.01em; }
h1 { font-size:clamp(36px,6vw,64px); }
h2 { font-size:clamp(28px,4vw,42px); }
h3 { font-size:22px; font-weight:600; }
h4 { font-size:18px; font-weight:600; }
p { color:var(--t2); }

/* ═══════ GLASSMORPHIC CARD ═══════ */
.glass {
  background:rgba(20,25,37,.72);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(42,49,72,.55);
  border-radius:var(--r-md);
  transition:border-color .25s, transform .25s;
}
.glass:hover {
  border-color:rgba(0,212,170,.35);
  transform:translateY(-4px);
}

/* ═══════ BUTTONS ═══════ */
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 32px;
  background:var(--teal); color:var(--deep);
  font-family:var(--font-d); font-weight:600; font-size:16px;
  border-radius:var(--r-sm); border:none; cursor:pointer;
  transition:filter .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover { filter:brightness(1.12); transform:translateY(-2px); box-shadow:var(--shadow-glow-teal); }

.btn-secondary {
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 32px;
  background:transparent; color:var(--teal);
  font-family:var(--font-d); font-weight:500; font-size:16px;
  border-radius:var(--r-sm); border:1px solid rgba(0,212,170,.35); cursor:pointer;
  transition:background .2s, border-color .2s, transform .15s;
}
.btn-secondary:hover { background:var(--teal-dim); border-color:var(--teal); transform:translateY(-2px); }

.btn-sm { padding:9px 22px; font-size:14px; }

/* ═══════ SECTIONS ═══════ */
.section { padding:72px 0; }
.section-tag { font-family:var(--font-m); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--teal); margin-bottom:12px; }
.section-title { margin-bottom:12px; }
.section-sub { font-size:17px; color:var(--t2); max-width:560px; line-height:1.6; }
.section-header { text-align:center; margin-bottom:40px; }
.section-header .section-sub { margin-left:auto; margin-right:auto; }
.section-bg { background:var(--surface); }

/* ═══════ NAV ═══════ */
.site-nav { position:fixed; top:0; left:0; right:0; z-index:100; padding:14px 0; transition:background .3s, backdrop-filter .3s; }
.site-nav.scrolled { background:rgba(20,25,37,.85); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); box-shadow:0 1px 0 rgba(42,49,72,.4); }
.nav-inner { display:flex; align-items:center; justify-content:space-between; }
.nav-logo { display:flex; align-items:center; gap:10px; font-family:var(--font-d); font-weight:700; font-size:18px; letter-spacing:.02em; }
.nav-logo .accent { color:var(--teal); }
.nav-links { display:flex; align-items:center; gap:32px; }
.nav-links a { font-size:14px; font-weight:500; color:var(--t2); transition:color .2s; }
.nav-links a:hover { color:var(--t1); }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; background:none; border:none; }
.hamburger span { display:block; width:22px; height:2px; background:var(--t1); border-radius:2px; transition:transform .25s, opacity .25s; }
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }
.mobile-menu { display:none; position:fixed; top:56px; left:0; right:0; background:var(--surface); border-bottom:1px solid var(--border); padding:24px; z-index:99; flex-direction:column; gap:16px; }
.mobile-menu.open { display:flex; }
.mobile-menu a { font-size:16px; font-weight:500; color:var(--t2); padding:8px 0; }
.mobile-menu a:hover { color:var(--teal); }

/* ═══════ APP CARDS ═══════ */
.apps-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.app-card { padding:32px; position:relative; overflow:hidden; }
.app-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--teal),transparent); opacity:0; transition:opacity .3s; }
.app-card:hover::before { opacity:1; }
.app-card:hover { box-shadow:0 12px 40px rgba(0,0,0,.3); }
.app-icon { width:48px; height:48px; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:16px; background:var(--teal-dim); border:1px solid rgba(0,212,170,.2); }
.app-features { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.app-features li { font-size:13px; color:var(--t2); display:flex; align-items:center; gap:8px; }
.app-features li::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--teal); flex-shrink:0; }
.app-link { font-family:var(--font-d); font-size:14px; font-weight:500; color:var(--teal); display:inline-flex; align-items:center; gap:6px; transition:gap .2s; }
.app-link:hover { gap:10px; }

/* ═══════ STATS ═══════ */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; text-align:center; }
.stat-value { font-family:var(--font-m); font-size:clamp(32px,5vw,52px); color:var(--teal); line-height:1.1; margin-bottom:6px; }
.stat-label { font-size:14px; color:var(--t2); font-weight:500; }

/* ═══════ STRATEGY CARDS ═══════ */
.strats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.strat-chart { height:100px; padding:16px 16px 0; }
.strat-chart svg { width:100%; height:100%; }
.strat-body { padding:20px; }
.strat-name { font-family:var(--font-d); font-size:18px; font-weight:600; margin-bottom:12px; }
.strat-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:16px; }
.strat-stat-label { font-size:11px; color:var(--t3); text-transform:uppercase; letter-spacing:.08em; }
.strat-stat-value { font-family:var(--font-m); font-size:16px; }

/* ═══════ STEPS ═══════ */
.steps-row { display:grid; grid-template-columns:repeat(4,1fr); position:relative; }
.step { text-align:center; padding:0 20px; position:relative; }
.step-num { width:56px; height:56px; border-radius:50%; border:2px solid var(--teal); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-family:var(--font-m); font-size:18px; color:var(--teal); position:relative; z-index:2; background:var(--deep); }
.step-connector { position:absolute; top:28px; left:calc(50% + 28px); right:calc(-50% + 28px); height:2px; background:linear-gradient(90deg,var(--teal),rgba(0,212,170,.2)); z-index:1; }
.step:last-child .step-connector { display:none; }
.step p { font-size:14px; color:var(--t2); line-height:1.55; }

/* ═══════ PRICING ═══════ */
.pricing-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; align-items:start; }
.price-card { padding:32px; position:relative; }
.price-card.featured { border-color:var(--teal); box-shadow:var(--shadow-glow-teal); }
.price-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--teal); color:var(--deep); font-family:var(--font-d); font-size:12px; font-weight:600; padding:4px 16px; border-radius:999px; white-space:nowrap; }
.price-name { font-family:var(--font-d); font-size:20px; font-weight:600; margin-bottom:4px; }
.price-amount { font-family:var(--font-m); font-size:36px; }
.price-period { font-size:14px; color:var(--t3); }
.price-desc { font-size:13px; color:var(--t3); margin-bottom:20px; }
.price-features { display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.price-features li { font-size:14px; color:var(--t2); display:flex; align-items:flex-start; gap:8px; }
.price-features li svg { flex-shrink:0; margin-top:2px; }
.price-btn { display:block; width:100%; padding:12px; text-align:center; border-radius:var(--r-sm); font-family:var(--font-d); font-weight:600; font-size:15px; cursor:pointer; transition:filter .15s, transform .15s; border:none; }
.price-btn-primary { background:var(--teal); color:var(--deep); }
.price-btn-primary:hover { filter:brightness(1.12); transform:translateY(-1px); }
.price-btn-outline { background:transparent; color:var(--teal); border:1px solid rgba(0,212,170,.35); }
.price-btn-outline:hover { background:var(--teal-dim); border-color:var(--teal); }

/* ═══════ BLOG CARDS ═══════ */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.blog-card { overflow:hidden; }
.blog-img { height:160px; position:relative; }
.blog-tag { position:absolute; top:12px; left:12px; padding:4px 12px; border-radius:999px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; }
.blog-body { padding:20px; }
.blog-body h4 { margin-bottom:6px; line-height:1.35; }
.blog-body p { font-size:14px; margin-bottom:12px; line-height:1.5; }

/* ═══════ NEWSLETTER ═══════ */
.newsletter-form { display:flex; gap:10px; }
.newsletter-input { flex:1; padding:14px 18px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-sm); color:var(--t1); font-family:var(--font-b); font-size:15px; outline:none; transition:border-color .2s; }
.newsletter-input::placeholder { color:var(--t3); }
.newsletter-input:focus { border-color:var(--teal); }

/* ═══════ FOOTER ═══════ */
.site-footer { border-top:1px solid var(--border); padding:64px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-brand p { font-size:14px; color:var(--t2); margin:12px 0 16px; line-height:1.55; }
.footer-socials { display:flex; gap:12px; }
.footer-socials a { width:36px; height:36px; border-radius:var(--r-sm); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--t2); transition:border-color .2s, color .2s; }
.footer-socials a:hover { border-color:var(--teal); color:var(--teal); }
.footer-col h5 { font-family:var(--font-d); font-size:14px; font-weight:600; margin-bottom:16px; }
.footer-col a { font-size:14px; color:var(--t2); transition:color .2s; display:block; margin-bottom:10px; }
.footer-col a:hover { color:var(--teal); }
.footer-bottom { border-top:1px solid var(--border); padding:20px 0; text-align:center; font-size:13px; color:var(--t3); }

/* ═══════ APP PILL ═══════ */
.app-pill { display:flex; align-items:center; gap:8px; padding:10px 18px; border-radius:999px; font-size:13px; font-weight:500; color:var(--t2); transition:border-color .2s, color .2s; }
.app-pill:hover { border-color:var(--teal); color:var(--teal); }

/* ═══════ HERO ═══════ */
.hero { position:relative; display:flex; align-items:center; padding:140px 0 60px; overflow:hidden; }
.hero-short { padding:120px 0 48px; }
.hero-mesh { position:absolute; inset:0; background:radial-gradient(ellipse 80% 60% at 20% 40%,rgba(0,212,170,.07) 0%,transparent 60%),radial-gradient(ellipse 60% 50% at 80% 30%,rgba(99,102,241,.06) 0%,transparent 60%),radial-gradient(ellipse 70% 70% at 50% 80%,rgba(0,212,170,.04) 0%,transparent 60%); background-size:200% 200%; animation:meshDrift 20s ease infinite; }
.hero-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(42,49,72,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(42,49,72,.12) 1px,transparent 1px); background-size:64px 64px; mask-image:radial-gradient(ellipse 70% 60% at 50% 40%,black,transparent); -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 40%,black,transparent); }

/* ═══════ SCROLL REVEAL ═══════ */
.reveal { opacity:0; transform:translateY(32px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay:.1s; }
.reveal-d2 { transition-delay:.2s; }
.reveal-d3 { transition-delay:.3s; }
.reveal-d4 { transition-delay:.4s; }

/* ═══════ ANIMATIONS ═══════ */
@keyframes meshDrift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* ═══════ RESPONSIVE ═══════ */
@media(max-width:1024px) {
  .pricing-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:768px) {
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .apps-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:repeat(2,1fr); gap:24px; }
  .strats-grid { grid-template-columns:1fr; }
  .steps-row { grid-template-columns:1fr; gap:32px; }
  .step-connector { display:none; }
  .pricing-grid { grid-template-columns:1fr; }
  .blog-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .newsletter-form { flex-direction:column; }
}
@media(max-width:480px) {
  .footer-grid { grid-template-columns:1fr; }
}

/* ═══════ WP OVERRIDES ═══════ */
.wp-block-image img { height:auto; }
.alignfull { width:100vw; margin-left:calc(-50vw + 50%); }
.screen-reader-text { clip:rect(1px,1px,1px,1px); position:absolute; height:1px; width:1px; overflow:hidden; }
