
/* Page titles (e.g. About Fair Screen, How It Works) */
.page-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 48px);
  color: #12344a;
  letter-spacing: -0.02em;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.page-heading .accent {
  background: linear-gradient(90deg, #0b88f3, #41b9b2);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px; 
  object-fit: contain;
}

/* Lead paragraph under the title */
.about-lede {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #3b4753;
  text-align: center;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 60px;
}

/* Card grid wrapper */
.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 80px;
}

/* Each card */
.about-card {
  background: #fff;
  border: 1px solid #e2ecf5;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 8px 18px rgba(17, 49, 66, 0.06);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11, 136, 243, 0.15);
}

/* Card titles (Our Mission, Vision, Team) */
.about-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #12344a;
  margin: 12px 0 10px;
}

/* Card body text */
.about-card p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #3b4753;
  line-height: 1.6;
}

.about-section p a {
  text-decoration: none;
}


/* SVG icons sizing */
.about-card svg {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}

.fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 1.2s ease forwards; }
.slide-up { opacity: 0; transform: translateY(40px); animation: slideUp 1.3s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

.solution-anim img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(11,136,243,0.2);
  transition: transform 0.5s ease;
}

.solution-anim img:hover { transform: scale(1.03); }

/* SOLUTION LAYOUT – mirror the feel of the problem section */

.solution-section {
  margin: 80px auto;
}

.solution-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

/* Left side: text */
.solution-text {
  flex: 1 1 360px;
}

.solution-text p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3b4753;
  margin-bottom: 10px;
}

/* Heading + logo, aligned like problem title */
.solution-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #12344a;
  margin-bottom: 16px;
  justify-content: flex-start;   
}

.solution-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(11, 136, 243, 0.45));
}

/* Right side: images */
.solution-visuals {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.solution-visual {
  display: block;
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(17, 49, 66, 0.12);
  object-fit: contain;
}

/* Mobile: stack like cards */
@media (max-width: 768px) {
  .solution-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .solution-heading {
    justify-content: flex-start;
  }

  .solution-text p {
    margin-right: 0;
  }

  .solution-visuals {
    align-items: flex-start;
  }
}

/* === DETECT DEMO (inspired by create_session.css) === */
.detect-demo {
  text-align: center;
  margin: 100px auto;
  max-width: 800px;
}

.detect-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 900;
  color: #1d3b50;
  margin-bottom: 28px;
}

.siren {
  width: 26px;
  height: 26px;
  animation: pulseLight 2s ease-in-out infinite;
}

