/* ─── SECTION SHARED ──────────────────────────────────── */
.section {
  /* Light-theme variables scoped to content sections */
  --bg:        #ffffff;
  --bg2:       #f7f7f9;
  --bg3:       #eeeef2;
  --surface:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --text:      #3a3a4a;
  --heading:   #1a1a2e;
  --muted:     #6b6b80;
  --grad-soft: linear-gradient(135deg, rgba(255,107,53,0.08) 0%, rgba(232,35,58,0.08) 100%);
  padding: 96px 48px;
  color: var(--text);
}
/* Background variants */
.section-bg2 { background: var(--bg2); }
/* Padding variants */
.section-compact { padding-top: 48px; padding-bottom: 48px; }
.section-mid { padding-top: 64px; padding-bottom: 64px; }
.section-flush { padding-top: 0; padding-bottom: 0; }
.section-inner { max-width: 1136px; margin: 0 auto; }
.section-inner-center { text-align: center; }
.section-inner-narrow { max-width: 640px; }
.section-inner-mid { max-width: 720px; }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--orange);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { content: ''; width: 24px; height: 2px; visibility: hidden; }

.section-h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--heading);
  margin-bottom: 20px;
}
.section-h2 .grad-text,
.grad-text {
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-lead { font-size: 1.0625rem; line-height: 1.75; color: var(--muted); max-width: 560px; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  background: var(--grad); color: #fff;
  font-size: 0.9375rem; font-weight: 700; text-decoration: none;
  transition: opacity .2s;
  border: none; cursor: pointer; font-family: var(--font);
}
.btn-primary:hover { opacity: .88; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: background .2s, border-color .2s;
  cursor: pointer; font-family: var(--font);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }

/* btn-secondary light override inside sections */
.section .btn-secondary {
  background: var(--bg2);
  color: var(--heading);
  border-color: var(--border);
}
.section .btn-secondary:hover {
  background: var(--bg3);
  border-color: rgba(0,0,0,0.15);
}

/* ─── STRENGTH / FEATURE CARDS ───────────────────────── */
.strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; }
.strength-card {
  background: var(--bg2); padding: 40px 36px;
  position: relative; overflow: hidden;
}

.strength-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #8888a0;
}
.strength-icon svg { width: 22px; height: 22px; }
.strength-h3 { font-size: 1.125rem; font-weight: 700; color: var(--heading); margin-bottom: 10px; letter-spacing: -0.01em; }
.strength-body { font-size: 0.9rem; line-height: 1.7; color: var(--muted); }

/* ─── TOOL CARDS ─────────────────────────────────────── */
.ai-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
}
.tool-card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 20px;
  font-family: var(--mono); font-size: 0.6875rem; color: #8888a0;
}
.tool-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.tool-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.tool-card-link {
  font-size: 0.8125rem; font-weight: 600; color: var(--orange);
  text-decoration: underline; text-decoration-color: rgba(255,107,53,0.35);
  text-underline-offset: 3px;
  display: flex; align-items: center; gap: 6px;
  transition: gap .2s, text-decoration-color .2s;
}
.tool-card-link:hover { text-decoration-color: var(--orange); }

