/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #101110;
  --bg-card: #171817;
  --bg-elevated: #1d1e1c;
  --bg-header: #0c0d0c;
  --bg-alt: #141514;
  --text: #ebe9e4;
  --text-muted: #b0ada6;
  --text-secondary: #908d85;
  --accent: #6b9a7d;
  --accent-warm: #5a8a6b;
  --accent-light: #8fbf9e;
  --accent-pale: #b5d4c2;
  --accent-glow: rgba(107, 154, 125, 0.10);
  --accent-glow-strong: rgba(107, 154, 125, 0.18);
  --gradient-warm: linear-gradient(135deg, #4d7a5e 0%, #6b9a7d 100%);
  --gradient-card: linear-gradient(145deg, #141a16 0%, #111712 100%);
  --border: rgba(255,255,255,0.05);
  --border-warm: rgba(107, 154, 125, 0.12);
  --border-hover: rgba(107, 154, 125, 0.30);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 4px;
  --radius-sm: 3px;
  --transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

::selection { background: var(--accent); color: var(--text); }

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

.animate-up { animation: fadeUp 0.6s ease-out both; }
.animate-up-delay-1 { animation: fadeUp 0.6s ease-out 0.1s both; }
.animate-up-delay-2 { animation: fadeUp 0.6s ease-out 0.2s both; }
.animate-up-delay-3 { animation: fadeUp 0.6s ease-out 0.3s both; }

/* === Full-width Layout === */
.section-full {
  width: 100%;
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

main { flex: 1; }

/* === Header === */
.site-header {
  background: rgba(10, 14, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo img {
  height: 38px;
  width: auto;
  transition: all var(--transition);
  border-radius: 50%;
  filter: hue-rotate(-55deg) saturate(0.6) contrast(1.6) brightness(0.75);
}
.site-logo:hover img {
  filter: hue-rotate(-55deg) saturate(0.7) contrast(1.6) brightness(0.85);
}
.site-logo-divider {
  display: none;
}

.site-logo-text {
  white-space: nowrap;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-word-primary {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-word-secondary {
  display: block;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.site-logo:hover .logo-word-primary { color: var(--accent-light); }
.site-logo:hover .logo-word-secondary { color: var(--text-muted); }

@media (max-width: 580px) {
  .site-logo-text, .site-logo-divider { display: none; }
}

.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--text); }

.btn-primary {
  background: var(--gradient-warm);
  color: var(--text) !important;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow-strong);
  color: var(--text) !important;
}

.btn-outline {
  background: transparent;
  color: var(--text) !important;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--border-warm);
  transition: all var(--transition);
  cursor: pointer;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.btn-header {
  background: var(--gradient-warm);
  color: var(--text) !important;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border: none;
  transition: all var(--transition);
}
.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow-strong);
  color: var(--text) !important;
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 11, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 3rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .site-nav.active { display: flex; }
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 7rem 3rem 5rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow-strong) 0%, rgba(90,143,110,0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

.hero > *:not(.hero-glow) { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse-dot 2.5s infinite;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
}

.hero h1 .highlight {
  color: var(--accent-light);
  -webkit-text-fill-color: var(--accent-light);
}

.hero .hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .hero { padding: 5rem 1.5rem 4rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero .hero-lead { font-size: 1rem; }
  .hero-stats { gap: 2rem; }
  .section-wide { padding: 0 1.5rem; }
  .section-full { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
}

/* === Section Header === */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-header h1::after,
.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0.75rem auto 0;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
}

.section-intro {
  max-width: 640px;
  margin: 0.75rem auto 0;
}

@media (max-width: 768px) {
  .section-header h2 { font-size: 1.75rem; }
}

/* === Indicator Grid === */
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .indicator-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.indicator-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  color: inherit;
  position: relative;
}

.indicator-card::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(90,143,110,0.06) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.indicator-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: 0 8px 32px rgba(90, 143, 110, 0.10), 0 0 0 1px var(--border-hover);
  pointer-events: none;
}

.indicator-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.indicator-card:hover::before { opacity: 1; }
.indicator-card:hover::after { opacity: 1; }

.indicator-card .card-image {
  width: 100%;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.indicator-card .card-image img,
.indicator-card .card-image video {
  width: 100%;
  aspect-ratio: 800 / 590;
  object-fit: cover;
  transition: transform var(--transition);
  display: block;
}

.indicator-card:hover .card-image img,
.indicator-card:hover .card-image video { transform: scale(1.02); }

.ind-hero-demo video {
  display: block;
  width: 100%;
}

.indicator-card .card-body { padding: 1.5rem; }

.indicator-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.indicator-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.indicator-card .btn-details {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.indicator-card:hover .btn-details { gap: 0.6rem; }

/* === Steps Grid === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.step-card:hover::before { opacity: 1; }

.step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.step-card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Quote === */
.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 3rem;
  position: relative;
}

.quote-block::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2rem;
}

.quote-block blockquote {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.quote-block cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  letter-spacing: 0.04em;
}

/* === Download Section === */
.section-download {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 3rem;
}

.download-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, var(--accent-glow-strong) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

.section-download > * { position: relative; z-index: 1; }

.section-download h2 {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.download-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.download-box {
  max-width: 500px;
  margin: 0 auto;
  background: var(--gradient-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-warm);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.btn-large {
  padding: 0.9rem 2.5rem;
  font-size: 1.05rem;
}

/* === Download Page === */
.download-page-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .download-page-grid { grid-template-columns: 1fr; }
}

.download-page-form h3,
.download-page-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.download-page-form p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.download-page-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.download-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.download-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.download-features li::before {
  content: '—';
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.6rem;
}

.download-features li:last-child { border-bottom: none; }

.download-version {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.download-disclaimer-prominent {
  margin: 0 0 2rem;
  padding: 1.25rem 1.75rem;
  background: rgba(180, 83, 60, 0.06);
  border: 1px solid rgba(180, 83, 60, 0.20);
  border-left: 3px solid #b4533c;
  border-radius: var(--radius);
}

.download-disclaimer-prominent h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #c4705a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.download-disclaimer-prominent p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.download-disclaimer-prominent strong {
  color: #c4705a;
}

.download-disclaimer {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 2px solid var(--text-secondary);
}

.download-disclaimer h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.download-disclaimer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* === Changelog === */
.changelog {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 2px solid var(--accent);
}

.changelog h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.version-tag {
  background: var(--accent);
  color: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.changelog ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.changelog li {
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}

.changelog li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

/* === Indicator Detail Page === */
.indicator-detail { overflow: hidden; }

.ind-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 0;
  position: relative;
  overflow: hidden;
}

.ind-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 60%);
  pointer-events: none;
}

.ind-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}

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

