/* =========================================================
   FOREXALGO.SOFTWARE
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   ROOT / GLOBAL
========================================================= */

:root {
  --bg: #04060d;
  --bg-soft: #070b15;
  --card: #0b1020;
  --card-light: #10182b;

  --line: #1a2542;
  --line-light: rgba(255, 255, 255, 0.08);

  --gold: #f5b942;
  --gold-light: #ffd36a;

  --cyan: #22d3ee;
  --green: #22c55e;

  --txt: #e8edf7;
  --mut: #8b97b5;
  --mut-light: #aeb8ce;

  --danger: #f87171;

  --radius: 18px;
  --radius-lg: 24px;

  --shadow:
    0 20px 60px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);

  font-family:
    "Inter",
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.65;

  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(245, 185, 66, 0.25);
  color: #fff;
}


/* =========================================================
   CONTAINER
========================================================= */

.wrap {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  padding-left: 20px;
  padding-right: 20px;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {
  font-family:
    "Manrope",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.15;

  letter-spacing: -0.5px;
}

h1,
h2 {
  font-weight: 700;
}

h3,
h4 {
  font-weight: 700;
}

section {
  position: relative;

  padding: 80px 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.sec-h {
  text-align: center;

  margin-bottom: 44px;
}

.sec-h h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.sec-h p {
  max-width: 640px;

  margin: 12px auto 0;

  color: var(--mut);

  font-size: 15px;
}


/* =========================================================
   GRADIENT TEXT
========================================================= */

.grad {
  background:
    linear-gradient(
      90deg,
      var(--gold),
      var(--cyan)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 14px 28px;

  border-radius: 999px;

  font-weight: 700;
  font-size: 14px;

  border: 0;

  cursor: pointer;

  white-space: nowrap;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn-p {
  background:
    linear-gradient(
      135deg,
      var(--gold),
      #ff8a3d
    );

  color: #111;

  box-shadow:
    0 10px 30px rgba(245, 185, 66, 0.28);
}

.btn-p:hover {
  transform: translateY(-3px);

  box-shadow:
    0 16px 40px rgba(245, 185, 66, 0.45);
}

.btn-o {
  border: 1px solid var(--cyan);

  color: var(--cyan);

  background: transparent;
}

.btn-o:hover {
  background: var(--cyan);

  color: #000;
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: fixed;

  top: 18px;
  left: 50%;

  transform: translateX(-50%);

  width: min(1160px, 94%);

  z-index: 50;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 10px 20px;

  border-radius: 999px;

  background:
    rgba(10, 15, 30, 0.72);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border:
    1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5);

  transition:
    top 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

header.sc {
  top: 10px;

  background:
    rgba(7, 11, 22, 0.88);

  box-shadow:
    0 14px 45px rgba(0, 0, 0, 0.58);
}


/* =========================================================
   HEADER LOGO
========================================================= */

.logo {
  display: flex;

  align-items: center;

  flex-shrink: 0;
}

.logo-img {
  display: block;

  width: 190px;

  height: auto;

  max-height: 55px;

  object-fit: contain;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {
  display: flex;

  align-items: center;

  gap: 26px;

  font-size: 13px;

  color: var(--mut);

  white-space: nowrap;
}

nav a {
  position: relative;

  transition:
    color 0.25s ease;
}

nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0;
  height: 1px;

  background: var(--gold);

  transition:
    width 0.25s ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}


/* =========================================================
   HEADER BUTTON
========================================================= */

.hd-btn {
  padding: 10px 22px;

  font-size: 13px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.hb {
  display: none;

  background: none;

  border: 0;

  color: #fff;

  font-size: 24px;

  line-height: 1;

  cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.tk {
  margin-top: 84px;

  background: #000;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);

  position: relative;

  z-index: 5;

  min-height: 46px;
}


.hero {
  position: relative;

  padding:
    120px 0 110px;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 100%,
      #10224a 0,
      transparent 65%
    ),

    radial-gradient(
      ellipse at 95% 0,
      #3a1f05 0,
      transparent 50%
    );
}


#bg {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0.7;

  -webkit-mask-image:
    linear-gradient(
      transparent,
      #000 30%,
      #000 80%,
      transparent
    );

  mask-image:
    linear-gradient(
      transparent,
      #000 30%,
      #000 80%,
      transparent
    );
}

.hero .wrap {
  position: relative;

  z-index: 2;
}


/* =========================================================
   HERO PRODUCT GRID
========================================================= */

.hp {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;

  perspective: 1200px;
}

.hp .card {
  background:
    rgba(11, 16, 32, 0.82);

  backdrop-filter: blur(10px);

  padding: 14px;
}

.hp .card .pi {
  height: 110px;

  margin-bottom: 12px;
}

.hp .card h3 {
  font-size: 14px;
}

.hp .card p {
  display: none;
}

.hp .card .btn {
  padding: 8px 14px;

  font-size: 12px;
}


/* =========================================================
   HERO CENTER
========================================================= */

.hcen {
  text-align: center;

  max-width: 880px;

  margin: 90px auto 0;
}

.badge {
  display: inline-block;

  padding: 6px 16px;

  border:
    1px solid var(--gold);

  color: var(--gold);

  border-radius: 999px;

  font-size: 11px;

  letter-spacing: 1.8px;

  margin-bottom: 20px;

  text-transform: uppercase;
}

.hcen h1 {
  font-size:
    clamp(34px, 6vw, 66px);

  margin-bottom: 20px;

  letter-spacing: -1.8px;
}

.hcen p {
  color: var(--mut);

  max-width: 620px;

  margin: 0 auto 30px;

  font-size: 17px;
}


/* =========================================================
   HERO STATS
========================================================= */

.stats {
  display: flex;

  gap: 44px;

  margin-top: 40px;

  justify-content: center;
}

.stats b {
  font-family:
    "Manrope",
    "Inter",
    sans-serif;

  font-size: 26px;

  color: var(--gold);

  display: block;
}

.stats span {
  font-size: 12px;

  color: var(--mut);
}


/* =========================================================
   PRICE
========================================================= */

.pr {
  font-weight: 800;

  color: var(--gold);

  white-space: nowrap;
}

.pr s {
  color: var(--mut);

  font-weight: 400;

  font-size: 12px;

  margin-left: 6px;
}


/* =========================================================
   DISCOUNT
========================================================= */

.off {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  background: var(--green);

  color: #000;

  font-size: 11px;

  font-weight: 800;

  padding: 3px 8px;

  border-radius: 6px;

  line-height: 1.2;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.pi {
  position: relative;

  width: 100%;

  height: 280px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #090d18,
      #050810
    );

  border:
    1px solid rgba(255, 255, 255, 0.06);
}


/*
   IMPORTANT:
   contain keeps the complete product artwork visible.
*/

.pi img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  object-position: center;

  padding: 8px;

  transition:
    transform 0.45s ease;
}


/* Slight zoom without cropping */

.card:hover .pi img {
  transform: scale(1.035);
}


/* Remove old SVG styling */

.pi svg {
  display: none;
}


/* =========================================================
   MAIN PRODUCT GRID
========================================================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(260px, 1fr)
    );

  gap: 24px;

  perspective: 1200px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.card {
  position: relative;

  background:
    linear-gradient(
      160deg,
      #0f1730,
      var(--card)
    );

  border:
    1px solid var(--line);

  border-radius: 20px;

  padding: 18px;

  transition:
    transform 0.15s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;

  transform-style: preserve-3d;
}

.card:hover {
  border-color: var(--gold);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(245, 185, 66, 0.15);
}


/* Product image inside normal card */

.card .pi {
  height: 230px;

  margin-bottom: 16px;

  transform:
    translateZ(30px);
}


/* Product title */

.card h3 {
  font-size: 17px;

  margin-bottom: 7px;

  font-weight: 700;

  color: var(--txt);
}

.card h3 a {
  transition:
    color 0.25s ease;
}

.card h3 a:hover {
  color: var(--gold);
}


/* Product description */

.card p {
  font-size: 13px;

  color: var(--mut);

  margin-bottom: 14px;

  line-height: 1.6;
}


/* Discount badge */

.card .off {
  position: absolute;

  top: 26px;
  right: 26px;

  z-index: 2;

  transform:
    translateZ(50px);
}


/* Card bottom row */

.card .row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;
}

.card .btn {
  padding: 9px 18px;

  font-size: 13px;
}


/* =========================================================
   PRODUCT IMAGE LINK
========================================================= */

.product-image-link {
  display: block;

  border-radius: 14px;

  overflow: hidden;
}


/* =========================================================
   TWO COLUMN SECTION
========================================================= */

.two {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 44px;

  align-items: center;
}

.two p {
  color: var(--mut);

  margin-bottom: 14px;
}

.two h2 {
  font-size:
    clamp(26px, 3.5vw, 36px);

  margin-bottom: 16px;
}

.list {
  list-style: none;

  margin-top: 14px;
}

.list li {
  padding:
    6px 0 6px 28px;

  position: relative;

  color: var(--txt);
}

.list li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color: var(--green);

  font-weight: 700;
}


/* =========================================================
   WHITE / MEDIA BOX
========================================================= */

.wbox {
  background: var(--card);

  border:
    1px solid var(--line);

  border-radius: 18px;

  padding: 10px;

  overflow: hidden;

  min-height: 300px;
}


/* =========================================================
   FEATURED PRODUCT
========================================================= */

.feat {
  background:
    radial-gradient(
      ellipse at center,
      #1b1405 0,
      var(--bg) 70%
    );
}

.fbox {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 40px;

  align-items: center;

  padding: 46px;

  border-radius: 28px;

  border:
    1px solid var(--gold);

  background:
    linear-gradient(
      135deg,
      rgba(245, 185, 66, 0.08),
      rgba(34, 211, 238, 0.05)
    );

  box-shadow:
    0 0 80px rgba(245, 185, 66, 0.15);
}


/* Featured product image */

.fbox .pi {
  height: 320px;

  padding: 12px;

  transform:
    perspective(900px)
    rotateY(-8deg)
    rotateX(3deg);

  box-shadow:
    30px 30px 60px rgba(0, 0, 0, 0.6);

  animation:
    fy 5s ease-in-out infinite;
}

.fbox .pi img {
  padding: 4px;
}


.hot {
  display: inline-flex;

  color: #000;

  background: var(--gold);

  padding: 5px 14px;

  border-radius: 999px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1px;
}

.big {
  font-family:
    "Manrope",
    "Inter",
    sans-serif;

  font-size: 38px;

  color: var(--gold);

  margin: 14px 0;
}

.big s {
  color: var(--mut);

  font-size: 20px;

  margin-left: 10px;
}


/* =========================================================
   FEATURED FLOAT ANIMATION
========================================================= */

@keyframes fy {

  0%,
  100% {
    transform:
      perspective(900px)
      rotateY(-8deg)
      rotateX(3deg)
      translateY(0);
  }

  50% {
    transform:
      perspective(900px)
      rotateY(-8deg)
      rotateX(3deg)
      translateY(-10px);
  }

}


/* =========================================================
   THREE COLUMN CARDS
========================================================= */

.g3 {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(240px, 1fr)
    );

  gap: 22px;
}

