/* FxPro Replica CSS */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
  /* Colors */
  --color-primary: #0051ff;
  --color-secondary: #0666ff;
  --color-bg: #ffffff;
  --color-bg-secondary: #1c1c1c;
  --color-text: #000000;
  --color-text-secondary: #666666;
  --color-border: #1c1c1c;

  /* Spacing (Base 12px) */
  --spacing-1: 12px;
  --spacing-2: 8px;
  --spacing-3: 24px;
  --spacing-4: 16px;
  --spacing-5: 4px;
  --spacing-6: 32px;
  --spacing-7: 6px;
  --spacing-8: 80px;

  /* Typography */
  --font-family: 'Josefin Sans', sans-serif;
  
  /* Border Radius */
  --radius-card: 24px;
  --radius-card-sm: 16px;
  --radius-button: 12px;
  --radius-button-sm: 8px;
  --radius-button-xs: 6px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-low: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 4px 6px -1px;
  --shadow-high: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 32px;
  font-size: 24px;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--color-text);
  margin-bottom: var(--spacing-4);
}

.text-display { font-size: 60px; font-weight: 400; line-height: 1.2; }
.text-h1 { font-size: 48px; font-weight: 400; line-height: 1.2; }
.text-h2 { font-size: 40px; font-weight: 400; line-height: 1.2; }
.text-h3 { font-size: 38.4px; font-weight: 400; line-height: 1.2; }
.text-h4 { font-size: 36px; font-weight: 400; line-height: 1.2; }
.text-body-l { font-size: 30px; font-weight: 400; line-height: 1.5; }
.text-body { font-size: 24px; font-weight: 600; line-height: 32px; }
.text-small { font-size: 14px; font-weight: 600; line-height: 20px; }

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}
.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--color-secondary);
}

