/* ==========================================================================
   AURORAEX - PROFESSIONAL REFINEMENT LAYER (loaded after renovated-home.css)
   Goal: institutional, calm, trustworthy. Same palette, same content.
   Motion principles (inspired by investindia.gov.in):
   - Slow, eased directional reveals (left / right / up), small distances
   - Horizontal sliders with snap, arrows, dots and a progress line
   - Hairline accents instead of glows, gradients or floating objects
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --navy: #0f172a;
  --hairline: #e2e8f0;
}

/* ---------- Remove decorative "AI" ornaments ---------- */
.ambient-glow-1,
.ambient-glow-2 {
  display: none !important;
}

.floating-clean-badge {
  animation: none !important;
}

.hero-investment-card {
  transform: none !important;
}

/* ---------- Scroll progress hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--accent-emerald);
  z-index: 3000;
  pointer-events: none;
}

/* ---------- Header: quieter ---------- */
.header {
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.navbar {
  transition: padding 0.35s var(--ease-out);
}

.header.header-scrolled .navbar {
  padding: 0.6rem 0;
}

/* ---------- Buttons: restrained ---------- */
.btn-primary {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12) !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 168, 126, 0.28) !important;
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
}

.btn i.fa-arrow-right {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  padding-bottom: 7.5rem;
  border-bottom: 1px solid var(--hairline);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 42%, rgba(255, 255, 255, 0) 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-title {
  letter-spacing: -0.025em;
}

.hero-feature {
  box-shadow: none;
}

.hero-investment-card {
  border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.floating-clean-badge {
  border-radius: 10px;
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.18);
}

.groww-chart-svg path:nth-of-type(2) {
  stroke-linecap: butt;
}

/* Hero entrance (page-load, one time, slow) */
.has-js .hero-content > *,
.has-js .hero-image-container {
  opacity: 0;
  animation-duration: 1s;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: forwards;
}

.has-js .hero-content > * {
  animation-name: slideFromLeft;
}

.has-js .hero-image-container {
  animation-name: slideFromRight;
  animation-delay: 0.25s;
}

.has-js .hero-content > :nth-child(1) { animation-delay: 0.05s; }
.has-js .hero-content > :nth-child(2) { animation-delay: 0.18s; }
.has-js .hero-content > :nth-child(3) { animation-delay: 0.30s; }
.has-js .hero-content > :nth-child(4) { animation-delay: 0.42s; }

@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Trust bar overlapping hero ---------- */
.hero-trustbar {
  position: relative;
  z-index: 5;
  margin-top: -3.25rem;
  padding-bottom: 1rem;
}

.trustbar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--accent-emerald);
  border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.2);
}

.trustbar-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.35rem 1.4rem;
  position: relative;
  transition: background 0.3s var(--ease-out);
}

.trustbar-item + .trustbar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--hairline);
}

.trustbar-item:hover {
  background: #f8fafc;
}

.trustbar-item i {
  font-size: 1.25rem;
  color: #059669;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  flex-shrink: 0;
}

.trustbar-item strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.trustbar-item span {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.1rem;
}

/* ---------- Section headings: hairline accent ---------- */
.section-title h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  background: var(--accent-emerald);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.9s var(--ease-out) 0.2s;
}

.has-js .section-title[data-reveal]:not(.is-visible) h2::after,
.has-js .section-title:not(.is-visible) h2::after {
  transform: scaleX(0);
}

/* ---------- Directional reveal system ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out),
    clip-path 1.1s var(--ease-inout);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.has-js [data-reveal="up"]    { transform: translateY(34px); }
.has-js [data-reveal="left"]  { transform: translateX(-56px); }
.has-js [data-reveal="right"] { transform: translateX(56px); }
.has-js [data-reveal="wipe"]  { transform: translateX(-48px); }
.has-js [data-reveal="scale"] { transform: translateY(28px) scale(0.985); }

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Side reveals must never create horizontal scroll */
.hero,
.section,
.cta-section,
.footer {
  overflow-x: clip;
}

/* Legacy 150px avatar frame (components.css) -> compact 52px avatar */
.testimonial-image {
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  flex-shrink: 0;
}

