/* ==========================================
   Forge Journal Marketing Website Styles
   ========================================== */

/* 1. Design System & CSS Variables */
:root {
  /* Colors */
  --bg-dark: #050404;
  /* Deeper, rich pitch-black warm shade */
  --bg-card: rgba(22, 20, 19, 0.65);
  /* Warmer charcoal black card background */
  --bg-nav: rgba(5, 4, 4, 0.85);
  /* transculent warm black navbar */
  --bg-highlight: #0e0d0c;
  /* Warmer black highlighted section background */

  --text-primary: #ffffff;
  --text-secondary: #90a1b5;
  --text-muted: #536478;

  /* Accent themes defaults (Indigo Purple) */
  --accent-color: #7c5cff;
  --accent-glow: rgba(124, 92, 255, 0.4);
  --accent-glow-subtle: rgba(124, 92, 255, 0.1);
  --accent-red: #ff3b30;
  --accent-green: #00ff66;

  /* Layout & Specs */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1140px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme Classes (Controlled via Javascript) */
body.theme-slate {
  --accent-color: #7c5cff;
  --accent-glow: rgba(124, 92, 255, 0.4);
  --accent-glow-subtle: rgba(124, 92, 255, 0.08);
}

body.theme-emerald {
  --accent-color: #00ff66;
  --accent-glow: rgba(0, 255, 102, 0.4);
  --accent-glow-subtle: rgba(0, 255, 102, 0.08);
}

body.theme-crimson {
  --accent-color: #ff3b30;
  --accent-glow: rgba(255, 59, 48, 0.4);
  --accent-glow-subtle: rgba(255, 59, 48, 0.08);
}

body.theme-auric {
  --accent-color: #ffcc00;
  --accent-glow: rgba(255, 204, 0, 0.4);
  --accent-glow-subtle: rgba(255, 204, 0, 0.08);
}

/* Reset & Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000000;
  padding: 12px 28px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
  opacity: 0.95;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-store {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 12px 28px;
  /* Matches primary buttons exactly */
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  /* Same uniform font size */
  font-weight: 700;
  /* Same weight as primary buttons */
  font-family: var(--font-display);
  /* Same display font as the rest of the site */
}

.btn-store:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-store svg {
  color: var(--accent-color);
  filter: drop-shadow(0 0 4px var(--accent-glow-subtle));
}

.app-store-badge-link {
  display: inline-block;
  transition: var(--transition-smooth);
}

.app-store-badge-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.app-store-badge-img {
  height: 60px; /* Increased to 60px as requested */
  width: auto;
  display: block;
}

/* Glassmorphism Styles */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  background-color: var(--accent-glow-subtle);
  border: 1px solid var(--accent-glow);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

/* Nav Bar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section Styles */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow-subtle) 0%, rgba(8, 12, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: block;
  /* Disable Grid to allow text floating */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  display: block;
  /* Disable Flex to allow text wrapping around floated image */
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 60%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* 3D Tilt App Showcase */
.hero-showcase {
  perspective: 1500px;
  float: left;
  width: 55%;
  /* Occupies 55% of the page width */
  max-width: 680px;
  margin-right: 36px;
  margin-bottom: 24px;

  /* Diagonal wrapping boundary that contours the right edge of the tilted phone */
  shape-outside: polygon(0 0, 75% 0, 100% 70%, 100% 100%, 0 100%);
  shape-margin: 36px;
}

.tilt-card-wrapper {
  width: 100%;
  max-width: 100%;
  /* Stretches to fill the floated container width */
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.tilt-card {
  position: relative;
  width: 100%;
  background: rgba(22, 20, 19, 0.45);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Figma Hero Mockup Style Rules */
#hero-tilt-card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.hero-mockup-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.75));
  transform: translateZ(30px);
  user-select: none;
  pointer-events: none;
}

.showcase-img {
  display: block;
  width: 100%;
  border-radius: 40px;
  transform: translateZ(20px) scale(0.98);
  transition: transform 0.5s ease;
}

.tilt-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
}

/* Privacy Section Styles */
.privacy {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-header {
  text-align: center;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.privacy-card {
  padding: 40px;
  transition: var(--transition-smooth);
}

.privacy-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px var(--accent-glow-subtle);
}

.privacy-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.privacy-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Interactive Showcases Section */
.showcases {
  padding: 100px 0;
  background-color: var(--bg-highlight);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.showcases-header {
  text-align: center;
}

.showcase-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 60px;
  margin-bottom: 60px;
}

.panel-reverse {
  direction: rtl;
}

.panel-reverse .showcase-info,
.panel-reverse .showcase-visual {
  direction: ltr;
}

.showcase-panel-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.showcase-panel-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Dynamic Theme Customizer Picker */
.theme-picker-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-opt-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.theme-opt-btn.active {
  background-color: var(--accent-glow-subtle);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px var(--accent-glow-subtle);
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.theme-opt-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-frame-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 320px;
}

.mobile-frame {
  position: relative;
  width: 100%;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  background-color: #0b0f19;
}

.mobile-screenshot {
  display: block;
  width: 100%;
  border-radius: 36px;
}

#theme-mobile-frame {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.theme-mockup-img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
  transform: scale(1.50);
  /* Scale up by 50% to compensate for transparent whitespace margin boundaries */
  user-select: none;
  pointer-events: none;
}

.chart-mockup-img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.25);
  user-select: none;
  pointer-events: none;
}

