* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  color: #eef5ff;

  background: #050713;

  overflow-x: hidden;
}


/* BACKGROUND */

.background-grid {
  position: fixed;
  inset: 0;

  pointer-events: none;

  opacity: .28;

  background-image:
    linear-gradient(
      rgba(80,220,255,.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(80,220,255,.05) 1px,
      transparent 1px
    );

  background-size: 45px 45px;
}

.glow {
  position: fixed;

  width: 380px;
  height: 380px;

  border-radius: 50%;

  filter: blur(100px);

  opacity: .13;

  pointer-events: none;
}

.blue {
  right: -150px;
  top: 80px;

  background: #00eaff;
}

.purple {
  left: -150px;
  top: 520px;

  background: #8b4dff;
}


/* HEADER */

header {
  height: 72px;

  padding:
    0 clamp(20px, 6vw, 75px);

  display: flex;

  align-items: center;

  justify-content: space-between;

  background: rgba(4,6,18,.78);

  border-bottom:
    1px solid rgba(150,180,230,.12);

  backdrop-filter: blur(15px);
}

.logo {
  font-size: 17px;

  font-weight: 800;

  letter-spacing: 2px;
}

.logo span:first-child {
  color: #a974ff;

  margin-right: 7px;
}

.logo span:last-child {
  color: #69eaff;
}

.status {
  color: #8793ad;

  font-size: 10px;

  letter-spacing: 1.4px;
}

.status i {
  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 7px;

  border-radius: 50%;

  background: #48f5ce;

  box-shadow:
    0 0 12px #48f5ce;
}


/* MAIN */

main {
  width: 92%;

  max-width: 1180px;

  margin: auto;
}


/* HERO */

.hero {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 45px;

  align-items: center;

  padding:
    75px 0 55px;
}

.eyebrow,
.section-label {
  color: #61eaff;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;
}

.hero h1 {
  margin:
    18px 0 22px;

  font-size:
    clamp(40px, 5.4vw, 70px);

  line-height: .98;

  letter-spacing: -3px;
}

.hero h1 span {
  background:
    linear-gradient(
      90deg,
      #edf6ff,
      #70edff,
      #a874ff
    );

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;
}

.hero p {
  max-width: 620px;

  color: #9ca8c1;

  font-size: 15px;

  line-height: 1.8;
}

.feature-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-top: 28px;
}

.feature-tags span {
  padding: 8px 11px;

  border:
    1px solid rgba(100,235,255,.18);

  border-radius: 5px;

  background:
    rgba(70,210,255,.05);

  color: #b8c9e7;

  font-size: 9px;

  letter-spacing: 1px;
}


/* AI VISUAL */

.visual {
  padding: 17px;

  border:
    1px solid rgba(111,220,255,.18);

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(12,22,45,.92),
      rgba(13,8,31,.82)
    );

  box-shadow:
    0 25px 80px rgba(0,0,0,.35);
}

.visual-header,
.visual-footer {
  display: flex;

  justify-content: space-between;

  color: #7f8daa;

  font-size: 9px;

  letter-spacing: 1.5px;
}

.active {
  color: #53f4d0;
}

.chart {
  height: 285px;

  position: relative;

  overflow: hidden;

  margin: 13px 0;

  border:
    1px solid rgba(120,150,200,.08);

  background: #07101d;
}

.chart-grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(100,220,255,.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(100,220,255,.05) 1px,
      transparent 1px
    );

  background-size: 36px 36px;
}

.level {
  position: absolute;

  left: 0;
  right: 0;

  padding-right: 8px;

  text-align: right;

  border-top: 1px dashed;

  font-size: 7px;

  letter-spacing: 1px;
}

.resistance {
  top: 24%;

  color: #70eaff;

  border-color:
    rgba(100,232,255,.3);
}

.key {
  top: 48%;

  color: #b88cff;

  border-color:
    rgba(170,113,255,.35);
}

.demand {
  top: 74%;

  color: #61e8c3;

  border-color:
    rgba(71,242,198,.3);
}

.candles {
  position: absolute;

  inset: 25px 30px 20px;

  display: flex;

  align-items: center;

  justify-content: space-around;
}

.candles i {
  width: 7px;

  position: relative;

  border-radius: 1px;
}

.candles i::before {
  content: "";

  position: absolute;

  left: 3px;

  top: -12px;
  bottom: -12px;

  width: 1px;

  background: inherit;
}

.up {
  background: #58e6c1;
}

.down {
  background: #aa76ff;
}

.c1 {height:48px}
.c2 {height:76px}
.c3 {height:58px}
.c4 {height:92px}
.c5 {height:65px}
.c6 {height:116px}
.c7 {height:80px}
.c8 {height:96px}
.c9 {height:132px}
.c10 {height:105px}
.c11 {height:142px}
.c12 {height:160px}

