/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Exness Brand Colors */
  --primary-yellow: #FFDE02;
  --primary-yellow-hover: #e6c802;
  --primary-yellow-dark: #ccb302;

  /* Neutral Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-light: #96979a;
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-gray: #f5f5f5;
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;

  /* Accent Colors */
  --blue-primary: #3b5dfe;
  --green-success: #00c853;
  --red-danger: #ff3b30;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.header-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-secondary);
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: var(--spacing-xs);
}

/* Language Selector */
.language-selector {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  transition: all 0.2s;
}

.language-toggle:hover {
  background: var(--bg-gray);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 100;
}

.language-selector:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.language-option:hover {
  background: var(--bg-light);
}

.language-option.active {
  font-weight: var(--font-weight-semibold);
  color: var(--primary-yellow-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--text-primary);
  border-color: var(--primary-yellow);
}

.btn-primary:hover {
  background-color: var(--primary-yellow-hover);
  border-color: var(--primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--text-secondary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 14px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 16px;
}

/* Hero Section */
.hero {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-container {
  display: grid;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 222, 2, 0.15);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
}

.hero-title {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.highlight {
  color: var(--primary-yellow-dark);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.hero-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.hero-input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-family: var(--font-system);
  transition: all 0.2s;
}

.hero-input:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(255, 222, 2, 0.1);
}

.hero-input::placeholder {
  color: var(--text-light);
}

.hero-social-login {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.hero-social-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--bg-light);
  border-color: var(--text-light);
}

/* Popular Instruments */
.popular-instruments {
  padding: var(--spacing-lg) 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.instruments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.instruments-title {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-all-link {
  font-size: 14px;
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.view-all-link:hover {
  text-decoration: underline;
}

.instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.instrument-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.instrument-card:hover {
  background: var(--bg-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.instrument-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.instrument-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.instrument-name {
  font-weight: var(--font-weight-semibold);
  font-size: 14px;
}

.instrument-description {
  font-size: 12px;
  color: var(--text-secondary);
}

.instrument-price {
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
}

.instrument-change {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}

.instrument-change.positive {
  color: var(--green-success);
}

.instrument-change.negative {
  color: var(--red-danger);
}

.instrument-change.neutral {
  color: var(--text-secondary);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Features Section */
.features-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-white);
}

.features-image {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.features-image img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-item {
  padding: var(--spacing-md);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-title::before {
  content: "•";
  color: var(--primary-yellow);
  font-size: 1.5rem;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Pricing Table */
.pricing-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-light);
}

.pricing-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pricing-table thead {
  background: var(--bg-light);
}

.pricing-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-table td {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-light);
  font-size: 15px;
}

.pricing-table tr:hover {
  background: var(--bg-light);
}

.symbol-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.symbol-info img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.symbol-info span {
  font-weight: var(--font-weight-semibold);
}

.pricing-category {
  color: var(--text-light);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Download Section */
.download-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-white);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

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

.download-qr img {
  width: 200px;
  height: 200px;
  margin-bottom: var(--spacing-md);
}

.download-text {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.download-platforms {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.platform-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 120px;
}

.platform-btn:hover {
  background: var(--bg-light);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.platform-icon {
  width: 40px;
  height: 40px;
}

.platform-name {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}

/* Trust Section */
.trust-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

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

.trust-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.trust-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Security Section */
.security-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-white);
}

.security-content {
  max-width: 600px;
}

.security-content h2 {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
}

.security-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

/* FAQ Section */
.faq-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md);
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-system);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--spacing-md);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item.active .faq-answer {
  padding: var(--spacing-md);
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: var(--bg-white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-column h3 {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-md);
  color: var(--bg-white);
}

.footer-links {
  list-style: none;
}

.footer-link {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary-yellow);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--bg-white);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary-yellow);
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-light);
  opacity: 0.7;
  line-height: 1.5;
}

/* Chat Widget */
.chat-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary-yellow);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  z-index: 999;
}

.chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 222, 2, 0.4);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-md) 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: var(--spacing-md);
}

.mobile-nav-link {
  display: block;
  padding: var(--spacing-sm) 0;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid var(--border-light);
}

.mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.mobile-language-selector p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.mobile-language-options {
  display: flex;
  gap: var(--spacing-sm);
}

.mobile-language-option {
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}

.mobile-language-option.active {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-form {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-table {
    font-size: 14px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: var(--spacing-sm);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-buttons .btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-number {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