@keyframes pulseLight {
  0%, 100% { filter: drop-shadow(0 0 4px #ff5a76aa); }
  50% { filter: drop-shadow(0 0 12px #ff5a76ff); }
}

/* Stack background + animated sweep */
.detect-stack {
  position: relative;
  background: var(--panel, #f7fafc);
  border: 1px solid #d3e0ea;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(17,49,66,.08);
  overflow: hidden;
  height: 340px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* subtle idle state; gets a bit more alive when active */
.detect-stack.active {
  box-shadow: 0 18px 40px rgba(11,136,243,0.22);
  transform: translateY(-2px);
}

/* Grid background & sweep beam */
.detect-capture {
  position: relative;
  height: 100%;
  background:
    linear-gradient(45deg, rgba(70,120,150,.07) 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(45deg, transparent 75%, rgba(70,120,150,.07) 75%) -8px 0/16px 16px,
    linear-gradient(45deg, transparent 75%, rgba(70,120,150,.07) 75%) 0px 0/16px 16px,
    linear-gradient(45deg, rgba(70,120,150,.07) 25%, transparent 25%) 0px 0/16px 16px;
}

.detect-capture::after {
  content: "";
  position: absolute;
  inset: -10% -40%;
  background: linear-gradient(
    90deg,
    rgba(11,136,243,0) 0%,
    rgba(11,136,243,.25) 45%,
    rgba(11,136,243,0) 90%
  );
  transform: translateX(-60%);
  filter: blur(10px);
  opacity: 0;
  animation: detectSweep 5s ease-in-out infinite;
  animation-play-state: paused;
}

.detect-stack.active .detect-capture::after {
  animation-play-state: running;
}

@keyframes detectSweep {
  0% {
    transform: translateX(-60%);
    opacity: 0.1;
  }
  10% {
    opacity: 0.9;
  }
  60% {
    transform: translateX(60%);
    opacity: 0.9;
  }
  80%,100% {
    opacity: 0;
  }
}


/* Window mockups */
.detect-win {
  position: absolute;
  background: #fff;
  border: 1px solid #dbe6ef;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(17,49,66,.10);
  overflow: hidden;
}

/* add subtle titlebars + content lines inside windows */
.detect-win::before {
  content: "";
  display: block;
  height: 18px;
  background: linear-gradient(90deg, #edf2f7, #e1e9f3);
}

.detect-win::after {
  content: "";
  position: absolute;
  inset: 28px 12px 16px;
  background:
    linear-gradient(#e5edf6 0 0) 0 0/70% 4px no-repeat,
    linear-gradient(#e5edf6 0 0) 0 10px/90% 4px no-repeat,
    linear-gradient(#e5edf6 0 0) 0 20px/80% 4px no-repeat;
  opacity: 0.85;
}

.detect-win.w1 { left: 8%;  top: 14%; width: 40%; height: 42%; }
.detect-win.w2 { left: 36%; top: 36%; width: 36%; height: 42%; }
.detect-win.w3 { left: 60%; top: 10%; width: 30%; height: 36%; }

.ghost-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #0b1720;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
  padding: 3px 8px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15,23,42,0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}


/* Invisible overlays that appear when detected */
.detect-ghost {
  position: absolute;
  border: 2px dashed transparent;
  border-radius: 14px;
  background: transparent;
  opacity: 0;
  box-shadow: none;
  animation: detectDots 5s ease-in-out infinite;
  animation-play-state: paused;
}

.detect-stack.active .detect-ghost {
  animation-play-state: running;
}

/* positions & colors */
.detect-ghost.g1 {
  left: 65%;
  top: 20%;
  width: 22%;
  height: 20%;
  --dot: #f5b400;
  --dotA: rgba(245,180,0,0.25);
  animation-delay: 1.7s;  /* appears after beam passes right side */
}

.detect-ghost.g2 {
  left: 24%;
  top: 54%;
  width: 30%;
  height: 16%;
  --dot: #ff5a76;
  --dotA: rgba(255,90,118,0.25);
  animation-delay: 2.1s;
}

.detect-ghost.g3 {
  left: 6%;
  top: 25%;
  width: 30%;
  height: 16%;
  --dot: #111827;
  --dotA: rgba(17,24,39,0.28);
  animation-delay: 2.5s;
}

@keyframes detectDots {
  0%, 45% {
    opacity: 0;
    border-color: transparent;
    box-shadow: none;
  }
  55%, 70% {
    opacity: 1;
    border-color: var(--dot);
    box-shadow:
      0 12px 28px var(--dotA),
      0 0 0 6px var(--dotA) inset;
  }
  70% {
    /* show label at peak */
  }
  80%, 100% {
    opacity: 0;
    border-color: transparent;
    box-shadow: none;
  }
}

.detect-stack.active .detect-ghost.g1 .ghost-label,
.detect-stack.active .detect-ghost.g2 .ghost-label,
.detect-stack.active .detect-ghost.g3 .ghost-label {
  opacity: 1;
  transform: translateY(0);
}

.problem-section {
  margin: 80px auto;
}

.problem-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.problem-text {
  flex: 1 1 320px;
}

.problem-anim {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
}

/* Screen container */
.problem-screen {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f5f9fc, #e5edf6);
  padding: 16px;
  box-shadow: 0 14px 32px rgba(17, 49, 66, 0.18);
  overflow: hidden;
}

/* Base coding window */
.problem-base {
  background: #0b1720;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(5, 10, 18, 0.7);
}

.problem-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #111827, #1f2937);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #9ca3af;
}

.problem-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  opacity: 0.9;
}

.problem-header .dot.red { background: #f87171; }
.problem-header .dot.yellow { background: #fbbf24; }
.problem-header .dot.green { background: #34d399; }

.problem-title {
  margin-left: 4px;
  opacity: 0.8;
}

.problem-body {
  padding: 14px 14px 18px;
}

.code-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f2933, #111827);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.code-line.short {
  width: 65%;
}

.code-line:not(.short) {
  width: 92%;
}

/* Overlay card (invisible window) */
.problem-overlay {
  position: absolute;
  right: 26px;
  top: 42px;
  width: 58%;
  border-radius: 14px;
  background: rgba(11, 136, 243, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 rgba(11, 136, 243, 0);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: overlayReveal 6s ease-in-out infinite;
}

.overlay-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px 4px;
  color: #f9fafb;
  background: linear-gradient(90deg, rgba(11, 136, 243, 0.92), rgba(65, 185, 178, 0.92));
  border-radius: 13px 13px 0 0;
}

.overlay-lines {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay-lines span {
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 136, 243, 0.35);
}

/* Hint bubble underneath */
.problem-ghost-hint {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: 220px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #1f2933;
  background: rgba(255, 250, 235, 0.98);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 10px 26px rgba(156, 163, 175, 0.6);
  opacity: 0;
  transform: translateY(10px);
  animation: hintAppear 6s ease-in-out infinite;
}

/* Keyframes: overlay fades in, glows, then hides again */
@keyframes overlayReveal {
  0%, 40% {
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 rgba(11, 136, 243, 0);
    transform: translateY(16px) scale(0.98);
  }
  50%, 65% {
    opacity: 1;
    border-color: rgba(11, 136, 243, 0.8);
    box-shadow:
      0 12px 32px rgba(11, 136, 243, 0.35),
      0 0 0 6px rgba(11, 136, 243, 0.18);
    transform: translateY(0) scale(1);
  }
  80%, 100% {
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 rgba(11, 136, 243, 0);
    transform: translateY(10px) scale(0.99);
  }
}

/* Hint appears slightly after overlay shows */
@keyframes hintAppear {
  0%, 48% {
    opacity: 0;
    transform: translateY(10px);
  }
  56%, 70% {
    opacity: 1;
    transform: translateY(0);
  }
  82%, 100% {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Mobile tweak */
@media (max-width: 768px) {
  .problem-layout {
    flex-direction: column;
  }

  .problem-screen {
    max-width: 100%;
  }
}


/* Footer typography */
.footer-text {
  color: #1f3c4f;
  font-family: 'Inter', sans-serif;
  font-weight: 600; /* match homepage */
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #6b8593;
  margin-top: 6px;
  text-align: center;
}

/* CONTACT PAGE LAYOUT */

.contact-page {
  margin: 60px auto 80px;
}

.contact-page .page-heading {
  text-align: center;
  margin-bottom: 40px;
}

.contact-card {
  background: #f4f7ff;
  border-radius: 24px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* left side text */
.contact-copy {
  flex: 1 1 55%;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-copy h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #1f2937;
  margin-bottom: 16px;
}

.contact-copy p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 10px;
}

.contact-link {
  color: #0b88f3;
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* button */
.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding-inline: 28px;
  border-radius: 999px;
  font-size: 15px;
}

/* right side image */
.contact-image {
  flex: 1 1 45%;
  min-height: 260px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* responsive */
@media (max-width: 900px) {
  .contact-card {
    flex-direction: column;
  }

  .contact-copy {
    padding: 32px 24px 28px;
  }

  .contact-image {
    max-height: 260px;
  }
}