.testimonial-image img {
  width: 52px !important;
  height: 52px !important;
}

.testimonial-top-row {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.verified-trader-badge {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Text already contains quotation marks; drop legacy pseudo quotes + watermark */
.testimonial-content p::before,
.testimonial-content p::after {
  content: none !important;
}

.quote-watermark {
  display: none !important;
}

/* ---------- Cards & tiles: calmer hover ---------- */
.card:hover,
.advantage-item:hover,
.feature-card:hover,
.testimonial:hover,
.stat-item:hover {
  transform: translateY(-4px);
}

.card,
.advantage-item,
.feature-card,
.testimonial,
.stat-item {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-radius: 12px !important;
}

.card {
  border-radius: 12px !important;
}

.testimonial {
  border-radius: 12px !important;
}

/* Top hairline that slides in on hover */
.advantage-item::before,
.feature-card::before,
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  z-index: 2;
}

.feature-card,
.card {
  position: relative;
  overflow: hidden;
}

.advantage-item:hover::before,
.feature-card:hover::before,
.card:hover::before {
  transform: scaleX(1);
}

.testimonial::before {
  background: var(--accent-emerald);
  height: 3px;
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

.terminal-charts-mockup-wrapper,
.platform-interface-image-wrapper,
.company-image-container {
  border-radius: 16px;
}

.terminal-charts-mockup-wrapper:hover {
  transform: none;
}

/* ---------- Slider component ---------- */
.pro-slider {
  position: relative;
}

[data-slider] {
  --per: 3;
  --gap: 1.5rem;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--gap);
  margin: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0.25rem 1rem;
  overscroll-behavior-x: contain;
}

[data-slider]::-webkit-scrollbar {
  display: none;
}

[data-slider] > * {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)) !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  scroll-snap-align: start;
}

.testimonials-section-wrapper [data-slider] {
  --per: 3;
}

@media (max-width: 1100px) {
  [data-slider] { --per: 2; }
  .testimonials-section-wrapper [data-slider] { --per: 2; }
}

@media (max-width: 640px) {
  [data-slider],
  .testimonials-section-wrapper [data-slider] { --per: 1; }
}

.pro-slider-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.pro-slider.is-static .pro-slider-bar {
  display: none;
}

.pro-slider-progress {
  flex: 1;
  height: 2px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.pro-slider-progress span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  background: var(--accent-emerald);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
}

.pro-slider-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #64748b;
  min-width: 3.5rem;
  text-align: right;
}

.pro-slider-arrows {
  display: flex;
  gap: 0.6rem;
}

.pro-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.pro-slider-btn:hover:not(:disabled) {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.pro-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pro-slider-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ---------- Stats: tabular, steady ---------- */
.stat-value {
  font-variant-numeric: tabular-nums;
}

/* ---------- CTA: flat, confident ---------- */
.cta-section {
  background: #f8fafc !important;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent-emerald);
}

/* ---------- Footer links ---------- */
.footer-links a:hover {
  padding-left: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .trustbar-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trustbar-item + .trustbar-item::before {
    display: none;
  }

  .trustbar-item {
    border-bottom: 1px solid var(--hairline);
  }

  .hero::before {
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
  }

  .has-js [data-reveal="left"],
  .has-js [data-reveal="right"] {
    transform: translateY(30px);
  }
}

@media (max-width: 576px) {
  .trustbar-list {
    grid-template-columns: 1fr;
  }

  .hero-trustbar {
    margin-top: -2rem;
  }
}

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal],
  .has-js .hero-content > *,
  .has-js .hero-image-container {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }

  [data-slider] {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation-duration: 120s;
  }
}

/* ==========================================================================
   INVESTMENT REDIRECTION (phase 2-4)
   ========================================================================== */

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 4000;
  background: var(--navy);
  color: #ffffff;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Filled buttons: darker emerald for WCAG AA contrast with white text (same hue) */
.btn-primary {
  background: #00875f !important;
}

.btn-primary:hover {
  background: #006f4f !important;
  box-shadow: 0 6px 16px rgba(0, 111, 79, 0.3) !important;
}