.ind-hero-text h1 {
  font-family: var(--font-sans);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.ind-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.ind-hero-demo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-warm);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}

.ind-hero-demo img {
  display: block;
  width: 100%;
}

@media (max-width: 900px) {
  .ind-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ind-hero-text h1 { font-size: 2.25rem; }
}

/* Indicator sections */
.ind-section {
  padding: 5rem 0;
}

.ind-section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ind-section-cta {
  padding: 4rem 0 5rem;
}

.ind-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 3rem;
}

.ind-section h2 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.ind-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* Use case grid */
.use-case-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.use-case-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.use-case-card:hover {
  border-color: var(--border-hover);
  transform: translateX(3px);
}

.use-case-right:hover {
  transform: translateX(-3px);
}

.use-case-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  min-width: 48px;
}

.use-case-body h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.use-case-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Settings layout */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.settings-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.settings-image img {
  display: block;
  width: 100%;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-item {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 2px solid var(--accent);
  transition: all var(--transition);
}

.setting-item:hover {
  border-left-color: var(--accent-light);
  transform: translateX(3px);
}

.setting-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.setting-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .settings-layout { grid-template-columns: 1fr; }
}

/* FAQs */
.faq-list {
  max-width: 720px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover { color: var(--accent-light); }

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* === Blog Post === */
.blog-post { overflow: hidden; }

.blog-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.blog-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}

.blog-meta {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.blog-header h1 {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-header h1 { font-size: 2rem; }
  .blog-header { padding: 2.5rem 0 3rem; }
}

.blog-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 3rem 5rem;
}

.blog-content { line-height: 1.8; font-size: 1rem; }