.chart svg {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  opacity: .65;
}

.chart path {
  fill: none;

  stroke: #6deeff;

  stroke-width: 2;
}

.scan {
  position: absolute;

  top: 0;
  bottom: 0;

  left: 72%;

  width: 2px;

  background: #64edff;

  box-shadow:
    0 0 20px #64edff;

  opacity: .35;
}


/* UPLOAD */

.upload-section {
  padding:
    35px 0 55px;

  text-align: center;
}

.upload-section h2 {
  margin:
    10px 0;

  font-size: 30px;
}

.section-description {
  max-width: 600px;

  margin:
    0 auto 28px;

  color: #78849e;

  font-size: 12px;

  line-height: 1.7;
}

.upload-box {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 270px;

  padding: 25px;

  cursor: pointer;

  border:
    1px dashed rgba(96,224,255,.35);

  border-radius: 14px;

  background:
    rgba(10,16,34,.72);

  transition: .25s;
}

.upload-box:hover,
.upload-box.dragging {
  border-color: #65eaff;

  background:
    rgba(15,27,52,.9);

  box-shadow:
    0 0 40px rgba(0,220,255,.08);
}

.upload-icon {
  width: 58px;
  height: 58px;

  display: flex;

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

  margin: auto;

  border-radius: 50%;

  color: #6deeff;

  background:
    rgba(80,220,255,.08);

  font-size: 27px;
}

.upload-box h3 {
  margin:
    15px 0 6px;

  font-size: 16px;
}

.upload-box p {
  margin: 0;

  color: #8290a9;

  font-size: 11px;
}

.upload-box span {
  display: block;

  margin-top: 14px;

  color: #535e76;

  font-size: 9px;

  letter-spacing: 1px;
}

.preview {
  max-width: 100%;

  max-height: 430px;

  border-radius: 9px;

  object-fit: contain;
}

#analyzeButton {
  width: 100%;

  max-width: 420px;

  margin-top: 18px;

  padding: 15px 20px;

  border: 0;

  border-radius: 8px;

  cursor: pointer;

  color: #031018;

  background:
    linear-gradient(
      90deg,
      #58eaff,
      #a776ff
    );

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 1.5px;

  transition: .25s;
}

#analyzeButton:hover:not(:disabled) {
  transform: translateY(-2px);

  box-shadow:
    0 12px 35px rgba(74,220,255,.2);
}

#analyzeButton:disabled {
  cursor: not-allowed;

  opacity: .35;
}


/* LOADING */

.loading {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  margin-top: 20px;

  color: #7c8ba5;

  font-size: 11px;
}

.spinner {
  width: 17px;
  height: 17px;

  border:
    2px solid #263147;

  border-top-color: #6deeff;

  border-radius: 50%;

  animation:
    spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ERROR */

.error {
  max-width: 700px;

  margin: 18px auto 0;

  padding: 13px;

  border:
    1px solid rgba(255,90,130,.25);

  border-radius: 8px;

  color: #ff91ab;

  background:
    rgba(255,50,90,.06);

  font-size: 11px;
}


/* RESULTS */

.results {
  padding:
    30px 0 65px;
}

.results-heading {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;

  margin-bottom: 25px;
}

.results-heading h2 {
  margin: 8px 0 0;

  font-size: 28px;
}

.overall {
  width: 260px;
}

.overall span {
  color: #8290ad;

  font-size: 9px;

  letter-spacing: 1px;
}

.overall strong {
  display: block;

  margin-top: 3px;

  color: #75efff;

  font-size: 28px;
}


/* ANALYSIS CARDS */

.analysis-grid {
  display: grid;

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

  gap: 13px;
}

.analysis-card {
  min-height: 205px;

  padding: 20px;

  border:
    1px solid rgba(146,165,215,.12);

  border-radius: 11px;

  background:
    rgba(10,14,30,.72);
}

.card-icon {
  font-size: 20px;

  margin-bottom: 18px;
}

.analysis-card h3 {
  margin: 0;

  font-size: 13px;
}

.analysis-card p {
  min-height: 50px;

  color: #77839e;

  font-size: 10px;

  line-height: 1.55;
}

.confidence {
  display: flex;

  justify-content: space-between;

  margin-top: 18px;

  color: #74809a;

  font-size: 9px;
}

.confidence b {
  color: #dfeaff;

  font-size: 12px;
}


/* SUMMARY */

.ai-summary {
  display: flex;

  align-items: flex-start;

  gap: 17px;

  margin-top: 30px;

  padding: 22px;

  border:
    1px solid rgba(139,103,255,.18);

  border-radius: 12px;

  background:
    linear-gradient(
      90deg,
      rgba(31,19,57,.65),
      rgba(9,19,36,.65)
    );
}

.summary-icon {
  color: #a87cff;

  font-size: 24px;
}

.ai-summary h3 {
  margin: 7px 0;

  font-size: 15px;
}

.ai-summary p {
  margin: 0;

  color: #77839c;

  font-size: 11px;
}


/* FOOTER */

footer {
  padding:
    0 0 30px;

  text-align: center;

  color: #4f5971;

  font-size: 8px;

  letter-spacing: 2px;
}

footer span {
  color: #7b65e8;

  margin: 0 7px;
}


/* MOBILE */

@media (max-width: 900px) {

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

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

  .results-heading {
    flex-direction: column;

    align-items: flex-start;
  }

  .overall {
    width: 100%;
  }
}


@media (max-width: 560px) {

  .status {
    display: none;
  }

  .hero h1 {
    letter-spacing: -1.8px;
  }

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

  .chart {
    height: 235px;
  }

  .upload-box {
    min-height: 220px;
  }
  }  background-size: 45px 45px;

  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}

