/*
 * TradeSimulator.io Stylesheet
 *
 * This stylesheet defines the global styles and theme for the TradeSimulator.io
 * website. It uses a fintech‑inspired neutral palette accented with a bold
 * blue. The layout is fully responsive and supports both light and dark
 * backgrounds. Feel free to modify the CSS variables at the top of this
 * file to tweak the color scheme or typography.
 */

/* CSS Variables for easy theming */
:root {
  --primary-color: #00a3ff; /* bold accent color used for buttons and highlights */
  --dark-bg: #0f1624;       /* dark background for hero and footer sections */
  --light-bg: #f7f9fb;      /* light background for content sections */
  --text-dark: #1a1a1a;     /* primary text color */
  --text-light: #ffffff;    /* light text color for dark backgrounds */
  --muted: #6c7a89;         /* muted text color for subtitles and captions */
  --border-color: #e2e6ea;  /* border color for cards and tables */
  --font-primary: 'Arial', 'Helvetica', sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Basic resets */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
}

p {
  line-height: 1.6;
  margin: 0.5em 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #0086d6;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Header navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-bg);
  color: var(--text-light);
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 5%;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
}

nav .menu {
  display: flex;
  gap: 1.2rem;
}

nav .menu a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem;
}

nav .menu a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Hero section */
.hero {
  background-color: var(--dark-bg);
  background-image: url('../images/bg-dark.png');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero .content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 50%;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Feature cards */
.features {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Section titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--text-dark);
}

.section-title p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* Step process section */
.steps {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}

.step-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing section */
.pricing {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-plan {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-plan h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  margin: 1rem 0;
  color: var(--primary-color);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.plan-features li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* FAQ section */
.faq {
  background-color: var(--light-bg);
  padding: 4rem 0;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.faq-item.open .faq-question::after {
  content: '–';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--muted);
  padding: 3rem 0 2rem;
}

footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

footer .footer-col {
  flex: 1 1 200px;
}

footer .footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

footer .footer-col ul li {
  margin-bottom: 0.5rem;
}

footer .footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
}

footer .footer-col ul li a:hover {
  color: var(--primary-color);
}

footer .copyright {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

/* Tables (Comparison, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--light-bg);
  color: var(--text-dark);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero {
    padding-top: 5rem;
  }
  nav .menu {
    display: none; /* hide nav items on small screens; future: mobile nav */
  }
  nav .menu.mobile {
    display: flex;
    flex-direction: column;
    background-color: var(--dark-bg);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    border: 1px solid #222;
  }
  nav .menu.mobile a {
    padding: 1rem;
    border-bottom: 1px solid #222;
  }
}