.blog-content h2 {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.blog-content h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.blog-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.blog-content strong { color: var(--text); }

.blog-content img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.blog-content a { color: var(--accent-light); }
.blog-content a:hover { text-decoration: underline; }

.blog-content ul, .blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.blog-content li { margin-bottom: 0.4rem; }

.blog-content blockquote {
  border-left: 2px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
}

.blog-cta {
  margin-top: 3.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.blog-cta h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.blog-cta p {
  color: var(--text-muted) !important;
  margin-bottom: 1.25rem !important;
  font-size: 0.95rem;
}

/* === Single Page === */
.single-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 3rem 5rem;
}

.single-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.single-page .back-link:hover { color: var(--accent-light); }

.single-page h1 {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
}

.single-page .meta {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.02em;
}

.single-page .demo-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-warm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.single-page .demo-image img { display: block; width: 100%; }

.single-page .content { line-height: 1.75; font-size: 1rem; }
.single-page .content h2 {
  font-family: var(--font-sans);
  margin-top: 3rem;
  margin-bottom: 0.85rem;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.single-page .content h3 {
  font-family: var(--font-sans);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.single-page .content p { margin-bottom: 1rem; color: var(--text-muted); }
.single-page .content ul, .single-page .content ol {
  margin-bottom: 1rem;
  padding-left: 0;
  list-style: none;
}
.single-page .content li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.single-page .content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.single-page .content strong { color: var(--accent-light); font-weight: 600; }
.single-page .content img { margin: 1.5rem 0; border-radius: var(--radius); }

/* === Download CTA (indicator detail pages) === */
.download-cta {
  background: var(--gradient-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.download-cta h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.download-cta p {
  color: var(--text-muted) !important;
  margin-bottom: 1.25rem !important;
  font-size: 0.95rem;
}

/* === Blog Grid === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  color: inherit;
  position: relative;
}

.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: 0 8px 32px rgba(90, 143, 110, 0.10), 0 0 0 1px var(--border-hover);
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  color: inherit;
}

.blog-card:hover::after { opacity: 1; }

.blog-card-body {
  padding: 1.75rem;
}

.blog-card-date {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.blog-card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.blog-card-link {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent-light);
  font-weight: 500;
  font-size: 0.8rem;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

.blog-card:hover .blog-card-link { color: var(--accent-pale); }

/* === Footer === */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.25rem 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.indicator-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.indicator-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.indicator-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.indicator-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.indicator-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.steps-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: none;
}

.cookie-banner.active { display: block; }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--gradient-warm);
  color: var(--text);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow-strong);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.cookie-btn-reject:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-buttons { width: 100%; justify-content: center; }
}

/* === ATAS Page === */
.atas-intro {
  max-width: 760px;
  margin: 0 auto;
}

.atas-intro h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

.atas-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.atas-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.atas-intro[style*="text-align"] .atas-buttons {
  justify-content: center;
}

.atas-disclosure {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

.atas-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .atas-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .atas-features-grid { grid-template-columns: 1fr; }
}

.atas-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.atas-feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.atas-feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.atas-feature p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.atas-feature a {
  color: var(--accent-light);
}

.atas-feature a:hover {
  text-decoration: underline;
}

/* === Broker Table === */
.broker-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.broker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.broker-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.broker-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.broker-table tbody tr {
  transition: background 0.2s;
}

.broker-table tbody tr:hover {
  background: var(--bg-card);
}

.broker-table td strong {
  color: var(--text);
}

.btn-broker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  white-space: nowrap;
}

.btn-broker:hover {
  text-decoration: underline;
}

.broker-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.broker-notes p {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .broker-table { font-size: 0.75rem; }
  .broker-table th, .broker-table td { padding: 0.6rem 0.5rem; }
}

/* === Affiliate Hint === */
.affiliate-hint {
  text-align: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;
}

.affiliate-hint p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
}

.affiliate-hint a {
  color: var(--accent-light);
}

.affiliate-hint a:hover {
  text-decoration: underline;
}

/* === Trading Tools === */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tool-header {
  padding: 2.5rem 0 1.25rem;
}

.tool-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}

.tool-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tool-compact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tool-inputs { }

.tool-outputs { }

.tool-section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.tool-row:last-child { margin-bottom: 0; }