.glow-blue {
  width: 400px;
  height: 400px;
  background: #00eaff;
  right: -150px;
  top: 80px;
}

.glow-purple {
  width: 350px;
  height: 350px;
  background: #8d4dff;
  left: -150px;
  top: 500px;
}


/* NAVBAR */

.navbar {
  height: 72px;

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

  padding: 0 6%;

  border-bottom: 1px solid rgba(150, 180, 230, 0.12);

  background: rgba(4, 6, 18, 0.75);

  backdrop-filter: blur(15px);
}

.logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo > span:first-child {
  color: #a873ff;
  margin-right: 8px;
}

.cyan {
  color: #6deeff;
}

.engine-status {
  color: #8794ae;
  font-size: 10px;
  letter-spacing: 1.4px;
}

.status-dot {
  display: inline-block;

  width: 7px;
  height: 7px;

  margin-right: 7px;

  border-radius: 50%;

  background: #45f6cf;

  box-shadow:
    0 0 10px #45f6cf;
}


/* MAIN */

main {
  width: 92%;
  max-width: 1180px;

  margin: auto;
}


/* HERO */

.hero {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 45px;

  align-items: center;

  padding: 75px 0 60px;
}

.eyebrow,
.section-label {
  color: #63eaff;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 70px);

  line-height: 0.98;

  letter-spacing: -3px;

  margin: 18px 0 22px;
}

.hero h1 span {
  background:
    linear-gradient(
      90deg,
      #edf6ff,
      #70ecff,
      #a875ff
    );

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;
}

.hero p {
  color: #9ca9c2;

  max-width: 620px;

  line-height: 1.8;

  font-size: 15px;
}

.badges {
  display: flex;

  gap: 9px;

  flex-wrap: wrap;

  margin-top: 28px;
}

.badges span {
  padding: 8px 11px;

  border-radius: 5px;

  border: 1px solid rgba(100, 235, 255, 0.18);

  background: rgba(70, 210, 255, 0.05);

  color: #b8c9e7;

  font-size: 9px;

  letter-spacing: 1px;
}


/* AI VISUAL */

.ai-panel {
  padding: 17px;

  border-radius: 16px;

  border: 1px solid rgba(111, 220, 255, 0.18);

  background:
    linear-gradient(
      145deg,
      rgba(12, 22, 45, 0.92),
      rgba(13, 8, 31, 0.82)
    );

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 60px rgba(94, 79, 255, 0.05);
}

.panel-header,
.panel-footer {
  display: flex;

  justify-content: space-between;

  color: #7f8daa;

  font-size: 9px;

  letter-spacing: 1.5px;
}

.online {
  color: #53f4d0;
}


/* CHART */

.market-chart {
  height: 285px;

  margin: 13px 0;

  position: relative;

  overflow: hidden;

  border: 1px solid rgba(120, 150, 200, 0.08);

  background: #07101d;
}

.chart-grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(100, 220, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(100, 220, 255, 0.05) 1px,
      transparent 1px
    );

  background-size: 36px 36px;
}


/* LEVELS */

.level {
  position: absolute;

  left: 0;
  right: 0;

  border-top: 1px dashed;

  text-align: right;

  padding-right: 8px;

  font-size: 7px;

  letter-spacing: 1px;
}

.resistance {
  top: 24%;

  color: #70eaff;

  border-color: rgba(100, 232, 255, 0.3);
}

.key {
  top: 48%;

  color: #b88cff;

  border-color: rgba(170, 113, 255, 0.35);
}

.demand {
  top: 74%;

  color: #61e8c3;

  border-color: rgba(71, 242, 198, 0.3);
}


