/* Felix Markets 360 - Modern Trading Platform */
:root {
  --brand: #E11D2C;
  --brand-dark: #B81626;
  --brand-light: #FF3845;
  --bg: #0A0E1A;
  --bg-soft: #111827;
  --bg-card: #161D2E;
  --bg-elevated: #1F2937;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --text: #F9FAFB;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --accent: #FBBF24;
  --success: #10B981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px rgba(225, 29, 44, 0.3);
}
.logo-text { color: var(--text); }
.logo-text span { color: var(--brand); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.lang-switch {
  padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  transition: all 0.2s;
}
.lang-switch:hover { color: var(--text); border-color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s; gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 44, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(225, 29, 44, 0.45); }
.btn-secondary {
  background: var(--bg-card); color: var(--text);
  border-color: var(--border-light);
}
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-light); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at top right, rgba(225,29,44,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(251,191,36,0.08) 0%, transparent 50%),
    var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(225, 29, 44, 0.1); border: 1px solid rgba(225, 29, 44, 0.3);
  font-size: 12px; font-weight: 600; color: var(--brand-light);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(225,29,44,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 17px; color: var(--text-muted); max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 32px; margin-top: 40px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-trust > div { display: flex; flex-direction: column; gap: 4px; }
.hero-trust strong { font-size: 22px; font-weight: 700; color: var(--text); }
.hero-trust small { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero visual - trading dashboard mockup */
.hero-visual {
  position: relative;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-light);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.hv-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hv-pair { font-weight: 700; font-size: 15px; }
.hv-price { font-family: 'JetBrains Mono', monospace; color: var(--success); font-weight: 600; font-size: 18px; }
.hv-change { font-size: 12px; color: var(--success); margin-left: 8px; }
.hv-chart { height: 200px; position: relative; margin-bottom: 20px; }
.hv-chart svg { width: 100%; height: 100%; }
.hv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hv-stat { text-align: center; }
.hv-stat-label { font-size: 10px; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.05em; margin-bottom: 4px; }
.hv-stat-value { font-size: 14px; font-weight: 700; color: var(--text); }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(225,29,44,0.1); border: 1px solid rgba(225,29,44,0.2);
  font-size: 11px; font-weight: 700; color: var(--brand-light);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px;
}
.section-head p {
  font-size: 17px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto;
}

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  transition: all 0.25s;
}
.card:hover {
  border-color: rgba(225,29,44,0.3); transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(225,29,44,0.1); border: 1px solid rgba(225,29,44,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-light); margin-bottom: 18px;
  font-size: 20px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-muted); }

/* Account types */
.accounts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.account-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  position: relative; transition: all 0.25s;
}
.account-card.featured {
  background: linear-gradient(135deg, rgba(225,29,44,0.08) 0%, rgba(225,29,44,0.02) 100%);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.account-card.featured::before {
  content: 'EN POPÜLER'; position: absolute; top: -12px; right: 24px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.05em;
}
.account-card h3 { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.account-card .ac-spread { font-size: 36px; font-weight: 800; margin-bottom: 4px; line-height: 1; }
.account-card .ac-spread small { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.account-card .ac-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.account-card ul { list-style: none; margin-bottom: 28px; }
.account-card li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.account-card li::before {
  content: '✓'; color: var(--brand-light); font-weight: 700;
}

/* Markets table */
.markets-table {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.markets-table table { width: 100%; border-collapse: collapse; }
.markets-table th {
  background: var(--bg-elevated); padding: 14px 20px;
  text-align: left; font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.markets-table td { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 14px; }
.markets-table tr:hover td { background: rgba(255,255,255,0.02); }
.market-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(225,29,44,0.1); display: inline-flex;
  align-items: center; justify-content: center; margin-right: 12px;
  vertical-align: middle; color: var(--brand-light); font-weight: 700; font-size: 13px;
}

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  display: flex; gap: 24px; align-items: flex-start;
}
.platform-icon {
  width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 16px rgba(225,29,44,0.3);
  flex-shrink: 0;
}
.platform-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.platform-info .pl-tag { font-size: 11px; font-weight: 700; color: var(--brand-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.platform-info p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.platform-info ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.platform-info li {
  font-size: 12px; padding: 4px 10px;
  background: var(--bg-elevated); border-radius: 6px;
  color: var(--text-muted);
}

/* Payment methods */
.payments { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.payment {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 28px;
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}

/* Stats banner */
.stats-banner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 40px; background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light); border-radius: 16px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 36px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 18px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px;
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--brand); transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 24px 0; max-height: 0; overflow: hidden;
  transition: all 0.3s; color: var(--text-muted); font-size: 14px;
}
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 500px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: all 0.25s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.blog-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.blog-card .bc-img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  background: var(--bg-section);
}
.blog-card .bc-img-placeholder {
  width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f1829 0%, #1a2540 100%);
  font-size: 28px; font-weight: 800; color: var(--brand); letter-spacing: -1px;
}
.blog-card .bc-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card .bc-date { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.blog-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; flex: 1; }
.blog-card .bc-link { font-size: 13px; color: var(--brand-light); font-weight: 600; margin-top: auto; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  border-radius: 20px; padding: 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.15), transparent 60%);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 16px; opacity: 0.95; margin-bottom: 28px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }

/* Footer */
.footer {
  background: var(--bg-soft); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 16px; max-width: 280px; }
.footer h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer li a:hover { color: var(--brand-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 12px; color: var(--text-dim);
}
.footer-risk { margin-top: 12px; line-height: 1.5; }

/* Article page */
.article-hero { padding: 60px 0 40px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.article-hero .breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.article-hero .breadcrumb a { color: var(--brand-light); }
.article-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article-hero .meta { font-size: 13px; color: var(--text-dim); }
.article-content { padding: 60px 0; max-width: 800px; margin: 0 auto; }
.article-content h2, .article-content h3 { margin-top: 36px; margin-bottom: 16px; font-weight: 700; }
.article-content h2 { font-size: 26px; }
.article-content h3 { font-size: 20px; color: var(--brand-light); }
.article-content p { margin-bottom: 18px; color: var(--text); font-size: 16px; line-height: 1.75; }
.article-content ul, .article-content ol { margin: 18px 0 18px 24px; color: var(--text); }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content a { color: var(--brand-light); border-bottom: 1px solid rgba(255,56,69,0.3); }
.article-content a:hover { border-bottom-color: var(--brand-light); }
.article-content strong { color: var(--text); font-weight: 700; }
.article-featured-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 36px; display: block; }
.article-content blockquote {
  border-left: 3px solid var(--brand);
  padding: 8px 20px; margin: 24px 0;
  background: var(--bg-card); border-radius: 0 8px 8px 0;
  color: var(--text-muted); font-style: italic;
}
.article-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background: var(--bg-card); border-radius: 8px; overflow: hidden;
}
.article-content th { background: var(--bg-elevated); padding: 12px 16px; text-align: left; font-size: 13px; }
.article-content td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.article-content img { border-radius: 8px; margin: 24px 0; }

/* Author box */
.author-box {
  max-width: 640px; margin: 32px auto 56px; padding: 18px 22px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  display: flex; gap: 16px; align-items: center;
}
.author-avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg-elevated); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.author-info strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.author-info p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
@media (max-width: 600px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* Mobile */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4, .accounts, .platforms, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .stats-banner { grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; }
  .stat-num { font-size: 28px; }
}