/* ─── SCENARIO CARDS ─────────────────────────────────── */
.scenario-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.scenario-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px;
  display: flex; gap: 16px; align-items: flex-start;
}
.scenario-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #8888a0;
}
.scenario-icon svg { width: 18px; height: 18px; }
.scenario-title { font-size: 0.9rem; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.scenario-body { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

/* ─── INLINE TEXT LINKS ─────────────────────────────── */
/* Underline separates clickable orange from decorative orange */
.scenario-body a,
.section-lead a,
.section p a,
.cta-text p a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(255,107,53,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.scenario-body a:hover,
.section-lead a:hover,
.section p a:hover,
.cta-text p a:hover {
  text-decoration-color: var(--orange);
}

/* ─── CHART PANEL ────────────────────────────────────── */
.chart-panel {
  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 0 1px rgba(255,255,255,0.04);
}
.section .chart-panel {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.chart-panel-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.02);
}
.section .chart-panel-header {
  background: var(--bg2);
}
.traffic-lights { display: flex; gap: 6px; }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl-r { background: #ff5f56; } .tl-y { background: #ffbd2e; } .tl-g { background: #27c93f; }
.panel-title { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.chart-area { padding: 24px; }
.panel-footer {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.live-badge {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.6875rem; color: #27c93f;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #27c93f; animation: pulse 1.5s infinite; }

/* ─── AI SECTION ─────────────────────────────────────── */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.ai-question-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.aqb-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  background: rgba(255,255,255,0.02); display: flex; align-items: center; gap: 8px;
}
.section .aqb-header {
  background: var(--bg2);
}
.aqb-header svg { opacity: .5; }
.aqb-body { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }

.chat-bubble {
  padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; line-height: 1.6; max-width: 90%;
}
.chat-user {
  background: rgba(255,107,53,0.12); border: 1px solid rgba(255,107,53,0.2);
  color: var(--text); align-self: flex-end; border-radius: 12px 12px 2px 12px;
}
.chat-ai {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); align-self: flex-start; border-radius: 12px 12px 12px 2px;
}
.section .chat-ai {
  background: var(--bg2);
}
.chat-ai strong { color: var(--orange); }

.ai-right-content { display: flex; flex-direction: column; gap: 8px; }
.ai-answer-headline {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--heading);
  line-height: 1.2; margin: 16px 0;
}

/* ─── EXPERIENCE STRIP ───────────────────────────────── */
.exp-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; position: relative; }
.exp-number {
  font-size: clamp(7.5rem, 14vw, 11.25rem); font-weight: 900;
  letter-spacing: -0.06em; line-height: 0.85;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: .15; user-select: none;
  padding-right: 0.15em;
}
.exp-list { display: flex; flex-direction: column; gap: 28px; }
.exp-item { display: flex; gap: 20px; }
.exp-item-marker {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.exp-item-marker svg { width: 12px; height: 12px; color: #8888a0; }
.exp-item h4 { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 5px; }
.exp-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ─── PLATFORM ───────────────────────────────────────── */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.chart-type-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.chart-type-pill {
  background: rgba(255,107,53,0.06); border: 1px solid rgba(255,107,53,0.2);
  border-radius: 8px; padding: 10px 12px;
  font-size: 0.75rem; font-weight: 600; color: var(--orange);
  text-align: center; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.chart-type-pill:hover {
  background: rgba(255,107,53,0.12);
  border-color: rgba(255,107,53,0.4);
  text-decoration: none;
}
.chart-type-more {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.chart-type-more:hover {
  background: var(--red); border-color: var(--red);
}
.platform-cta { margin-top: 32px; display: flex; gap: 12px; }

/* ─── DOJO PROJECT CARDS ─────────────────────────────── */
.dojo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px;
}
.dojo-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .3s, border-color .3s;
}
.dojo-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.15);
}
.dojo-card-img {
  aspect-ratio: 16/9; overflow: hidden; background: var(--bg2);
}
.dojo-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.dojo-card:hover .dojo-card-img img { transform: scale(1.05); }
.dojo-card-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.dojo-card-tag {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.dojo-card-title {
  font-size: 1.0625rem; font-weight: 700; color: var(--heading); margin-bottom: 8px;
}
.dojo-card-desc {
  font-size: 0.8125rem; color: var(--muted); line-height: 1.65; flex: 1;
}
.dojo-card-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.8125rem; font-weight: 600; color: var(--orange);
  text-decoration: underline; text-decoration-color: rgba(255,107,53,0.35); text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.dojo-card:hover .dojo-card-cta { text-decoration-color: var(--orange); }
.dojo-card-cta svg { width: 14px; height: 14px; }

/* ─── CODE BLOCKS (inline monospace) ────────────────── */
.code-block {
  background: rgba(0,0,0,0.7); border-radius: 8px;
  padding: 14px 44px 14px 16px;
  font-family: var(--mono); font-size: 0.8rem;
  color: #e8e8f0; text-align: left;
  line-height: 1.6;
  overflow-x: auto; overflow-wrap: break-word; word-break: break-word;
  max-width: 100%;
  position: relative;
}
.code-copy-btn {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
  padding: 0; flex-shrink: 0;
}
.code-copy-btn:hover {
  background: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.22);
}
.code-copy-btn.copied {
  color: #27c93f;
  border-color: rgba(39,201,63,0.35);
  background: rgba(39,201,63,0.1);
}
.code-copy-btn svg { width: 14px; height: 14px; pointer-events: none; }

/* ─── LICENSING GRID ─────────────────────────────────── */
.licensing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-radius: 16px; overflow: hidden;
  margin-top: 48px; text-align: left;
}
.licensing-grid > div { background: var(--bg2); padding: 36px 32px; }
@media (max-width: 1024px) {
  .licensing-grid { grid-template-columns: 1fr; }
}

/* ─── CTA BANNER ─────────────────────────────────────── */
.cta-banner {
  max-width: 1136px; margin: 80px auto; border-radius: 20px; overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a1018 0%, #1a1218 50%, #110f1a 100%);
  border: 1px solid rgba(255,107,53,0.2);
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(255,107,53,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(232,35,58,0.1) 0%, transparent 60%);
}
.cta-inner {
  position: relative; padding: 72px 80px;
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
}
.cta-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.03em; color: #fff; margin-bottom: 12px; line-height: 1.1;
}
.cta-text p { font-size: 1rem; color: #8888a8; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ─── CLIENT LOGO STRIP ─────────────────────────────── */
.logo-strip {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 28px 48px 32px;
}
.logo-strip-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: #aaa; text-align: center;
  margin: 0 0 20px;
}
.logo-strip-inner {
  max-width: 1136px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 12px 28px; flex-wrap: wrap;
}
.client-logo {
  font-size: 0.8125rem; font-weight: 700; color: #b0b0b8;
  letter-spacing: 0.01em; white-space: nowrap;
}
/* When real logo images are added */
.logo-strip-inner img {
  height: 24px; opacity: 0.4; filter: grayscale(100%);
}