/* Mini Interactive Chart */
.mini-chart-container {
  margin-top: 24px;
  background: rgba(22, 20, 19, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  max-width: 440px;
  /* Fits perfectly under description text */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mini-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mini-chart-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-chart-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.mini-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 90px;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.mini-chart-bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent-color), var(--accent-glow-subtle));
  height: 0%;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease;
  position: relative;
}

.mini-chart-bar-fill.deposit {
  background: linear-gradient(to top, #00f0ff, rgba(0, 240, 255, 0.3)) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.mini-chart-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.neon-border-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border: 2px solid var(--accent-color);
  border-radius: 36px;
  box-shadow: inset 0 0 20px var(--accent-glow-subtle), 0 0 15px var(--accent-glow-subtle);
  mix-blend-mode: screen;
  transition: var(--transition-smooth);
}

/* Interactive Chart Card Simulator */
.mock-chart-card {
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.chart-card-meta {
  display: flex;
  flex-direction: column;
}

.chart-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.chart-card-subtitle {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 4px;
}

.chart-card-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  transition: var(--transition-smooth);
}

.text-green {
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.text-red {
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.2);
}

.chart-bars-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  height: 120px;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background-color: var(--accent-color);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
  min-height: 2px;
}

.chart-bar-fill.negative {
  border-radius: 0 0 4px 4px;
  background-color: var(--accent-red);
}

