/* 100cr — Extended UI components */

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Tabbed app showcase — business grid */
.showcase-panel {
  display: grid;
  gap: var(--grid-gap-lg, 1.5rem);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .showcase-panel {
    grid-template-columns: minmax(240px, 320px) 1fr;
  }
}

.grid-showcase-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .grid-showcase-tabs { grid-template-columns: 1fr; }
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 1023px) {
  .tab-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

.tab-btn {
  text-align: left;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.tab-btn:hover { border-color: var(--accent-border); color: var(--text); background: var(--surface); }

.tab-btn.is-active {
  background: rgba(79, 70, 229, 0.14);
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: none;
}

.tab-pane { display: none; animation: fadeTab 0.4s ease; }
.tab-pane.is-active { display: block; }

@keyframes fadeTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Phone mockup */
.phone-mock {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 2.5rem;
  padding: 12px;
  background: #e2e8f0;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

.phone-screen {
  border-radius: 2rem;
  overflow: hidden;
  background: var(--surface);
  min-height: 420px;
  padding: 1rem;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 1rem;
}

/* ROI Calculator */
.roi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.roi-slider-wrap { margin: 1.5rem 0; }

.roi-slider-wrap label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.roi-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  accent-color: var(--accent);
}

.roi-result {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.03));
  border: 1px solid rgba(0, 229, 255, 0.25);
  text-align: center;
}

.roi-result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

/* Workflow pipeline */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.pipeline-step {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, border-color 0.3s;
}

.pipeline-step:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.pipeline-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  opacity: 0.6;
}

@media (max-width: 767px) {
  .pipeline-arrow { display: none; }
  .pipeline { flex-direction: column; }
}

/* Timeline day */
.day-timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.day-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 4rem;
  padding-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--navy);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}

.timeline-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-item h4 { margin: 0.25rem 0 0.35rem; font-size: 1.05rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.section-dark .timeline-item h4 { color: #f8fafc; }
.section-dark .timeline-item p { color: #94a3b8; }

/* Case study cards */
.case-grid {
  display: grid;
  gap: var(--grid-gap, 1.25rem);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .case-grid:not(.grid-3) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .case-grid.grid-3, .case-grid { grid-template-columns: repeat(3, 1fr); } }

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 229, 255, 0.3);
}

.case-card-top {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent);
  border-bottom: 1px solid var(--border);
}

.case-metric {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.case-card-body { padding: 1.5rem; flex: 1; }
.case-card-body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--text); }
.case-card-body p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.case-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Security badges */
.security-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

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

.security-badge {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.security-badge svg { color: var(--accent); margin-bottom: 0.75rem; }
.security-badge h4 { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--text); }
.security-badge p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* Video / demo frame */
.demo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.4);
}

.demo-play:hover { transform: scale(1.08); }

/* Carousel testimonials */
.carousel-wrap { position: relative; overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .carousel-slide { min-width: 50%; }
}

@media (min-width: 1024px) {
  .carousel-slide { min-width: 33.333%; }
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover { border-color: var(--accent); background: var(--bg-alt); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sticky-cta p { margin: 0; font-size: 0.9rem; font-weight: 600; }
.sticky-cta span { color: var(--muted); font-weight: 400; font-size: 0.8rem; display: block; }

/* Newsletter */
.newsletter-box {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-border);
  background: linear-gradient(135deg, var(--surface), #eff6ff);
  box-shadow: var(--shadow-sm);
}

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

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form .form-input { flex: 1; min-width: 200px; }

/* Metric highlight row */
.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.metric-box {
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.metric-box strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.3;
}

.metric-box span { font-size: 0.8rem; color: var(--muted); }


/* Hero phones stack */
.hero-phones {
  position: relative;
  min-height: 480px;
}

.hero-phone-back {
  position: absolute;
  right: 0;
  top: 40px;
  transform: rotate(8deg) scale(0.92);
  opacity: 0.7;
  z-index: 0;
}

.hero-phone-front {
  position: relative;
  z-index: 1;
  max-width: 300px;
}

/* Integration logos */
.integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.integration-item {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 140px;
  text-align: center;
}

/* Download page */
.download-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .download-hero-grid { grid-template-columns: 1fr 1fr; }
}

.qr-box {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.qr-cell { background: var(--navy); border-radius: 1px; }
.qr-cell.light { background: transparent; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--navy-card);
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.2s;
}

.store-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Resource cards */
.resource-grid {
  display: grid;
  gap: 1.5rem;
}

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

.resource-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, border-color 0.3s;
}

.resource-card p {
  color: var(--muted);
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
}

.resource-card .read-time {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Expanded product sections */
.use-case-grid {
  display: grid;
  gap: 1rem;
}

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

.use-case-item {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--accent);
}

.use-case-item h4 { margin: 0 0 0.35rem; color: var(--text); }
.use-case-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 { width: 400px; height: 400px; background: rgba(0, 229, 255, 0.15); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(240, 180, 41, 0.08); bottom: 0; left: -80px; }

/* Platform styles → see css/platforms.css */
