:root {
  --stock-hero-image: none;
  --stock-green: #43d7a0;
  --stock-red: #ff7d8c;
}

.stock-hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg,rgba(3,13,31,.98) 0%,rgba(3,13,31,.82) 43%,rgba(3,13,31,.25) 78%,rgba(3,13,31,.72) 100%),
    linear-gradient(180deg,rgba(4,16,36,.06),rgba(4,16,36,.2) 65%,#061026 100%),
    var(--stock-hero-image),
    radial-gradient(circle at 76% 44%,rgba(23,137,255,.32),transparent 25%),
    radial-gradient(circle at 78% 44%,rgba(73,180,255,.09),transparent 43%),
    linear-gradient(135deg,#061127 0%,#081b37 58%,#071329 100%);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(72,180,255,.22);
}
.stock-hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 7%;
  width: min(45vw,650px);
  aspect-ratio: 1;
  border: 1px solid rgba(72,180,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(72,180,255,.018),0 0 0 130px rgba(72,180,255,.012);
}
.stock-hero::after {
  content: "AIMS";
  position: absolute;
  right: max(4vw,50px);
  bottom: 50px;
  color: rgba(78,172,255,.045);
  font-size: clamp(130px,19vw,320px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.07em;
}
.stock-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(72,180,255,.09) 1px,transparent 1px),
    linear-gradient(90deg,rgba(72,180,255,.09) 1px,transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(90deg,transparent 28%,#000 68%,transparent);
  mask-image: linear-gradient(90deg,transparent 28%,#000 68%,transparent);
}
.stock-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 570px;
  display: flex;
  align-items: center;
}
.stock-hero-copy {
  max-width: 670px;
  padding-top: 80px;
}
.stock-hero-copy h1 {
  margin-top: 0;
  font-size: clamp(48px,5.6vw,78px);
  font-weight: 500;
}
.stock-hero-copy p {
  max-width: 600px;
  margin-top: 22px;
  color: #b3cdeb;
  font-size: 19px;
}
.stock-hero-copy .btn { margin-top: 34px; }
.stock-stats {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  min-height: 100px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  padding-inline: max(24px,calc((100vw - 1160px)/2));
  border-top: 1px solid rgba(72,180,255,.36);
  background: rgba(2,18,41,.83);
  box-shadow: 0 -18px 60px rgba(3,25,58,.44);
  backdrop-filter: blur(16px);
}
.stock-stats div {
  display: grid;
  place-content: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
  border-right: 1px solid rgba(72,180,255,.12);
}
.stock-stats div:first-child { border-left: 1px solid rgba(72,180,255,.12); }
.stock-stats strong {
  color: #f3f8ff;
  font-size: 24px;
  font-weight: 600;
}
.stock-stats sup { font-size: .5em; }
.stock-stats span { color: #459fe9; font-size: 12px; }

.stock-intro { padding: 112px 0 100px; }
.stock-intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.25fr;
  gap: 90px;
  align-items: start;
}
.stock-intro .section-head { margin: 0; }
.stock-intro .section-head h2 { margin-top: 0; }
.stock-intro-copy {
  padding: 8px 0 8px 42px;
  border-left: 1px solid rgba(72,180,255,.34);
}
.stock-intro-copy p { color: #b5cae6; font-size: 17px; line-height: 2; }
.stock-intro-copy p + p { margin-top: 16px; }

.stock-benefits {
  background:
    radial-gradient(circle at 50% 0,rgba(33,126,235,.13),transparent 40%),
    linear-gradient(180deg,rgba(5,23,48,.4),rgba(3,15,34,.7));
}
.stock-benefits .section-head h2,
.stock-markets .section-head h2,
.stock-example .section-head h2,
.stock-process .section-head h2 { margin-top: 0; }
.stock-benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stock-benefit {
  min-height: 260px;
  padding: 34px 27px;
  border: 1px solid rgba(51,142,235,.48);
  border-radius: 16px;
  background: linear-gradient(155deg,rgba(13,43,83,.92),rgba(3,20,43,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.stock-benefit:hover {
  transform: translateY(-6px);
  border-color: rgba(80,183,255,.9);
  box-shadow: 0 24px 54px rgba(0,18,48,.4);
}
.benefit-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(232,196,122,.62);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%,rgba(82,182,255,.35),rgba(6,29,60,.9));
  color: #f0ca7d;
  font-family: Georgia,serif;
  font-size: 29px;
  box-shadow: 0 0 0 7px rgba(31,135,245,.07),0 12px 30px rgba(0,20,52,.32);
}
.benefit-mark--wide { font-family: var(--font); font-size: 15px; font-weight: 700; }
.stock-benefit h3 { font-size: 21px; font-weight: 500; }
.stock-benefit p { margin-top: 13px; color: #8faecc; font-size: 14px; }

.stock-markets { overflow: hidden; }
.stock-markets::before {
  content: "";
  position: absolute;
  right: -15%;
  bottom: 8%;
  width: 740px;
  height: 740px;
  border: 1px solid rgba(72,180,255,.08);
  border-radius: 50%;
}
.market-grid { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.market-card {
  overflow: hidden;
  border: 1px solid rgba(43,134,230,.5);
  border-radius: 20px;
  background: linear-gradient(180deg,rgba(9,36,72,.93),rgba(2,19,41,.96));
  box-shadow: 0 24px 58px rgba(0,11,32,.26);
}
.market-card header {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(72,180,255,.2);
  background: radial-gradient(circle at 0 0,rgba(72,180,255,.19),transparent 56%);
}
.market-code {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232,196,122,.62);
  border-radius: 14px;
  color: #f0ca7d;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}
.market-card h3 { font-size: 23px; font-weight: 500; }
.market-card header p { margin-top: 3px; color: #6ebaf7; font-size: 12px; letter-spacing: .1em; }
.market-card ul { display: grid; list-style: none; padding: 13px 24px 22px; }
.market-card li {
  min-height: 52px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.065);
  color: #c1d2e8;
  font-size: 13px;
}
.market-card li:last-child { border-bottom: 0; }
.market-card li span { color: #55b7ff; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 11px; font-weight: 700; }

.stock-example {
  background:
    radial-gradient(circle at 10% 50%,rgba(30,135,245,.11),transparent 35%),
    linear-gradient(180deg,rgba(4,18,39,.6),rgba(5,17,37,.25));
}
.stock-example .section-head { max-width: 820px; }
.example-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.trade-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(43,134,230,.55);
  border-radius: 20px;
  background: linear-gradient(160deg,rgba(10,41,80,.94),rgba(2,18,39,.98));
  box-shadow: 0 26px 65px rgba(0,12,34,.3);
}
.trade-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg,var(--stock-green),transparent 72%);
}
.trade-card--sell::before { background: linear-gradient(90deg,#4db6ff,transparent 72%); }
.trade-card-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.trade-card-head h3 { margin-top: 7px; font-size: 28px; font-weight: 500; }
.trade-card-head > strong { color: rgba(88,183,255,.32); font-size: 20px; letter-spacing: .06em; }
.trade-direction { color: var(--stock-green); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.trade-card--sell .trade-direction { color: #63bdff; }
.trade-card > p { min-height: 105px; margin-top: 23px; color: #9fb9d6; font-size: 14px; line-height: 1.85; }
.trade-data {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 25px;
  border-block: 1px solid rgba(72,180,255,.17);
}
.trade-data div { padding: 18px 10px; text-align: center; border-right: 1px solid rgba(72,180,255,.12); }
.trade-data div:last-child { border-right: 0; }
.trade-data dt { color: #7898bc; font-size: 11px; }
.trade-data dd { margin-top: 5px; color: #f2f7ff; font-size: 17px; font-weight: 600; }
.trade-data .positive { color: var(--stock-green); }
.formula {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(232,196,122,.25);
  border-radius: 12px;
  background: rgba(232,196,122,.045);
}
.formula span { color: #e8c47a; font-size: 12px; font-weight: 700; }
.formula p { margin-top: 6px; color: #b8cbe4; font-size: 12px; line-height: 1.7; }
.example-note { margin: 22px auto 0; color: rgba(143,174,211,.58); font-size: 11px; text-align: center; }

.stock-process { padding-bottom: 116px; }
@media (max-width: 1000px) {
  .stock-benefit-grid { grid-template-columns: repeat(2,1fr); }
  .market-grid { grid-template-columns: 1fr; }
  .market-card ul { grid-template-columns: repeat(2,1fr); gap: 0 20px; }
  .example-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .stock-hero { min-height: 660px; }
  .stock-hero-inner { min-height: 550px; align-items: center; }
  .stock-hero-copy { padding-top: 42px; }
  .stock-hero-copy h1 { font-size: clamp(42px,13vw,62px); }
  .stock-hero-copy p { font-size: 16px; }
  .stock-stats { min-height: 92px; grid-template-columns: repeat(5,1fr); padding-inline: 12px; }
  .stock-stats strong { font-size: 17px; }
  .stock-stats span { font-size: 9px; }
  .stock-intro { padding: 78px 0; }
  .stock-intro-grid { grid-template-columns: 1fr; gap: 34px; }
  .stock-intro-copy { padding: 0 0 0 24px; }
  .stock-benefit-grid { grid-template-columns: 1fr; }
  .stock-benefit { min-height: 0; }
  .market-card ul { grid-template-columns: 1fr; }
  .trade-card { padding: 27px 22px; }
  .trade-card > p { min-height: 0; }
  .trade-data { grid-template-columns: repeat(2,1fr); }
  .trade-data div:nth-child(2) { border-right: 0; }
  .trade-data div:nth-child(-n+2) { border-bottom: 1px solid rgba(72,180,255,.12); }
}

@media (max-width: 520px) {
  .stock-hero { min-height: 625px; }
  .stock-hero-inner { min-height: 520px; }
  .stock-hero-copy h1 { max-width: 330px; }
  .stock-stats div:nth-child(4) { display: none; }
  .stock-stats { grid-template-columns: repeat(4,1fr); }
  .stock-stats div:first-child { border-left: 0; }
  .stock-benefits,.stock-markets,.stock-example { padding-block: 76px; }
  .market-card header { padding-inline: 20px; }
  .market-card ul { padding-inline: 20px; }
  .trade-card-head { display: block; }
  .trade-card-head > strong { display: block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .stock-benefit { transition: none; }
}