.box {
  background: var(--card);

  border:
    1px solid var(--line);

  border-radius: 18px;

  padding: 26px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.box:hover {
  transform:
    translateY(-8px);

  border-color:
    var(--cyan);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.3);
}

.box .ic {
  font-size: 30px;

  margin-bottom: 10px;
}

.box h3 {
  font-size: 16px;

  margin-bottom: 8px;
}

.box p {
  color: var(--mut);

  font-size: 14px;
}


/* =========================================================
   SEO CONTENT
========================================================= */

.seo h2 {
  font-size: 26px;

  margin:
    26px 0 10px;
}

.seo p {
  color: var(--mut);

  margin-bottom: 12px;
}

.seo strong {
  color: var(--txt);
}


/* =========================================================
   TESTIMONIAL / FAQ
========================================================= */

.t {
  font-size: 14px;

  color: var(--mut);
}

.t b {
  display: block;

  color: var(--txt);

  margin-top: 12px;
}

.stars {
  color: var(--gold);
}


/* =========================================================
   CTA
========================================================= */

.cta {
  text-align: center;

  padding: 90px 20px;

  background:
    linear-gradient(
      135deg,
      #1a1203,
      #06122b
    );

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}

.cta h2 {
  font-size:
    clamp(28px, 4vw, 44px);

  margin-bottom: 14px;
}

