/* ==========================================================================
   TCSP Challenges Landing Page Styles
   ========================================================================== */

/* ── CSS custom properties ─────────────────────────────────────────────────── */
:root {
  --tch-primary:       #696cff;
  --tch-primary-hover: #5f61e6;
  --tch-primary-soft:  #eeedff;
  --tch-warning:       #ffab00;
  --tch-danger:        #ff3e1d;
  --tch-success:       #71dd37;
  --tch-info:          #03c3ec;
  --tch-dark:          #1a1a2e;
  --tch-dark-accent:   #232448;
  --tch-radius:        12px;
  --tch-radius-sm:     8px;
  --tch-shadow:        0 2px 24px rgba(105,108,255,.10);
}

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.tch-landing {
  padding-top: 0;
}

/* ── Section typography helpers ────────────────────────────────────────────── */
.tch-kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tch-primary);
  margin-bottom: .5rem;
}
.tch-kicker--light { color: rgba(255,255,255,.7); }

.tch-section-head {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.tch-section-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
}
.tch-section-lead {
  color: #697a8d;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.tch-hero {
  background: linear-gradient(135deg, var(--tch-dark) 0%, var(--tch-dark-accent) 60%, #2a1a4e 100%);
  color: #fff;
  padding: 80px 24px 72px;
  overflow: hidden;
  position: relative;
}
.tch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(105,108,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.tch-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}
.tch-hero-copy { flex: 1 1 0; }

.tch-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.tch-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.tch-title span { display: block; }
.tch-title-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,.65);
  margin-top: .4rem;
}
.tch-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.tch-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75rem;
}
.tch-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .03em;
}

/* Hero visual */
.tch-hero-visual {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.tch-alert-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tch-alert-icon {
  font-size: 5rem;
  color: var(--tch-warning);
  position: relative;
  z-index: 2;
  animation: tch-pulse 3s ease-in-out infinite;
}
@keyframes tch-pulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.07); opacity: .88; }
}
.tch-alert-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,171,0,.22);
}
.tch-alert-ring--1 { width: 120px; height: 120px; }
.tch-alert-ring--2 { width: 160px; height: 160px; border-color: rgba(255,171,0,.12); }
.tch-alert-ring--3 { width: 200px; height: 200px; border-color: rgba(255,171,0,.06); }

.tch-stat-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
  max-width: 260px;
}
.tch-chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}
.tch-chip i { font-size: 1.2rem; color: var(--tch-primary); }

/* ── Definition block ──────────────────────────────────────────────────────── */
.tch-definition {
  background: #f4f5fa;
  padding: 56px 24px;
}
.tch-definition-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tch-def-item {
  background: #fff;
  border-radius: var(--tch-radius);
  padding: 32px;
  box-shadow: var(--tch-shadow);
  border-top: 4px solid var(--tch-primary);
}
.tch-def-item h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--tch-dark);
}
.tch-def-item p {
  font-size: .93rem;
  color: #697a8d;
  line-height: 1.7;
  margin: 0;
}

/* ── Challenge cards section ───────────────────────────────────────────────── */
.tch-challenges-section {
  background: linear-gradient(160deg, var(--tch-dark) 0%, var(--tch-dark-accent) 100%);
  padding: 72px 24px;
  color: #fff;
}
.tch-challenges-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.tch-challenge-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--tch-radius);
  padding: 28px 24px;
  transition: background .25s, transform .25s;
}
.tch-challenge-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}
.tch-challenge-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tch-warning);
  margin-bottom: 10px;
}
.tch-challenge-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.tch-challenge-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin: 0;
}
.tch-challenge-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