.chart-bar-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chart-card-footer {
  display: flex;
  justify-content: space-between;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

/* Mode toggle bar */
.chart-toggle-bar {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.toggle-btn.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Features Cards Section */
.features {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.features-header {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-glow);
}

.feature-icon-wrapper {
  background-color: var(--accent-glow-subtle);
  color: var(--accent-color);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 12px var(--accent-glow-subtle);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Changelog Section */
.changelog {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--bg-highlight);
}

.changelog-header {
  text-align: center;
}

.changelog-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ Accordion Section */
.faq {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-header {
  text-align: center;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.faq-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  transition: transform 0.3s ease;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(255, 255, 255, 0.01);
}

.faq-content-inner {
  padding: 0 30px 24px 30px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(22, 20, 19, 0.4);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-color);
}

/* Download CTA Section */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow-subtle) 0%, rgba(8, 12, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.cta-content {
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Footer Styles */
.footer {
  background-color: #090808;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  display: flex;
  justify-content: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Scroll reveals */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 4. Responsive Queries */
@media (max-width: 992px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
  }

  .hero-showcase {
    float: none;
    width: 100%;
    max-width: 480px;
    margin-right: 0;
    margin-bottom: 0;
    shape-outside: none;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: -1;
    /* Render text column above the showcase image on mobile viewports */
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .showcase-panel {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px;
  }

  .panel-reverse {
    direction: ltr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 8px 0;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-around;
    gap: 12px;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .app-store-badge-link {
    width: auto;
    display: inline-flex;
    justify-content: center;
  }

  .showcase-panel {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  .privacy-card {
    padding: 24px;
    border-radius: var(--radius-md);
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================
   Interactive Mockup Screens & Device Frames
   ========================================== */

/* Device Frame (iPhone 15 Pro Bezel) */
.phone-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background-color: #000000;
  border-radius: 44px;
  box-shadow:
    0 0 0 10px #1c1c1e,
    /* Titanium Bezel */
    0 0 0 12px #2c2c2e,
    0 20px 50px rgba(0, 0, 0, 0.6);
  border: 4px solid #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status Bar & Dynamic Island */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px 24px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 10;
  background-color: #050404;
  height: 38px;
  user-select: none;
}

.phone-dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background-color: #000000;
  border-radius: 20px;
  z-index: 15;
}

.phone-status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-battery {
  width: 17px;
  height: 9px;
  border: 1px solid #ffffff;
  border-radius: 3px;
  padding: 1px;
  display: flex;
}

.phone-battery-fill {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 1px;
}

/* Bottom Tab Navigation */
.phone-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background-color: rgba(10, 9, 9, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 0 16px 0;
  z-index: 10;
  height: 56px;
}

.phone-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.phone-tab-item.active {
  color: var(--accent-color);
}

.phone-tab-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.phone-tab-label {
  font-size: 0.52rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Screen Content Framework */
.phone-screen {
  background-color: #050404;
  height: calc(100% - 38px);
  overflow-y: auto;
  padding: 14px 14px 70px 14px;
  color: #ffffff;
  font-family: var(--font-body);
  scrollbar-width: none;
  /* Hide scrollbars in mockup */
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* App Header component in Phone */
.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.phone-portfolio-selector {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.phone-selector-arrow {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

.phone-header-icons {
  display: flex;
  gap: 10px;
  color: var(--text-secondary);
}

.phone-header-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Custom visual components inside phone screen */
.phone-kpi-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.phone-kpi-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.phone-kpi-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 3px 0 10px 0;
  transition: var(--transition-smooth);
}

/* SVG Line Sparkline Chart */
.phone-sparkline-box {
  width: 100%;
  height: 52px;
  margin-bottom: 10px;
  overflow: visible;
  position: relative;
}

.phone-sparkline {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.phone-sparkline path.line {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px var(--accent-glow));
  transition: d 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.phone-sparkline path.fill {
  stroke: none;
  fill: url(#sparkline-gradient);
  transition: d 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-kpi-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.phone-kpi-metric {
  display: flex;
  flex-direction: column;
}

.phone-kpi-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
}

.phone-kpi-val {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 1px;
}

/* Holdings Breakdown styling */
.phone-holdings-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.phone-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  gap: 12px;
}

.phone-tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.phone-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.phone-holdings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-holding-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.phone-holding-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-holding-logo-circle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-holding-meta {
  display: flex;
  flex-direction: column;
}

.phone-holding-symbol {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
}

.phone-holding-name {
  font-size: 0.58rem;
  color: var(--text-secondary);
}

.phone-holding-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.phone-holding-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
}

.phone-holding-shares {
  font-size: 0.52rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.phone-holding-change {
  font-size: 0.58rem;
  font-weight: 700;
  margin-top: 1px;
}

/* Theme Selector screen details */
.phone-theme-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-theme-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.phone-theme-card.active {
  border-color: var(--accent-color);
  background-color: var(--accent-glow-subtle);
}

.phone-theme-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-theme-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 5px currentColor;
}

.phone-theme-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
}

.phone-theme-check {
  width: 14px;
  height: 14px;
  color: var(--accent-color);
  display: none;
}

.phone-theme-card.active .phone-theme-check {
  display: block;
}

.phone-customize-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  margin-top: 16px;
  margin-bottom: 10px;
}

.phone-sliders-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-slider-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.phone-slider-bar {
  position: relative;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.phone-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.phone-slider-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.phone-accent-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.phone-accent-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-accent-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 6px currentColor;
}

/* ==========================================
   Horizontal Drag-Scroll Timeline Styles
   ========================================== */
.timeline-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding: 24px 0 60px 0;
  /* Gutter at bottom for the horizontal timeline line and markers */
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.timeline-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.timeline-container {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.timeline-container.grabbing {
  cursor: grabbing;
}

:root {
  --card-width: 750px;
}

@media (max-width: 800px) {
  :root {
    --card-width: calc(100vw - 48px);
  }
}

.timeline-track {
  display: flex;
  position: relative;
  gap: 40px;
  padding-left: calc(50% - var(--card-width) / 2);
  /* Center offsets so first/last items can snap center */
  padding-right: calc(50% - var(--card-width) / 2);
  width: max-content;
}

/* The horizontal line itself */
.timeline-line {
  position: absolute;
  bottom: 25px;
  left: calc(50% - var(--card-width) / 2);
  /* Starts exactly under the first card's center */
  width: calc(100% - (50% - var(--card-width) / 2) * 2);
  /* Ends exactly under the last card's center */
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 0 8px var(--accent-glow-subtle);
  z-index: 1;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--card-width);
  /* Extra-wide card width */
  min-width: var(--card-width);
  position: relative;
  padding-bottom: 50px;
  /* Push markers down to line */
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Glowing dot marker on the timeline line */
.timeline-marker {
  position: absolute;
  bottom: 18px;
  /* Positioned exactly centered vertically on the 25px timeline line */
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  z-index: 5;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-marker {
  background-color: var(--accent-color);
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 15px var(--accent-color);
}

/* Timeline Card */
.timeline-card {
  padding: 20px 24px;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
}

.timeline-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px var(--accent-glow-subtle);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.timeline-version {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-glow-subtle);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-changes {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-changes li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Custom bullet indicator */
.timeline-changes li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color);
}