.btn-pill {
  background: transparent;
  color: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-pill-2 {
  background: transparent;
  color: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-filled {
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 6px;
  padding: 40px 32px;
  font-size: 16px;
  font-weight: 400;
  border: none;
  cursor: pointer;
}

.btn-pill-3 {
  background: var(--color-bg);
  color: var(--color-secondary);
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-filled-2 {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid var(--color-border);
  cursor: pointer;
}

/* Layout Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--spacing-8) 0;
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }

/* Header */
header {
  background: var(--color-bg);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-low);
}
header .container {
  height: 100%;
}
.lang-selector {
  cursor: pointer;
}
.nav-links {
  display: none;
  height: 100%;
}
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 0 16px;
  border-top: 4px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
  border-top: 4px solid var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 200px 0 160px;
  background: var(--color-text);
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-content-wrapper {
  position: relative;
  z-index: 2;
}

/* Floating Logos */
.hero-logo-box {
  position: absolute;
  top: -100px;
  left: 0;
  background: #f00000;
  color: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;
  width: 180px;
  height: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-mclaren {
  position: absolute;
  top: -20px;
  right: 0;
  color: #fff;
  text-align: right;
  z-index: 10;
}
.mclaren-logo {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Main Text Content */
.hero-text-content {
  position: relative;
  z-index: 5;
}
.hero h1 {
  margin-bottom: var(--spacing-6);
  color: var(--color-bg);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-actions-center {
  display: flex;
  justify-content: center;
}

/* Features Grid */
.features-section {
  background: var(--color-bg);
  padding: 100px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.feature-card {
  background: #f9f9fb;
  border: 1px solid transparent;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Feature Header & Line */
.feature-card-header {
  margin-bottom: 32px;
}
.feature-line {
  height: 3px;
  width: 32px;
  background-color: var(--color-primary);
  transition: width 0.4s ease;
}
.feature-card:hover .feature-line {
  width: 50%;
}

/* Feature Icon */
.feature-icon {
  color: #cccccc;
  transition: color 0.3s ease;
}
.feature-card:hover .feature-icon {
  color: var(--color-primary);
}

/* Feature Text */
.feature-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.feature-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.feature-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

/* Active State */
.feature-card.active-card {
  background: #f0f5ff;
  border-color: var(--color-primary);
}
.feature-card.active-card:hover {
  background: #f0f5ff;
}
.badge-new-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 2px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Footer */
footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer-title {
  color: var(--color-bg);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-4);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--color-bg);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: var(--spacing-4);
  text-align: center;
  color: #888;
  font-size: 14px;
  font-weight: 400;
}

/* Ticker Section */
.ticker-section {
  background: #f4f4f5;
  padding: 40px 0;
}
.overflow-hidden {
  overflow: hidden;
}

/* Chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.chip {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chip:hover {
  background: rgba(0, 81, 255, 0.05);
}
.chip-active {
  background: rgba(0, 81, 255, 0.2);
  color: var(--color-primary);
}
.chip-active:hover {
  background: rgba(0, 81, 255, 0.3);
}
.chip-outline {
  border: 1px solid var(--color-primary);
  background: #fff;
}
.badge-new {
  color: #10b981;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
}

/* Marquee Ticker */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-left 20s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

/* Ticker Card */
.ticker-card {
  background: #fff;
  border-radius: 9999px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
  min-width: 280px;
}
.ticker-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.icon-down {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.icon-up {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.ticker-info {
  flex-grow: 1;
}
.ticker-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.ticker-price {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.2;
}
.btn-ticker-trade {
  background: rgba(0, 81, 255, 0.1);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.btn-ticker-trade:hover {
  background: rgba(0, 81, 255, 0.2);
}

/* CTA Banner Section */
.cta-banner {
  background: var(--color-bg);
  padding: 60px 0;
}
.cta-banner-content {
  background: var(--color-primary);
  padding: 60px 80px;
  border-radius: 0; /* Boxy banner as per the image */
  flex-direction: column;
  gap: 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-banner-content {
    flex-direction: row;
    text-align: left;
    gap: 0;
  }
}
.cta-banner-text {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.btn-banner {
  background: #ffffff;
  color: var(--color-primary);
  padding: 16px 40px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Trust Section */
.trust-section {
  background: var(--color-bg);
  padding: 80px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trust-card {
  border: 1px solid #eaeaea;
  padding: 32px 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trust-card-flex {
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.trust-logo {
  font-size: 18px;
  margin-bottom: 12px;
}
.trust-logo-large {
  line-height: 1.1;
}
.trust-rating {
  font-size: 24px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-bold {
  font-weight: 700;
  color: var(--color-text);
}
.trust-stars {
  font-size: 18px;
}
.trust-subtext {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.trust-divider {
  width: 1px;
  height: 60px;
  background-color: #eaeaea;
}
.trust-divider-horizontal {
  height: 1px;
  width: 100%;
  background-color: #eaeaea;
  margin: 16px 0;
}
.trust-logos-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.trust-divider-short {
  width: 1px;
  height: 24px;
  background-color: #eaeaea;
}

/* Accounts Accordion Section */
.accounts-section {
  padding: 100px 0;
  background: var(--color-bg);
}
.accounts-accordion {
  display: flex;
  gap: 16px;
  height: 500px;
}
.account-card {
  flex: 1;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

/* Default state: First card is open */
.accounts-accordion .account-card:first-child {
  flex: 5;
}

/* Hover state logic */
.accounts-accordion:hover .account-card:first-child {
  flex: 1;
}
.accounts-accordion:hover .account-card:hover {
  flex: 5;
}

/* Background Watermark */
.account-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 350px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.02);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Collapsed Content */
.account-content-collapsed {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 40px;
  opacity: 1;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}
.account-title-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  margin-bottom: 40px;
}
.account-subtitle-vertical {
  font-size: 18px;
  font-weight: 400;
}
.account-arrow {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

/* Expanded Content */
.account-content-expanded {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 440px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  transition-delay: 0s;
  z-index: 2;
}
.account-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.1;
}
.account-subtitle {
  font-size: 20px;
  font-weight: 600;
}
.account-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}
.account-btn {
  padding: 16px 48px;
  font-size: 16px;
  border-radius: 9999px;
  font-weight: 600;
}

/* Visibility Toggles */
.accounts-accordion .account-card:first-child .account-content-expanded {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.2s;
}
.accounts-accordion .account-card:first-child .account-content-collapsed {
  opacity: 0;
  pointer-events: none;
}
.accounts-accordion:hover .account-card:first-child .account-content-expanded {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}
.accounts-accordion:hover .account-card:first-child .account-content-collapsed {
  opacity: 1;
  pointer-events: auto;
}
.accounts-accordion:hover .account-card:hover .account-content-expanded {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.2s;
}
.accounts-accordion:hover .account-card:hover .account-content-collapsed {
  opacity: 0;
  pointer-events: none;
}

/* Platforms Section Additions */
.platform-card:hover {
  background: #f4f4f5 !important;
}
@keyframes blink-cursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: #000; }
}