.nav-link,
.footer-links a {
  color: #475569 !important;
}

/* ---------- Ticker label ---------- */
.ticker-label {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #f8fafc;
  padding: 0 1rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.market-ticker .container,
.market-ticker .ticker-container {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00875f;
  margin-bottom: 1rem;
  padding-left: 2.25rem;
  position: relative;
}

.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.75rem;
  height: 2px;
  background: var(--accent-emerald);
}

.hero-note {
  margin: 1.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.hero-note i {
  color: #94a3b8;
}

.hero-visual {
  max-width: 80%;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.hero-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.05);
  aspect-ratio: 4 / 3.35;
  background: #e2e8f0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  animation: heroKen 14s var(--ease-inout) forwards;
}

@keyframes heroKen {
  to { transform: scale(1); }
}

.hero-visual .floating-clean-badge.badge-top {
  top: 24px;
  right: -16px;
}

.hero-alloc-card {
  position: absolute;
  left: -28px;
  bottom: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 22px 40px -18px rgba(15, 23, 42, 0.3);
  z-index: 3;
}

.alloc-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.alloc-donut {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(#00d09c 0 30%, #2563eb 30% 55%, #d4a72c 55% 80%, #64748b 80% 100%);
  position: relative;
}

.alloc-donut::after {
  content: '';
  position: absolute;
  inset: 14px;
  background: #ffffff;
  border-radius: 50%;
}

.alloc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}

.alloc-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0.15rem 0 0;
  line-height: 1.35;
}

.alloc-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.9rem;
}

.alloc-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
}

.alloc-legend b {
  margin-left: auto;
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.alloc-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.dot-a { background: #00d09c; }
.dot-b { background: #2563eb; }
.dot-c { background: #d4a72c; }
.dot-d { background: #64748b; }

/* ---------- Investment solution cards ---------- */
.invest-panel {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.6s var(--ease-out);
}

.invest-panel::before,
.invest-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.16;
}

.invest-panel::before { width: 220px; height: 220px; }
.invest-panel::after  { width: 320px; height: 320px; opacity: 0.09; }

.invest-panel i {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.25);
}

.card:hover .invest-panel { transform: scale(1.03); }

.panel-currency  { background: linear-gradient(135deg, #ecfdf5, #f0fdf9); color: #00875f; }
.panel-commodity { background: linear-gradient(135deg, #eff6ff, #f5f9ff); color: #2563eb; }
.panel-metal     { background: linear-gradient(135deg, #fefce8, #fffbeb); color: #b7791f; }
.panel-digital   { background: linear-gradient(135deg, #f1f5f9, #f8fafc); color: #334155; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #00875f;
  text-decoration: none;
}

.card-link i { transition: transform 0.3s var(--ease-out); }
.card-link:hover i { transform: translateX(4px); }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- How it works ---------- */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 2rem 1.75rem 2rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -20px rgba(15, 23, 42, 0.25);
}

.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 3.1rem;
  right: -1.5rem;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--hairline), var(--accent-emerald));
}

.step-num {
  display: inline-flex;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #00875f;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.6rem;
}

.step-card p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: 0.97rem;
}

/* ---------- Figures / disclaimers ---------- */
.figure-caption {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

.platform-interface-image { margin: 0; }

.testimonial-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  margin: 1.25rem 0 0;
}

.risk-band {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-left: 4px solid #d4a72c;
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  margin-top: 1rem;
}

.risk-band i {
  color: #b7791f;
  margin-top: 0.2rem;
}

.risk-band p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #475569;
}

.verified-trader-badge {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

/* ---------- CTA: calm photo-less band, arrow accent ---------- */
.cta-section .cta-title {
  letter-spacing: -0.02em;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 991.98px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card:not(:last-child)::after { display: none; }
  .hero-visual { padding-bottom: 0; }
  .hero-alloc-card { position: relative; left: 0; width: auto; margin: -2.25rem 1rem 0; }
  .hero-visual .floating-clean-badge.badge-top { right: 8px; top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; transform: none; }
}
