/* ==========================================
   CASHFLOWLOOP — CSS THEME
   Dark fintech, green accents
   ========================================== */

:root {
  --bg: #0D0D0D;
  --bg-alt: #111318;
  --surface: #141919;
  --border: #1a2622;
  --green: #00C896;
  --green-dim: rgba(0, 200, 150, 0.15);
  --green-glow: rgba(0, 200, 150, 0.4);
  --lime: #B4FF4E;
  --text: #E8F0EC;
  --text-dim: #6B8580;
  --positive: #00C896;
  --red: #FF4D4D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-mark {
  color: var(--green);
  margin-right: 8px;
  font-size: 14px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse-dot 2s infinite;
}

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

/* HERO */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,150,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}

.headline-accent {
  color: var(--green);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-compare {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  margin-top: -28px;
  margin-bottom: 40px;
  letter-spacing: 0.1px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  max-width: 120px;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.cta-btn {
  display: inline-block;
  background: var(--green);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.cta-btn:hover { background: #00e0a8; transform: translateY(-1px); }

.cta-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* TERMINAL */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,200,150,0.08);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }

.terminal-title {
  font-size: 12px;
  color: var(--text-dim);
  flex: 1;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}

.terminal-badge {
  font-size: 10px;
  font-weight: 700;
  color: #00C896;
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.3);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0,200,150,0); }
  50% { box-shadow: 0 0 8px rgba(0,200,150,0.4); }
}

.terminal-body {
  padding: 24px;
}

.terminal-pair {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.pair-symbol {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.pair-price {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.pair-change {
  font-size: 13px;
  font-weight: 600;
}

.positive { color: var(--green); }
.negative { color: var(--red); }

.terminal-chart {
  height: 60px;
  margin-bottom: 16px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.terminal-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.order-side {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.buy { background: rgba(0,200,150,0.15); color: var(--green); }
.sell { background: rgba(180,255,78,0.15); color: var(--lime); }

.order-pair {
  color: var(--text-dim);
  flex: 1;
}

.order-pnl {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.terminal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 2px;
}

.total-value {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.bot-running {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
}

.bot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
  animation: pulse-dot 1.5s infinite;
}

/* SHARED SECTION STYLES */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
}

.section-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.7;
}

/* HOW IT WORKS */
.howitworks {
  padding: 100px 40px;
  background: var(--bg-alt);
}

.howitworks .section-headline,
.howitworks .section-sub {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.howitworks .section-label { text-align: center; }

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 64px auto 0;
  gap: 16px;
}

.step {
  flex: 1;
  max-width: 260px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.step-icon {
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

.step-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: -40px;
}

/* STRATEGIES */
.strategies {
  padding: 100px 40px;
  position: relative;
}

.strategies-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,200,150,0.03) 0%, transparent 70%);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 56px auto 0;
  position: relative;
}

.strategy-card {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.strategy-card:hover {
  border-color: rgba(0,200,150,0.3);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(ellipse at top, rgba(0,200,150,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.card-icon { margin-bottom: 20px; }

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* WHY NOW */
.whynow {
  padding: 100px 40px;
  background: var(--bg-alt);
}

.whynow-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.whynow-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 28px;
}

.whynow-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 20px;
}

.whynow-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.why-metric {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.why-label {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* MANIFESTO */
.manifesto {
  padding: 100px 40px;
  position: relative;
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-bar {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--lime));
  border-radius: 2px;
  margin: 0 auto 40px;
}

.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.manifesto-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 300px;
}

.footer-built {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.6;
  max-width: 400px;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .steps { flex-direction: column; align-items: stretch; }
  .step-connector { display: none; }
  .step { max-width: 100%; }
  .strategy-grid { grid-template-columns: 1fr; }
  .whynow-content { grid-template-columns: 1fr; gap: 48px; }
  .nav { padding: 16px 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 24px 60px; }
  .howitworks, .strategies, .whynow, .manifesto { padding: 80px 24px; }
  .footer { padding: 40px 24px; }
  .hero-stats { gap: 20px; }
  .footer-inner { flex-direction: column; }
}
/* CONFIGURATOR */
.configurator {
  padding: 100px 40px;
  position: relative;
  background: var(--bg-alt);
}

.configurator-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.configurator-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.configurator-head .section-label,
.configurator-head .section-headline,
.configurator-head .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.configurator-head .section-sub { max-width: 640px; }

.configurator-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.cfg-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cfg-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfg-row--submit {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.cfg-row label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cfg-form input,
.cfg-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.cfg-form input:focus,
.cfg-form select:focus {
  outline: none;
  border-color: rgba(0, 200, 150, 0.5);
}

.cfg-form input::placeholder { color: var(--text-dim); opacity: 0.6; }

.cfg-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B8580' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.cfg-run-btn {
  background: var(--green);
  color: #000;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}

.cfg-run-btn:hover { background: #00e0a8; transform: translateY(-1px); }
.cfg-run-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.cfg-status {
  font-size: 12px;
  color: var(--text-dim);
}

.cfg-status--error { color: var(--red); }

.cfg-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cfg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cfg-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
}

.cfg-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.cfg-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.cfg-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.cfg-stat-value.positive { color: var(--green); }
.cfg-stat-value.negative { color: var(--red); }

.cfg-chart-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.cfg-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.cfg-trades-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cfg-trades-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--green);
  border-radius: 2px;
}

.cfg-table-wrapper {
  max-height: 260px;
  overflow-y: auto;
}

.cfg-trades {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cfg-trades thead th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--border);
}

.cfg-trades tbody td {
  padding: 10px;
  color: var(--text);
  border-bottom: 1px solid rgba(26, 38, 34, 0.5);
}

.cfg-trades tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cfg-empty-row {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding: 28px 10px !important;
}

.cfg-muted {
  color: var(--text-dim);
  font-size: 12px;
}

.configurator .side-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.configurator .side-buy { background: rgba(0, 200, 150, 0.15); color: var(--green); }
.configurator .side-sell { background: rgba(180, 255, 78, 0.15); color: var(--lime); }

.configurator-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}

.configurator-footer .cfg-foot-cta {
  display: inline-block;
  margin-left: 8px;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.configurator-footer .cfg-foot-cta:hover { color: #00e0a8; }

@media (max-width: 900px) {
  .configurator-grid { grid-template-columns: 1fr; }
  .cfg-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .configurator { padding: 80px 24px; }
  .cfg-form { padding: 22px; }
  .cfg-results { padding: 22px; }
}