.tool-row label {
  flex: 0 0 120px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.tool-row input, .tool-row select {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: border-color var(--transition);
  min-width: 0;
}

.tool-row input:focus, .tool-row select:focus {
  border-color: var(--accent);
}

.tool-row select option {
  background: var(--bg-card);
  color: var(--text);
}

.tool-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.tool-result-row:last-child { border-bottom: none; }

.tool-result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tool-result-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
}

.tool-result-primary {
  background: var(--bg);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tool-result-primary .tool-result-value {
  font-size: 1.3rem;
  color: var(--text);
}

.tool-note {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* RR visual bar */
.rr-visual {
  display: flex;
  height: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.75rem;
  background: var(--bg);
}

.rr-risk {
  background: #c45b5b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  transition: width 0.3s ease;
}

.rr-reward {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  transition: width 0.3s ease;
}

/* Session times */
.session-tool {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.session-clock {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.session-clock-time {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.session-clock-tz {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.session-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.session-row.active {
  border-color: var(--accent);
  background: rgba(107, 154, 125, 0.04);
}

.session-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.session-times {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

.session-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  width: 52px;
  text-align: center;
}

.session-status.open {
  color: var(--accent-light);
  background: rgba(107, 154, 125, 0.12);
}

.session-status.closed {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

/* Tool context / examples section */
.tool-context {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tool-context h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  margin-top: 1.75rem;
  color: var(--text);
}

.tool-context h2:first-child {
  margin-top: 0;
}

.tool-context p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.tool-context a {
  color: var(--accent-light);
}

.tool-context a:hover {
  text-decoration: underline;
}

.tool-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tool-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.tool-example-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--accent-light);
}

.tool-example p {
  margin: 0;
  font-size: 0.85rem;
}

/* === Visual: Account exposure bar (Position Size) === */
.vis-account-bar {
  display: flex;
  height: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.vis-account-position {
  background: rgba(107,154,125,0.25);
  transition: width 0.3s ease;
}

.vis-account-risk {
  background: rgba(196,91,91,0.5);
  transition: width 0.3s ease;
}

.vis-account-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.vis-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.vis-dot-position { background: rgba(107,154,125,0.4); }
.vis-dot-risk { background: rgba(196,91,91,0.5); }

/* Survival check */
.vis-survival-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.vis-survival-safe { background: rgba(107,154,125,0.08); color: var(--accent-light); }
.vis-survival-warn { background: rgba(200,170,80,0.08); color: #c8aa50; }
.vis-survival-danger { background: rgba(196,91,91,0.08); color: #c45b5b; }

/* === Visual: Price ladder (Risk/Reward) === */
.vis-ladder {
  margin: 0.75rem 0;
  position: relative;
}

.vis-ladder-track {
  position: relative;
  height: 140px;
  width: 100%;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.vis-ladder-zone {
  position: absolute;
  left: 0;
  width: 100%;
}

.vis-ladder-risk { background: rgba(196,91,91,0.12); }
.vis-ladder-reward { background: rgba(107,154,125,0.12); }

.vis-ladder-line {
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 2px solid;
  display: flex;
  align-items: center;
}

.vis-ladder-line span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.vis-ladder-entry { border-color: var(--text); }
.vis-ladder-entry span { background: var(--text); color: var(--bg); }
.vis-ladder-sl { border-color: #c45b5b; }
.vis-ladder-sl span { background: #c45b5b; color: #fff; }
.vis-ladder-tp { border-color: var(--accent); }
.vis-ladder-tp span { background: var(--accent); color: #fff; }

/* Verdict */
.vis-verdict {
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.vis-verdict-good { background: rgba(107,154,125,0.1); color: var(--accent-light); border: 1px solid rgba(107,154,125,0.2); }
.vis-verdict-ok { background: rgba(200,170,80,0.08); color: #c8aa50; border: 1px solid rgba(200,170,80,0.15); }
.vis-verdict-bad { background: rgba(196,91,91,0.08); color: #c45b5b; border: 1px solid rgba(196,91,91,0.15); }

/* 100-trade simulation */
.vis-sim-bar {
  display: flex;
  height: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

.vis-sim-wins {
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
}

.vis-sim-losses {
  background: #c45b5b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
}

.vis-sim-result {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.4rem;
  border-radius: var(--radius);
}

.vis-sim-pos { background: rgba(107,154,125,0.08); color: var(--accent-light); }
.vis-sim-neg { background: rgba(196,91,91,0.08); color: #c45b5b; }

/* === Visual: Drawdown chart === */
.vis-dd-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}

.vis-dd-chart svg { display: block; }

.vis-dd-insight {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.vis-dd-safe { color: var(--accent-light); font-weight: 600; }
.vis-dd-warn { color: #c8aa50; font-weight: 600; }
.vis-dd-danger { color: #c45b5b; font-weight: 600; }
.vis-dd-critical { color: #e05555; font-weight: 700; }

/* === Visual: 24h Timeline (Session Times) === */
.vis-timeline-wrap {
  margin-bottom: 1.25rem;
}

.vis-timeline {
  position: relative;
  height: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.vis-tl-bar {
  position: absolute;
  border-radius: 3px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  cursor: default;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.vis-tl-bar-active {
  opacity: 0.95;
  box-shadow: 0 0 8px rgba(107,154,125,0.3);
}

.vis-tl-bar:hover {
  opacity: 1 !important;
}

.vis-tl-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding-left: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.vis-tl-overlap {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(107,154,125,0.06);
  border-left: 1px dashed rgba(107,154,125,0.15);
  border-right: 1px dashed rgba(107,154,125,0.15);
  z-index: 0;
  animation: overlap-pulse 3s ease-in-out infinite;
}

@keyframes overlap-pulse {
  0%, 100% { background: rgba(107,154,125,0.04); }
  50% { background: rgba(107,154,125,0.1); }
}

.vis-tl-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
  z-index: 3;
  animation: now-pulse 2s ease-in-out infinite;
}

@keyframes now-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 16px rgba(255,255,255,0.6); }
}

.vis-tl-now-label {
  position: absolute;
  top: 2px;
  left: 5px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

.vis-timeline-hours {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Session color dot */
.session-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.session-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: default;
}

.session-row:hover {
  border-color: var(--border-hover);
}

.session-countdown {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.session-row.active .session-countdown {
  color: var(--accent-light);
}

@media (max-width: 700px) {
  .tool-compact {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tool-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .tool-row label { flex: none; }
  .session-row {
    grid-template-columns: auto 1fr auto auto;
    gap: 0.5rem;
  }
  .session-times { display: none; }
  .session-countdown { font-size: 0.6rem; }
  .vis-timeline { height: 120px; }
  .vis-ladder-track { height: 100px; }
  .edge-dashboard { grid-template-columns: 1fr; }
  .edge-metric-grid { grid-template-columns: 1fr 1fr; }
}

/* === Trade Expectancy Analyzer === */
.edge-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

.edge-inputs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.edge-metrics {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.edge-metric-hero {
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 1rem;
  transition: background 0.3s, border-color 0.3s;
  border: 1px solid var(--border);
}

.edge-metric-hero .edge-metric-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.25rem 0;
}

.edge-metric-hero .edge-metric-verdict {
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.edge-positive {
  background: rgba(107,154,125,0.08);
  border-color: rgba(107,154,125,0.25);
}
.edge-positive .edge-metric-value { color: var(--accent-light); }
.edge-positive .edge-metric-verdict { color: var(--accent-light); }

.edge-marginal {
  background: rgba(200,170,80,0.06);
  border-color: rgba(200,170,80,0.2);
}
.edge-marginal .edge-metric-value { color: #c8aa50; }
.edge-marginal .edge-metric-verdict { color: #c8aa50; }

.edge-negative {
  background: rgba(196,91,91,0.06);
  border-color: rgba(196,91,91,0.2);
}
.edge-negative .edge-metric-value { color: #c45b5b; }
.edge-negative .edge-metric-verdict { color: #c45b5b; }

.edge-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.edge-metric-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.edge-metric-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.edge-metric-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.edge-chart-section {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.edge-chart {
  margin: 0.75rem 0 0.5rem;
}

.edge-chart-hint {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-style: italic;
}

.edge-sim-section {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.edge-sim {
  margin: 0.75rem 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.edge-sim:hover { opacity: 0.8; }

.edge-sim-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.edge-sim-stat strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .edge-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .edge-metric-grid { grid-template-columns: 1fr 1fr; }
}