/* ─── SCROLLING TICKER ───────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.ticker {
  display: flex; width: max-content;
  animation: ticker 35s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 12px;
  padding: 0 32px; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted);
}
.ticker-item::after { content: '\00b7'; color: var(--orange); opacity: .6; font-size: 1.25rem; }

/* ─── CTA code-block (inline-block centering) ─────────── */
.cta-text .code-block {
  display: inline-block; font-size: 0.9rem; margin-top: 20px;
}

/* ─── LICENSING CARD STYLES ─────────────────────────────── */
.license-tier { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); margin-bottom: 12px; }
.license-price { font-size: 2rem; font-weight: 800; color: var(--heading); line-height: 1; }
.license-period { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.license-desc { font-size: 0.9rem; color: var(--muted); margin-top: 20px; line-height: 1.6; }
.license-list { list-style: none; padding: 0; margin-top: 20px; font-size: 0.8125rem; color: #2d2d3a; line-height: 2; }
.license-list svg { margin-right: 6px; vertical-align: -1px; color: var(--orange); }
.license-price .license-period { font-size: 0.9rem; font-weight: 400; display: inline; margin-top: 0; }

/* ─── RESPONSIVE: SECTIONS ──────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 64px 32px; }
  .section-compact { padding-top: 40px; padding-bottom: 40px; }
  .section-mid { padding-top: 48px; padding-bottom: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 48px 20px; }
  .section-compact { padding-top: 36px; padding-bottom: 36px; }
  .section-mid { padding-top: 40px; padding-bottom: 40px; }
  .ticker-item { padding: 0 20px; gap: 8px; font-size: 0.75rem; }
  .cta-text .code-block { display: block; font-size: 0.8rem; }
  .chart-type-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-strip { padding: 20px 20px 24px; }
}

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

@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .section-compact { padding-top: 32px; padding-bottom: 32px; }
  .section-mid { padding-top: 36px; padding-bottom: 36px; }
  .chart-type-grid { grid-template-columns: repeat(2, 1fr); }
  .licensing-grid > div { padding: 28px 20px; }
}
