/* Reset default margins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #0a0a0a; /* Dark night black */
  color: white;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;

  /* Secondary thin grid lines every 10px */
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 10px 10px, 10px 10px;
}

/* Primary grid intersections with star-like glow */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  /* Use radial gradients at 40px intersections */
  background-image:
    radial-gradient(circle, white 1px, transparent 2px),
    radial-gradient(circle, white 1px, transparent 2px);
  background-size: 40px 40px;
  animation: sparkle 2s ease-in-out infinite;
  z-index: 0;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

.logo{
  color : white; 
  font-weight: bold;
  font-size: 1.5em;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  cursor: auto;
}

.brand-tag{
  display: inline-block;
  font-size: 0.5rem;
  font-weight: bold;
  color: white;
  top : -0.2em;
  background-color: rgba(124, 58, 237, 0.2);
  border-left: 2px solid rgba(124, 58, 237, 1);
  border-right: 2px solid rgba(124, 58, 237, 1);
  padding : 2px 6px;
  margin-top : 6px;
  margin-left: 6px;
  text-transform: uppercase;
}

/* Transparent Navbar */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffffff;
}

/* Hamburger icon (hidden by default) */
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.features-btn {
  background-color: rgba(79, 70, 229, 0.8);
  border: none;
  color: white;
  padding: 12px;
  border-radius: 6px;
}

/* Responsive styles */
@media (max-width: 768px) {

  .menu {
    position: absolute;
    top: 70px;
    right: 40px;
    background: rgba(0,0,0,0.85);
    padding: 20px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
  }

  .menu a {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }
  
  /* Hide menu on small screens */
  .menu.active {
    display: flex;
  }
}

/* -------------------------- END of NAVBAR ---------------------------- */

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 5rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.hero-terms,
.hero-definition {
  display: grid;
  grid-auto-flow: column;
  gap: 30px;
  margin: 10px 0;
}

.term-1, .term-2, .plus{
  padding: 10px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  border-radius: 2px;
  text-align: center;
}

.term-1{
  background-color: rgba(241, 21, 20, 0.2);
  border-left: 3px solid rgba(241, 21, 20, 1);
  border-right: 3px solid rgba(241, 21, 20, 1);
}

.term-2 {
  background-color: rgba(79, 70, 229, 0.2);
  border-left: 3px solid rgba(79, 70, 229, 1);
  border-right: 3px solid rgba(79, 70, 229, 1);
}

.term-1 span{
  color: #ef4444;
}

.term-2 span{
  color: #818cf8;
}

.hero-definition .term-1 {
  margin-left: 0; /* remove fixed margin for responsiveness */
}

.hero-subtitle {
  font-size: 0.8rem;
  max-width: 900px;
  margin: 30px 0;
  color: #E5E7EB;
  text-shadow: 0 0 2px rgba(255,255,255,0.3);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background-color: rgba(16, 185, 129, 0.1);
  border-left: 4px solid rgba(16, 185, 129, 1);
  border-right: 4px solid rgba(16, 185, 129, 1);
  border-radius: 5px;
  padding : 10px;
}

/* Scroll indicator */
.scroll-indicator {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

.scroll-circle {
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: white;
}

.scroll-label {
  font-size: 0.9rem;
  color: #ffffff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* ---------------------- */
/* RESPONSIVE MEDIA QUERIES */
/* ---------------------- */

@media (max-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }

  .term-1, .term-2, .term-1-def, .term-2-def, .plus, .plus-def {
    font-size: 20px;
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-terms,
  .hero-definition {
    grid-auto-flow: row;
    gap: 15px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .term-1, .term-2, .term-1-def, .term-2-def, .plus, .plus-def {
    font-size: 18px;
    padding: 6px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .scroll-circle {
    width: 30px;
    height: 30px;
  }

  .scroll-arrow {
    font-size: 1.2rem;
  }

  .scroll-label {
    font-size: 0.8rem;
  }
}

/* -------------------------- END of HERO-SECTION ---------------------------- */

#demo-section {
  height: auto;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: transparent;
  color: #fff;
  font-size: 2rem;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.how-to-use {
  margin : 10px auto;
  max-width: 800px;
  padding: 30px;
  background: black;
  border: 1px solid gray;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
}

.how-to-use h4 {
    text-align: left;
    font-size: 20px;
    margin-bottom: 30px;
    color: #ffffff;
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 25px;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #007bff;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #38bdf8;
    font-weight: 600;
}

.steps p {
    margin: 0;
    font-size: 16px;
    font-weight: 200;
    color: #ffffff;
    line-height: 1.5;
}

.terminal-title {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
}

/* Controls */
.dashboard-controls {
  text-align: center;
  margin-bottom: 20px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.dashboard-controls #datelabel {
    display: block;
    margin-top: 10px;
    font-family: "Courier New", Courier, monospace;
    font-weight: 600;
    font-size: 18px;
}

.dashboard-controls .filter-date-row {
    display: flex;
    gap: 10px;
}

input {
  color-scheme: dark;
}

.dashboard-controls #stockselectlabel, .dashboard-controls #initialInvestmentlabel{
  font-size: 18px;
  margin-left: 20px;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  color: #f8fafc;
}

.dashboard-controls select,
.dashboard-controls input {
  padding:4px 6px;
  border-radius:4px;
  border:1px solid #4f46e5;
  background:#0d0d0d;
  color:#fff;
  margin-right: 20px;
}

.dashboard-controls button {
  padding:6px 12px;
  border-radius:4px;
  background:#4f46e5;
  color:#fff;
  border:none;
  cursor:pointer;
}

.dashboard-controls button:hover {
  background:#3730a3;
}

/* Dashboard Grid */
.dashboard-grid {
  display: flex;
  gap: 20px;
  height: 600px;
}

/* Chart Container */
#chartWrapper {
  flex: 2;
  position: relative;
  max-width: 100%;
  height: 100%;
  background-color: #010409;
  border: 1px solid #30363d;
  padding: 10px;
}

.stockName{
  color: white;
  padding-left : 10px;
  font-size: 18px;
  font-weight: bold;
}

#chartContainer {
  width: 100%;
  height: 100%;
}

/* Reset Zoom Button */
#resetZoomBtn {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  padding: 4px 8px;
  font-size: 0.4em;
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 1);
  color: #fff;
  width: 90px;
  height: auto;
  cursor: pointer;
}