.cta p {
  color: var(--mut);

  margin-bottom: 26px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 60px 0 24px;

  background: #02030a;
}


/* Footer grid */

.fg {
  display: grid;

  grid-template-columns:
    2fr 1fr 1fr 1fr;

  gap: 30px;
}


/* Footer brand */

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;

  align-items: center;
}

.footer-logo-img {
  display: block;

  width: 190px;

  height: auto;

  max-height: 55px;

  object-fit: contain;
}

.footer-brand p {
  color: var(--mut);

  font-size: 14px;

  line-height: 1.7;

  margin-top: 14px;
}


/* Footer columns */

.footer-column h4 {
  margin-bottom: 14px;

  font-size: 14px;

  font-weight: 700;

  color: var(--gold);
}

.footer-column ul {
  list-style: none;

  padding: 0;

  margin: 0;
}

.footer-column li {
  list-style: none;

  padding: 4px 0;

  font-size: 14px;

  color: var(--mut);
}

.footer-column li a {
  color: var(--mut);

  text-decoration: none;

  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.footer-column li a:hover {
  color: #fff;

  padding-left: 4px;
}


/* Risk warning */

.risk {
  margin-top: 34px;

  padding-top: 20px;

  border-top:
    1px solid var(--line);

  font-size: 12px;

  line-height: 1.7;

  color: #5d6a8a;
}


/* =========================================================
   WHATSAPP
========================================================= */

.wa {
  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 60;

  width: 58px;
  height: 58px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #25d366;

  color: #fff;

  font-size: 28px;

  box-shadow:
    0 8px 30px rgba(37, 211, 102, 0.5);

  animation:
    fy-wa 3s infinite;
}

@keyframes fy-wa {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.rv {
  opacity: 0;

  transform:
    translateY(40px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.rv.in {
  opacity: 1;

  transform: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1000px) {

  nav {
    gap: 18px;
  }

  .hd-btn {
    padding:
      9px 17px;
  }

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

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 860px) {

  header {
    padding: 9px 16px;

    width: min(
      94%,
      700px
    );
  }

  .logo-img {
    width: 155px;

    max-height: 48px;
  }

  nav {
    display: none;

    position: absolute;

    top: 68px;

    left: 0;
    right: 0;

    flex-direction: column;

    background:
      rgba(10, 15, 30, 0.97);

    padding: 20px;

    border:
      1px solid var(--line);

    border-radius: 20px;

    gap: 14px;

    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5);
  }

  nav.open {
    display: flex;
  }

  nav a::after {
    display: none;
  }

  .hb {
    display: block;
  }

  .hd-btn {
    display: none;
  }

  .hero {
    padding:
      100px 0 80px;
  }

  .hcen {
    margin-top: 60px;
  }

  .two,
  .fbox,
  .fg {
    grid-template-columns: 1fr;
  }

  .fbox {
    padding: 30px;
  }

  .fbox .pi {
    height: 300px;

    order: -1;
  }

  .fg {
    gap: 35px 25px;
  }

}


/* =========================================================
   MOBILE PRODUCT GRID
========================================================= */

@media (max-width: 700px) {

  .grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 16px;
  }

  .card {
    padding: 14px;

    border-radius: 16px;
  }

  .card .pi {
    height: 200px;

    margin-bottom: 13px;
  }

  .card h3 {
    font-size: 15px;
  }

  .card p {
    font-size: 12px;
  }

  .card .row {
    align-items: flex-end;
  }

  .card .btn {
    padding:
      8px 12px;

    font-size: 12px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 560px) {

  section {
    padding:
      65px 0;
  }

  .wrap {
    padding-left: 15px;
    padding-right: 15px;
  }

  .logo-img {
    width: 140px;

    max-height: 44px;
  }

  .hp {
    grid-template-columns:
      1fr 1fr;

    gap: 12px;
  }

  .hp .card {
    padding: 10px;
  }

  .hp .card .pi {
    height: 105px;
  }

  .hcen h1 {
    font-size:
      clamp(31px, 10vw, 48px);
  }

  .hcen p {
    font-size: 15px;
  }

  .stats {
    gap: 22px;

    flex-wrap: wrap;
  }

  .stats b {
    font-size: 22px;
  }

  .fbox {
    padding: 22px;

    border-radius: 20px;
  }

  .fbox .pi {
    height: 250px;
  }

  .big {
    font-size: 32px;
  }

  footer {
    padding:
      50px 0 20px;
  }

  .fg {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .footer-logo-img {
    width: 165px;

    max-height: 48px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-brand p {
    max-width: 340px;
  }

  .wa {
    width: 54px;
    height: 54px;

    right: 15px;
    bottom: 15px;

    font-size: 25px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

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

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

  .hp .card .pi {
    height: 180px;
  }

  .card .pi {
    height: 230px;
  }

  .stats {
    gap: 18px;
  }

}
/* =========================================================
   INDEX PAGE HELPERS
========================================================= */

.section-dark {
  background: #060a16;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.market-widget {
  min-height: 400px;
}

.featured-product-image {
  text-decoration: none;
}

.featured-title {
  font-size: 32px;
  margin-top: 16px;
}

.featured-description {
  color: var(--mut);
  margin-top: 10px;
}

.news-widget {
  display: flex;
  justify-content: center;
}

.news-widget .tradingview-widget-container {
  width: 100%;
}

.testimonials {
  margin-top: 22px;
}

.faq-section {
  padding-top: 60px;
}

.faq-wrap {
  max-width: 800px;
}

.faq-item {
  margin-bottom: 14px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .about-features {
    grid-template-columns: 1fr;
  }

  .featured-title {
    font-size: 27px;
  }
}