/* ==========================================================================
   HydraTrade – static rebuild
   Palette and typography extracted from the original Elementor site
   ========================================================================== */

:root {
  --blue: #0066cc;
  --blue-light: #1a8cff;
  --navy: #0a1628;
  --navy-light: #1a2f4f;
  --gray-bg: #f8f9fa;
  --gray-bg-2: #e9ecef;
  --text: #1a1a1a;
  --muted: #6c757d;
  --border-dark: #2f3338;
  --white: #ffffff;
  --grad-blue: linear-gradient(180deg, #0066cc 0%, #1a8cff 100%);
  --grad-blue-diag: linear-gradient(135deg, #0066cc 0%, #1a8cff 100%);
  --grad-navy: linear-gradient(135deg, #0a1628 0%, #1a2f4f 100%);
  --grad-gray: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  --grad-cta: linear-gradient(180deg, #75d9d9 0%, #467bff 100%);
  --grad-cta-hover: linear-gradient(180deg, #467bff 0%, #75d9d9 100%);
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  --container: 1320px;
  --header-h: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 100000;
  padding: 8px 12px;
  background: var(--white);
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.btn-primary:hover {
  background: var(--grad-blue-diag);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-cta {
  background: var(--grad-cta);
  color: var(--white);
  font-weight: 500;
  padding: 10px 22px;
  font-size: 14px;
}

.btn-cta:hover {
  background: var(--grad-cta-hover);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--white);
  border-bottom: 1px solid rgba(47, 51, 56, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo img {
  width: 180px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover {
  color: var(--blue);
  background: var(--gray-bg);
}

.nav-list .nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --------------------------------------------------------------------------
   Sections – shared
   -------------------------------------------------------------------------- */

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
}

.section-subtitle {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.section--gray {
  background: var(--grad-gray);
}

.section--navy {
  background: var(--navy);
}

.section--navy-grad {
  background: var(--grad-navy);
}

.section--navy .section-title,
.section--navy-grad .section-title {
  color: var(--white);
}

.section--navy .section-subtitle,
.section--navy-grad .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card--hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.icon-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--grad-blue-diag);
  color: var(--white);
}

.icon-square svg {
  width: 26px;
  height: 26px;
}

.icon-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid rgba(0, 102, 204, 0.2);
  color: var(--blue);
}

.icon-outline svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: calc(var(--header-h) + 100px) 0 100px;
  background: var(--grad-navy);
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.hero-sub {
  margin-top: 24px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 260px;
  height: 260px;
  color: rgba(255, 255, 255, 0.12);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* --------------------------------------------------------------------------
   Stats (Invest in Forex)
   -------------------------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  border-radius: 32px;
  text-align: center;
  padding: 2rem;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--blue);
}

.stat-label {
  margin-top: 10px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Platforms
   -------------------------------------------------------------------------- */

.platforms-box {
  margin-top: 48px;
  padding: 3rem;
  border-radius: 20px;
  background: var(--grad-navy);
  color: var(--white);
}

.platforms-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.platforms-box > p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.icon-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.icon-box svg {
  width: 28px;
  height: 28px;
  flex: none;
  margin-top: 2px;
}

.icon-box h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.icon-box p {
  margin-top: 2px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Accounts
   -------------------------------------------------------------------------- */

.account-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.account-card {
  width: 100%;
  max-width: 440px;
  padding: 3rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  color: var(--white);
  transition: transform 0.3s ease;
}

.account-card:hover {
  transform: translateY(-10px);
}

.account-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.account-card p {
  margin: 16px 0 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Introducing Brokers
   -------------------------------------------------------------------------- */

.ib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.ib-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.ib-text p {
  margin: 20px 0 28px;
  color: var(--muted);
}

.ib-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ib-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ib-card p {
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Security of Funds
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin-top: -8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Choose Where To Go Next
   -------------------------------------------------------------------------- */

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.next-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 2.5rem 2rem;
}

.next-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.next-card p {
  margin-top: -10px;
  font-weight: 600;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-top {
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--blue-light);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
}

.footer-contact a:hover {
  color: var(--blue-light);
}

.footer-legal {
  border-top: 1px solid var(--border-dark);
  padding: 40px 0;
}

.footer-legal p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal p + p {
  margin-top: 12px;
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  margin-top: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy a {
  color: var(--white);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Popup (EU / MiFID notice)
   -------------------------------------------------------------------------- */

.popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(4px);
}

.popup.is-open {
  display: flex;
}

.popup-box {
  width: 100%;
  max-width: 560px;
  padding: 40px;
  border-radius: 20px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.popup-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.popup-box p {
  margin: 18px 0 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Privacy page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background: var(--grad-navy);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 40px 0 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 12px;
  color: #333;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #333;
}

.legal-content li {
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-visual svg {
    width: 200px;
    height: 200px;
  }

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

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .logo img {
    width: 150px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid rgba(47, 51, 56, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
  }

  .nav-list a {
    padding: 14px 10px;
    text-align: center;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-bg-2);
  }

  .nav-list .nav-cta {
    display: block;
    margin-top: 12px;
  }

  .nav-list .nav-cta a {
    border: 0;
    border-radius: 100px;
    color: var(--white);
    background: var(--grad-cta);
  }

  .hero {
    padding: calc(var(--header-h) + 60px) 0 70px;
  }

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

  .hero-visual {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .platforms-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .ib-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .hero h1,
  .section-title,
  .ib-text h2 {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stats-grid,
  .features-grid,
  .ib-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .platforms-box,
  .account-card {
    padding: 2rem;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .legal-content {
    padding: 50px 20px;
  }
}