#resetZoomBtn:hover {
  background: rgba(220, 38, 38, 1);
}

/* Metrics Panel */
.metrics-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  height: 100%;
}

.panel-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.switch-btn {
  flex: 1;
  background: black;
  border: 1px solid #30363d;
  border-radius: 1px;
  padding: 6px;
  padding-top: 10px;
  color: #ffffff;
  font-weight: bold;
}

.switch-btn.active {
  background: #4f46e5;
  color: #ffffff;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #30363d;
  padding: 6px;
  background: black;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.insight-card {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: #222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Header */
.insight-header {
  margin-bottom: 8px;
}

.insight-title {
  font-weight: 700;
  font-size: 13px;
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
}

.insight-window {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}

/* Sections */
.insight-section {
  margin-top: 8px;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
  border-bottom: 1px solid #eee;
  padding-bottom: 2px;
}

/* Rows */
.row {
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}

.row span {
  font-weight: 600;
  color: #111;
}

.card {
  background: #161b22;
  border: 1px solid #4f46e5;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 6px;
}

.card h4 {
  margin: 0 0 4px 0;
  color: #ffffff;
  background-color: rgba(79, 70, 229, 0.1);
  border-left: 1px solid #4f46e5;
  border-right: 1px solid #4f46e5;
  border-radius: 1px;
  padding-top: 6px;
  padding-left: 6px;
  padding-right: 8px;
  padding-bottom: 6px;
  font-size: 0.4em;
  font-weight: bold;
}

.card p {
  margin: 0;
  font-size: 0.5em;
}

.disclaimer, .compliance {
  text-align: center;
  font-size: 0.3em;
  color: #8b949e;
}

.compliance { margin-top: 6px; }

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 992px) {
  .dashboard-grid {
    flex-direction: column;
    height: auto;
  }
  #chartWrapper {
    height: 400px;
  }
}

@media (max-width: 600px) {
  .terminal-title { font-size: 1.0em; }
  .switch-btn { padding: 4px; font-size: 0.4em; }
  #resetZoomBtn { padding: 4px; font-size: 0.2em; width: 35px; height: 18px;}
  #stockSelect { width: 100px; margin-left: auto; margin-top: 20px;}
  #initialInvestment{ width: 100px; margin-left: auto;}
  .dashboard-controls .filter-date-row{
    display: block;
  }

  .dashboard-controls #datelabel{font-size: 14px;}

  .dashboard-grid{
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .metrics-container{
    height: 500px;
  }

  .panel-content{
    max-height: 500px;
  }

  #chartWrapper {
    height: 400px;
  }

  #chartContainer{
    height: 300px;
  }

}

/* ------------------------------------ END OF TERMINAL SECTION ------------------------------------------ */

#early-access-section {
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
  padding: 20px 20px;
  position: relative;
  overflow: hidden;
}

.early-access-container {
  max-width: 700px;
  margin: 0 auto;
}

.early-access-title {
  font-size: 2.1rem;
  font-weight: 200;
  margin-bottom: 20px;
  text-shadow: 0 0 1px #ffffff, 0 0 2px #ffffff;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: underline;
}

.early-access-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-info {
  text-align: center;
}

.contact-label {
  font-size: 1rem;
  color: #E5E7EB;
  margin-bottom: 5px;
  text-shadow: 0 0 2px rgba(255,255,255,0.3);
}

.contact-email {
  font-size: 1.1rem;
  color: #4F46E5; /* matching your theme */
  font-weight: bold;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-label {
    font-size: 0.95rem;
  }
  .contact-email {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-label {
    font-size: 0.9rem;
  }
  .contact-email {
    font-size: 0.95rem;
  }
}

.early-access-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.early-access-form input {
  padding: 15px 20px;
  font-size: 1rem;
  border: 2px solid #ffffff;
  background-color: #0a0a0a;
  color: #ffffff;
  border-radius: 5px;
  outline: none;
  flex: 1 1 250px;
  transition: all 0.3s ease;
}

.early-access-form input:focus {
  box-shadow: 0 0 15px #ffffff;
  border-color: #ffffff;
}

.early-access-form button {
  padding: 15px 30px;
  font-size: 1rem;
  color: #0a0a0a;
  background-color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.early-access-form button:hover {
  box-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff;
}

.early-access-footer {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #ffffff;
  text-align: center;
}

.early-access-footer p {
  margin-bottom: 3px;
  color: gray;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-links a {
  color: gray;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-links a:hover {
  text-decoration: underline;
  text-shadow: 0 0 10px #ffffff;
}

