/* -------------------------------------------------------------
   Page-Specific Layouts & Enhancements
------------------------------------------------------------- */

/* Hero Section (Home) */
.hero-section {
  padding: 7.5rem 0 4rem 0;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 75vh;
}

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

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-content h1 span {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  margin: 1rem 0 2rem 0;
  max-width: 580px;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-back {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  animation: float 6s ease-in-out infinite alternate;
}

.hero-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 
              0 0 40px rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

/* Trading Simulator (Home) */
.simulator-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  background: #080808;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0,0,0,0.5);
}

.chart-panel {
  padding: 1.5rem;
  position: relative;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chart-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--win-green);
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--win-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--win-green-glow);
  animation: pulse-gold 1.5s infinite;
}

canvas#specter-canvas {
  display: block;
  width: 100%;
  background: #030303;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.log-panel {
  background: #050505;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 420px;
}

.log-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-feed {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
}

/* Mini HUD Overlay */
.hud-overlay {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hud-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.85rem 1.25rem;
  flex: 1;
  min-width: 120px;
}

.hud-card .hud-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.hud-card .hud-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.status-buy { color: var(--win-green); }
.status-sell { color: var(--loss-red); }
.status-scanning { color: var(--accent-gold); }

/* Core Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-size: 1.15rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.05);
}

.cyber-card:hover .tech-icon {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 0 20px var(--primary-glow);
}

.broker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.broker-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.broker-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.broker-card:hover {
  background: rgba(0, 229, 255, 0.02);
  border-color: rgba(0, 229, 255, 0.15);
  transform: translateY(-2px);
}

/* Mobile First (Home) */
.mobile-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mockup-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 290px;
  height: 580px;
  background: #000000;
  border: 10px solid #1a1a1a;
  border-radius: 36px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(0, 229, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #030303;
  padding: 1.5rem;
  font-family: var(--font-body);
  position: relative;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
}

.phone-notch {
  width: 120px;
  height: 25px;
  background: #1a1a1a;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

/* Floating Ghost Orb Overlay Mockup */
.ghost-orb-hud {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.2) 0%, transparent 70%);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 15s linear infinite;
  z-index: 5;
  box-shadow: 0 0 30px rgba(0,229,255,0.1);
}

.ghost-orb-core {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  animation: float 3s ease-in-out infinite alternate;
  box-shadow: 0 0 25px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ghost-orb-core svg {
  width: 20px;
  height: 20px;
  fill: #000;
}

/* Timeline/History (About) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2.5rem auto 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 1.5rem 2.2rem;
  position: relative;
  background: transparent;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  right: -7px;
  background-color: var(--bg-darker);
  border: 2px solid var(--primary);
  border-radius: 50%;
  top: 2.5rem;
  z-index: 1;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: background-color var(--transition-fast);
}

.timeline-item:hover::after {
  background-color: var(--primary);
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -7px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  display: inline-block;
  text-align: left;
  max-width: 100%;
}

/* Team Grid (About) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06));
  border: 1px solid var(--border-color);
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-avatar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, transparent, transparent, var(--primary));
  animation: spin-slow 8s linear infinite;
  z-index: 0;
}

.team-avatar::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #0a0a0a;
  border-radius: 50%;
  z-index: 1;
}

.team-avatar svg {
  width: 40px;
  height: 40px;
  fill: var(--text-secondary);
  position: relative;
  z-index: 2;
}

.team-role {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Requirements Grid (About) */
.req-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.req-table tr {
  border-bottom: 1px solid var(--border-color);
}

.req-table td {
  padding: 1.25rem 1rem;
}

.req-label {
  font-weight: 700;
  color: var(--text-primary);
  width: 30%;
}

.req-value {
  color: var(--text-secondary);
}

/* Pricing Grid (Pricing) */
.promo-bar {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02) 50%, rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.promo-title {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.price-card {
  width: 100%;
  max-width: 420px;
}

.price-card.featured {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.08);
}

.price-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.price-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price-val {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.price-val span {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.price-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-features i {
  color: var(--win-green);
  font-size: 0.95rem;
}

/* Purchase steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.step-num {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Contact Details (Contact) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-method-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-method-details p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 229, 255, 0.02);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Download Page & Checker */
.download-hero {
  text-align: center;
  padding: 6rem 0 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.checker-container {
  max-width: 600px;
  margin: 4rem auto 0 auto;
}

.checker-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.checker-result {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.checker-result.success {
  background: rgba(0, 255, 135, 0.05);
  border: 1px solid rgba(0, 255, 135, 0.2);
  color: var(--win-green);
  display: block;
}

.checker-result.error {
  background: rgba(255, 59, 48, 0.05);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: var(--loss-red);
  display: block;
}

.instruction-list {
  max-width: 800px;
  margin: 3rem auto 0 auto;
}

.instruction-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.instruction-step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  line-height: 1;
}

.instruction-step-content {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  flex-grow: 1;
}

.instruction-step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Responsive Adjustments for Pages */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-subtitle {
    margin: 1.5rem auto 2.5rem auto;
  }
  
  .simulator-container {
    grid-template-columns: 1fr;
  }
  
  .log-panel {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  
  .broker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .mobile-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .mobile-showcase .btn-group {
    justify-content: center;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item::after {
    left: 13px !important;
  }
  
  .timeline-left {
    text-align: left;
  }
  
  .broker-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .checker-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .broker-grid {
    grid-template-columns: 1fr;
  }
}