/* ── Feature cards ─────────────────────────────────────────────────────────── */
.tch-feature-card {
  border-radius: var(--tch-radius);
  padding: 28px 24px;
  height: 100%;
  background: #fff;
  box-shadow: var(--tch-shadow);
  border: 1px solid rgba(105,108,255,.08);
  transition: box-shadow .25s, transform .25s;
}
.tch-feature-card:hover {
  box-shadow: 0 8px 32px rgba(105,108,255,.18);
  transform: translateY(-2px);
}
.tch-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.tch-feature-icon.primary   { background: var(--tch-primary-soft); color: var(--tch-primary); }
.tch-feature-icon.success   { background: rgba(113,221,55,.12);    color: #67c02d; }
.tch-feature-icon.info      { background: rgba(3,195,236,.12);     color: #03afd4; }
.tch-feature-icon.warning   { background: rgba(255,171,0,.12);     color: #e69900; }
.tch-feature-icon.danger    { background: rgba(255,62,29,.10);     color: #e5341b; }
.tch-feature-icon.secondary { background: rgba(133,146,163,.12);   color: #6d7f94; }

.tch-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--tch-dark);
}
.tch-feature-card p {
  font-size: .88rem;
  color: #697a8d;
  line-height: 1.65;
  margin: 0;
}

/* ── Workflow steps ─────────────────────────────────────────────────────────── */
.tch-workflow { padding: 72px 24px; background: #f4f5fa; }
.tch-workflow-inner { max-width: 800px; margin: 0 auto; }
.tch-workflow-step {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  align-items: flex-start;
}
.tch-workflow-step:last-child { margin-bottom: 0; }
.tch-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--tch-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.tch-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tch-dark);
}
.tch-step-body p {
  font-size: .9rem;
  color: #697a8d;
  line-height: 1.65;
  margin: 0;
}

/* ── Deadline section ──────────────────────────────────────────────────────── */
.tch-deadline-section { padding: 72px 24px; }
.tch-deadline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.tch-deadline-card {
  border-radius: var(--tch-radius);
  background: #fff;
  border: 1px solid #e6e8f0;
  padding: 22px 20px;
  box-shadow: var(--tch-shadow);
}
.tch-deadline-badge {
  display: inline-block;
  background: var(--tch-primary-soft);
  color: var(--tch-primary);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tch-deadline-badge.warning { background: rgba(255,171,0,.12); color: #cc8800; }
.tch-deadline-badge.danger  { background: rgba(255,62,29,.1);  color: #cc3218; }
.tch-deadline-card h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tch-dark);
}
.tch-deadline-card p {
  font-size: .83rem;
  color: #697a8d;
  line-height: 1.6;
  margin: 0;
}

/* ── Checklist section ──────────────────────────────────────────────────────── */
.tch-checklist-section { padding: 72px 24px; background: #f4f5fa; }
.tch-checklist-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.tch-checklist { list-style: none; padding: 0; margin: 0; }
.tch-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e6e8f0;
  font-size: .9rem;
  color: #3d4466;
}
.tch-checklist li:last-child { border-bottom: none; }
.tch-checklist li i {
  color: var(--tch-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.tch-screenshot {
  border-radius: var(--tch-radius);
  box-shadow: 0 8px 48px rgba(26,26,46,.18);
  width: 100%;
  height: auto;
  display: block;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.tch-faq-section { padding: 72px 24px; }
.tch-faq-inner { max-width: 800px; margin: 0 auto; }
.tch-faq-item {
  border-bottom: 1px solid #e6e8f0;
  padding: 24px 0;
}
.tch-faq-item:first-of-type { border-top: 1px solid #e6e8f0; }
.tch-faq-q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tch-dark);
  margin-bottom: 10px;
}
.tch-faq-a {
  font-size: .9rem;
  color: #697a8d;
  line-height: 1.7;
  margin: 0;
}

/* ── CTA ───────────────────────────────────────────────────────────────────── */
.tch-cta-section {
  background: linear-gradient(135deg, var(--tch-dark-accent) 0%, var(--tch-dark) 100%);
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}
.tch-cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.tch-cta-section p {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tch-hero-inner        { flex-direction: column; gap: 40px; }
  .tch-hero-visual       { flex: none; width: 100%; align-items: center; }
  .tch-definition-inner  { grid-template-columns: 1fr; }
  .tch-checklist-inner   { grid-template-columns: 1fr; }
  .tch-checklist-inner .tch-screenshot { order: -1; }
}
@media (max-width: 600px) {
  .tch-hero              { padding: 56px 16px 48px; }
  .tch-challenges-grid   { grid-template-columns: 1fr; }
}
