/* Degen Entrepreneur / Blueprint Terminal — first draft styles
   Dark-forward fintech, mobile-first */

:root {
  --bg: #0b0f14;
  --bg-alt: #111821;
  --surface: #161e29;
  --surface-hover: #1c2633;
  --border: #2a3645;
  --text: #e8eef6;
  --text-muted: #9aa8b8;
  --accent: #3dd6c6;
  --accent-dim: rgba(61, 214, 198, 0.15);
  --warn: #f0b429;
  --warn-bg: rgba(240, 180, 41, 0.12);
  --danger-soft: #f07178;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1100px;
  --header-h: 64px;
  --focus: 0 0 0 3px rgba(61, 214, 198, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7eefe4;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #041015;
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 600;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-text {
  font-size: 0.95rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--accent);
}

.nav-cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding-inline: 1rem !important;
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.badge-warn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.75rem;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(61, 214, 198, 0.08), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-note strong {
  color: var(--warn);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #041015;
}

.btn-primary:hover {
  background: #5ee0d2;
  color: #041015;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Panels & placeholders */
.panel {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel img {
  width: 100%;
}

.placeholder-label {
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warn);
  background: var(--warn-bg);
  border-top: 1px solid rgba(240, 180, 41, 0.25);
  font-family: var(--mono);
}

/* Metrics */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.metric-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-note {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--warn);
  letter-spacing: 0.03em;
}

.panel-chart {
  margin-top: 0.5rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

.step {
  display: flex;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

@media (min-width: 800px) {
  .step {
    flex-direction: column;
  }
}

.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 750;
  font-size: 0.9rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Media gallery */
.media-gallery {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .media-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-slot {
  margin: 0;
  background: var(--surface);
  border: 1px dashed rgba(240, 180, 41, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-slot img {
  width: 100%;
  opacity: 0.95;
}

/* Demo videos — stay inside .container like metric/chart panels */
.demo-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (min-width: 800px) {
  .demo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.video-slot {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* prevent grid blowout past container margins */
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.video-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.5rem 0.85rem;
  background: rgba(11, 15, 20, 0.85);
  border: 1px solid rgba(240, 180, 41, 0.5);
  color: var(--warn);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  white-space: nowrap;
}

.video-slot figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-slot code {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--accent);
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.feature-card img {
  margin-bottom: 0.85rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  padding-bottom: 5rem;
}

.cta-panel {
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(145deg, var(--surface) 0%, #13202c 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .cta-panel {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 2.5rem;
  }
}

.cta-panel p {
  color: var(--text-muted);
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.cta-note {
  font-size: 0.8rem !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080b10;
  padding: 2.5rem 0 3rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 650;
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.disclaimer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.disclaimer-title {
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.disclaimer p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 70rem;
}

/* --- Revisions: honest performance framing --- */
.metric-card--neg .metric-value {
  color: var(--danger-soft);
}

.metric-sub {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.callout {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.callout-context {
  border-color: rgba(240, 180, 41, 0.35);
  background: var(--warn-bg);
}

.callout-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--warn);
}

.callout p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.diary-block {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.diary-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.diary-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  max-width: 38rem;
}

.disclaimer code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
}

.logo-img{width:36px;height:36px;object-fit:contain;border-radius:6px;}

.logo-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:8px;
  background:var(--accent-dim);color:var(--accent);
  font-weight:700;font-size:0.85rem;letter-spacing:-0.02em;
  text-transform:lowercase;
}
.logo-img{display:none;}


.table-wrap {
  margin: 1.5rem 0 0.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.85rem 1rem 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.data-table th,
.data-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.data-table thead th {
  border-top: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.data-table tbody tr:hover {
  background: var(--bg-alt);
}

.table-footnote {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 52rem;
}


.video-frame--live {
  border-style: solid;
  border-color: var(--border);
}

.video-frame--live video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}


/* Daily P&L calendar */
.pl-cal-wrap {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 100%;
}

.pl-cal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pl-cal-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.pl-cal-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.pl-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.pl-cal-dow span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pl-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.pl-cal-cell {
  min-width: 0;
  aspect-ratio: 1.15 / 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 0.4rem 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pl-cal-cell--pad {
  visibility: hidden;
  border: none;
  background: transparent;
}

.pl-cal-cell--weekend {
  opacity: 0.4;
}

.pl-cal-cell--empty .pl-cal-val {
  color: var(--text-muted);
  font-weight: 500;
}

.pl-cal-cell--start {
  background: #161e29;
}

.pl-cal-cell--up {
  background: rgba(61, 214, 198, 0.12);
  border-color: rgba(61, 214, 198, 0.35);
}

.pl-cal-cell--down {
  background: rgba(240, 113, 120, 0.12);
  border-color: rgba(240, 113, 120, 0.35);
}

.pl-cal-cell--strong.pl-cal-cell--up {
  background: rgba(61, 214, 198, 0.22);
}

.pl-cal-cell--strong.pl-cal-cell--down {
  background: rgba(240, 113, 120, 0.22);
}

.pl-cal-day {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pl-cal-val {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 2.2vw, 0.85rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

.pl-cal-cell--up .pl-cal-val { color: var(--accent); }
.pl-cal-cell--down .pl-cal-val { color: var(--danger-soft); }
.pl-cal-cell--start .pl-cal-val { color: var(--text-muted); font-size: 0.75rem; font-weight: 650; }

@media (max-width: 520px) {
  .pl-cal-wrap { padding: 1rem; }
  .pl-cal-cell { aspect-ratio: 1 / 1; padding: 0.3rem 0.2rem; }
  .pl-cal-val { font-size: 0.62rem; }
}



.pl-cal-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.15;
}

.pl-cal-units {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 2.4vw, 0.9rem);
  font-weight: 700;
}

.pl-cal-pct {
  font-family: var(--mono);
  font-size: clamp(0.55rem, 1.8vw, 0.7rem);
  font-weight: 650;
  opacity: 0.9;
}

.pl-cal-cell--up .pl-cal-units,
.pl-cal-cell--up .pl-cal-pct { color: var(--accent); }
.pl-cal-cell--down .pl-cal-units,
.pl-cal-cell--down .pl-cal-pct { color: var(--danger-soft); }

.pl-cal-cell .pl-cal-val {
  /* legacy single-line cells */
}





.pl-cal-key {
  margin: 0.55rem 0 0;
  max-width: 46rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pl-cal-key strong {
  color: var(--warn);
  font-weight: 650;
}

.pl-cal-header {
  align-items: flex-start;
}

/* Adjusted-scenario marker (calendar cells) */
.pl-cal-cell--adj { border-style: dashed; border-color: var(--warn); }
.pl-cal-cell--adj .pl-cal-day::after { content: " *"; color: var(--warn); font-weight: 700; }
.metric-sub--actual { font-weight: 700; color: var(--text); }