/* CANDLESTICKS */

.candles {
  position: absolute;

  inset: 25px 30px 20px;

  display: flex;

  align-items: center;

  justify-content: space-around;
}

.candle {
  width: 7px;

  position: relative;

  border-radius: 1px;

  opacity: 0.9;
}

.candle::before {
  content: "";

  position: absolute;

  width: 1px;

  left: 3px;

  top: -13px;

  bottom: -13px;

  background: inherit;
}

.bullish {
  background: #58e6c1;
}

.bearish {
  background: #aa76ff;
}

.c1 { height: 48px; }
.c2 { height: 76px; }
.c3 { height: 58px; }
.c4 { height: 92px; }
.c5 { height: 65px; }
.c6 { height: 116px; }
.c7 { height: 80px; }
.c8 { height: 96px; }
.c9 { height: 132px; }
.c10 { height: 105px; }
.c11 { height: 142px; }
.c12 { height: 160px; }


/* AI LINE */

.analysis-line {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0.65;
}

.analysis-line path {
  fill: none;

  stroke: #6deeff;

  stroke-width: 2;
}


/* SCAN */

.scan-line {
  position: absolute;

  top: 0;
  bottom: 0;

  width: 2px;

  left: 72%;

  background: #64edff;

  box-shadow: 0 0 20px #64edff;

  opacity: 0.35;
}


/* ANALYSIS HEADER */

.analysis-header {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;

  margin-bottom: 25px;
}

.analysis-header h2 {
  margin: 8px 0 0;

  font-size: 27px;
}

.overall-confidence {
  width: 260px;
}

.confidence-title {
  display: flex;

  justify-content: space-between;

  align-items: end;
}

.confidence-title span {
  color: #8290ad;

  font-size: 9px;

  letter-spacing: 1px;
}

.confidence-title strong {
  color: #75efff;

  font-size: 27px;
}


/* PROGRESS */

.progress {
  height: 4px;

  margin-top: 8px;

  overflow: hidden;

  border-radius: 20px;

  background: #171b2b;
}

.progress div {
  height: 100%;

  border-radius: 20px;

  background:
    linear-gradient(
      90deg,
      #36dbe9,
      #8c64ff
    );

  box-shadow: 0 0 10px rgba(81, 224, 255, 0.5);
}


/* CARDS */

.analysis-grid {
  display: grid;

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

  gap: 13px;
}

.analysis-card {
  min-height: 195px;

  padding: 20px;

  border-radius: 11px;

  border: 1px solid rgba(146, 165, 215, 0.12);

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

  transition: 0.25s;
}

.analysis-card:hover {
  transform: translateY(-4px);

  border-color:
    rgba(90, 229, 255, 0.28);

  background:
    rgba(12, 18, 38, 0.9);
}

.card-icon {
  font-size: 20px;

  margin-bottom: 19px;
}

.analysis-card h3 {
  margin: 0;

  font-size: 13px;
}

.analysis-card p {
  min-height: 34px;

  color: #77839e;

  font-size: 10px;

  line-height: 1.55;
}

.confidence-row {
  display: flex;

  justify-content: space-between;

  margin-top: 22px;
}

.confidence-row span {
  color: #74809a;

  font-size: 9px;
}

.confidence-row strong {
  color: #dfeaff;

  font-size: 12px;
}

.progress.small {
  height: 3px;

  margin-top: 7px;
}


/* SUMMARY */

.ai-summary {
  display: flex;

  align-items: center;

  gap: 17px;

  margin: 30px 0 60px;

  padding: 22px;

  border-radius: 12px;

  border: 1px solid rgba(139, 103, 255, 0.18);

  background:
    linear-gradient(
      90deg,
      rgba(31, 19, 57, 0.65),
      rgba(9, 19, 36, 0.65)
    );
}

.summary-icon {
  color: #a87cff;

  font-size: 24px;
}

.ai-summary h3 {
  margin: 7px 0;

  font-size: 15px;
}

.ai-summary p {
  margin: 0;

  color: #77839c;

  font-size: 11px;
}


/* FOOTER */

footer {
  padding-bottom: 30px;

  text-align: center;

  color: #4f5971;

  font-size: 8px;

  letter-spacing: 2px;
}

footer span {
  color: #7b65e8;

  margin: 0 7px;
}


/* MOBILE */

@media (max-width: 900px) {

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

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

  .analysis-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .overall-confidence {
    width: 100%;
  }

}


@media (max-width: 560px) {

  .engine-status {
    display: none;
  }

  .hero h1 {
    letter-spacing: -1.8px;
  }

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

  .market-chart {
    height: 235px;
  }

  .ai-summary {
    align-items: flex-start;
  }

  }
