/* ═══════════════════════════════════════════════════════════════════
   CROWDLESS — Clean Signal (Light Mode)
   Concept: White canvas × bioluminescent cyan
   Precise, airy, data-driven. Like a city map in daylight.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #F5F5F5;
  --bg-alt:    #f2f8fa;   /* very slight cool-cyan tint for alt sections */
  --bg-card:   #F5F5F5;
  --bg-card-h: #f7fcfd;

  /* Borders */
  --bdr:     #e0eaee;
  --bdr-acc: rgba(6, 182, 212, 0.4);

  /* Accent — Cyan spectrum */
  --acc:       #0891b2;   /* cyan-600 — text & dark UI on white  */
  --acc-mid:   #06b6d4;   /* cyan-500 — primary interactive      */
  --acc-light: #22d3ee;   /* cyan-400 — hover / glow             */
  --acc-bright:#67e8f9;   /* cyan-300 — very light fills         */
  --acc-glow:  rgba(6, 182, 212, 0.14);

  /* Gold — awards only */
  --gold: #d4a843;

  /* Text — cool dark (not pure black; has ocean in it) */
  --t-1: #07192a;   /* primary   */
  --t-2: #4a7080;   /* secondary */
  --t-3: #91b0bc;   /* muted     */

  /* Layout */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --card-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  --card-shadow-h: 0 4px 24px rgba(6,182,212,0.12), 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(6,182,212,0.2);
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img    { max-width: 100%; display: block; height: auto; }
a      { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: var(--t-1); }
p      { color: var(--t-2); }
strong { font-weight: 700; color: var(--t-1); }
em     { font-style: normal; color: var(--acc); }
[hidden]   { display: none !important; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ────────────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bdr);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}
/* Logo works natively on white — no filter needed */
.logo img { height: 38px; width: auto; object-fit: contain; }

/* Nav */
nav#nav-links { display: flex; gap: 0.15rem; align-items: center; }
nav#nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--t-2);
  padding: 0.45rem 0.8rem; border-radius: var(--radius-xs);
  transition: color 0.15s, background 0.15s;
}
nav#nav-links a:hover { color: var(--t-1); background: rgba(6,182,212,0.07); }
nav#nav-links a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
nav#nav-links a.nav-cta {
  background: var(--acc-mid); color: #fff;
  border: 1px solid var(--acc-mid); font-weight: 600; margin-left: 0.6rem;
  box-shadow: 0 2px 12px rgba(6,182,212,0.25);
}
nav#nav-links a.nav-cta:hover {
  background: var(--acc-light); border-color: var(--acc-light);
  box-shadow: 0 4px 18px rgba(6,182,212,0.35);
}

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; transition: background 0.15s;
}
.menu-toggle:hover { background: rgba(6,182,212,0.07); }
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--t-1);
  border-radius: 2px; transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Nav overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(7,25,42,0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 150;
}
.nav-overlay.visible { display: block; }
body.nav-open { overflow: hidden; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 600; font-size: 0.9rem; padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm); transition: all 0.2s ease;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--acc-mid); color: #fff;
  box-shadow: 0 0 0 1px rgba(6,182,212,0.4), 0 6px 24px rgba(6,182,212,0.28);
}
.btn-primary:hover {
  background: var(--acc-light); transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.5), 0 8px 32px rgba(6,182,212,0.38);
}
.btn-ghost {
  background: transparent; color: var(--t-2);
  border: 1px solid var(--bdr);
}
.btn-ghost:hover {
  background: rgba(6,182,212,0.05); color: var(--t-1);
  border-color: rgba(6,182,212,0.3);
}
/* Hero large CTA buttons */
.btn-hero-lg {
  font-size: 1.1rem; padding: 1rem 2.4rem;
  border-radius: 10px;
}
/* Contact section CTA — white button on dark bg */
.btn-contact {
  background: #fff; color: var(--t-1);
  font-weight: 700; font-size: 0.95rem; padding: 0.8rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-contact:hover {
  background: #f0f9ff; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero-section {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; padding: 7rem 0 5rem;
  /* Soft cyan blush from the top — like morning light through water */
  background:
    radial-gradient(ellipse 100% 55% at 50% -5%, rgba(6,182,212,0.1) 0%, transparent 60%),
    #ffffff;
}

/* Animated blobs — much softer on white */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(110px);
  animation: orbFloat 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 700px; height: 700px; opacity: 0.14;
  background: radial-gradient(circle, #22d3ee 0%, #06b6d4 40%, transparent 70%);
  top: -20%; left: -15%; animation-duration: 20s;
}
.orb-2 {
  width: 600px; height: 600px; opacity: 0.09;
  background: radial-gradient(circle, #0284c7 0%, #0369a1 40%, transparent 70%);
  bottom: -18%; right: -12%;
  animation-duration: 14s; animation-delay: -6s;
}
.orb-3 {
  width: 420px; height: 420px; opacity: 0.06;
  background: radial-gradient(circle, #06b6d4 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation-duration: 10s; animation-delay: -9s;
}

/* Dot grid — like a city map from above */
.grid-overlay {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(6,182,212,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 50%, black 20%, transparent 72%);
}

/* Horizontal scan line — subtle radar sweep */
.hero-section::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, var(--acc-mid) 50%, transparent 100%);
  opacity: 0.2;
  animation: scanLine 8s linear infinite;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 860px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.22);
  color: var(--acc); font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  margin-bottom: 2rem; letter-spacing: 0.01em;
}
.badge-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--acc-mid); flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.07;
  margin-bottom: 1.4rem; color: var(--t-1);
}
/* Dark cyan → bright cyan → dark cyan: a beam scanning through text */
.gradient-text {
  background: linear-gradient(
    105deg,
    var(--acc) 0%,
    var(--acc-light) 40%,
    var(--acc) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--t-2);
  max-width: 660px; margin: 0 auto 2.5rem; line-height: 1.78;
}
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.hero-scroll { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--acc));
  animation: scrollDrop 1.9s ease-in-out infinite;
}

/* ── Proof Bar ──────────────────────────────────────────────────────── */
.proof-bar {
  border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
  background: var(--bg-alt); padding: 0.9rem 0;
}
.proof-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.proof-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.84rem; color: var(--t-2); font-weight: 500; }
.proof-item-tags { gap: 0.4rem; }
.proof-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--acc); background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.18rem 0.55rem; border-radius: 999px;
}
.proof-tag-gold { color: #a16207; background: rgba(212,168,67,0.1); border-color: rgba(212,168,67,0.3); }
.proof-tag-blue { color: var(--acc); }
.proof-sep { width: 1px; height: 18px; background: var(--bdr); }

/* ── Section Structure ──────────────────────────────────────────────── */
.section-block  { padding: 6rem 0; scroll-margin-top: 80px; }
.section-alt    { background: var(--bg-alt); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label  {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 0.75rem;
}
.section-label-inv { color: rgba(103,232,249,0.75); }
.section-header h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--t-2); max-width: 600px; margin: 0 auto; line-height: 1.77; }

/* ── Problem ────────────────────────────────────────────────────────── */
.problem-wrap { max-width: 800px; margin: 0 auto; text-align: center; }
.problem-wrap h2 { font-size: clamp(1.7rem, 3.3vw, 2.55rem); margin-bottom: 1.25rem; }
.problem-desc { font-size: 1.05rem; color: var(--t-2); line-height: 1.82; }
.br-hide { display: inline; }

/* ── Pipeline Flowchart ─────────────────────────────────────────────── */
.pipeline-diagram {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}
.pipeline-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 600px;
}
.flow-line {
  stroke-dasharray: 6 4;
  animation: flowDash 1.2s linear infinite;
}
@keyframes flowDash {
  to { stroke-dashoffset: -20; }
}
.feedback-line {
  stroke-dasharray: 8 6;
  animation: feedbackDash 1.8s linear infinite;
}
@keyframes feedbackDash {
  to { stroke-dashoffset: 28; }
}

/* ── Benefits ───────────────────────────────────────────────────────── */
.benefits-grid    { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.benefits-divider { width: 1px; background: var(--bdr); align-self: stretch; margin: 0 3.5rem; }
.benefits-head {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.05rem; font-weight: 700; color: var(--t-1); margin-bottom: 2rem;
}
.benefits-icon-wrap {
  width: 34px; height: 34px; border-radius: var(--radius-xs);
  background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--acc); flex-shrink: 0;
}
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 1.6rem; }
.benefits-list li { display: flex; gap: 1rem; align-items: flex-start; }
.check-icon {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.25);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.check-icon::after {
  content: '✓'; position: absolute;
  font-size: 0.64rem; font-weight: 900; color: var(--acc);
}
.benefits-list strong { display: block; font-size: 0.92rem; margin-bottom: 0.3rem; }
.benefits-list p      { font-size: 0.85rem; color: var(--t-2); margin: 0; line-height: 1.65; }

/* ── People Toggle ──────────────────────────────────────────────────── */
.toggle-header { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-bottom: 2.5rem; }
.toggle-switch { display: inline-flex; cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track {
  position: relative; width: 210px; height: 44px; border-radius: 999px;
  background: rgba(6,182,212,0.05); border: 1px solid var(--bdr);
  display: flex; align-items: center;
}
.tog-opt {
  position: relative; z-index: 1; width: 50%; text-align: center;
  font-size: 0.85rem; font-weight: 600; color: var(--t-3);
  transition: color 0.22s ease; user-select: none; pointer-events: none;
}
.tog-opt.active { color: var(--t-1); }
.toggle-knob {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 8px); height: calc(100% - 8px);
  border-radius: 999px; background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  transition: left 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-switch input:checked + .toggle-track .toggle-knob { left: calc(50% + 4px); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.member-card {
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.3);
  box-shadow: var(--card-shadow-h);
}
.member-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #0369a1 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  letter-spacing: 0.05em; margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(6,182,212,0.3);
}
.member-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.member-card p  { font-size: 0.78rem; color: var(--t-3); margin: 0; }

/* Awards */
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 660px; margin: 0 auto; }
.award-card {
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  display: flex; gap: 1.5rem; align-items: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.award-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.award-gold { border-color: rgba(212,168,67,0.3); background: linear-gradient(140deg, rgba(212,168,67,0.05) 0%, #fff 60%); }
.award-rank      { font-size: 2.1rem; font-weight: 900; color: var(--gold); line-height: 1; flex-shrink: 0; }
.award-rank-blue { font-size: 1.25rem; color: var(--acc); }
.award-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.25rem; }
.award-card p  { font-size: 0.82rem; color: var(--t-3); margin: 0; }

/* ── Contact — deep navy anchor at the base of the page ─────────────── */
.contact-section {
  position: relative; text-align: center; overflow: hidden;
  background: #07192a;  /* deep cool navy — sharp contrast from white */
}
.contact-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(6,182,212,0.12) 0%, transparent 65%);
}
.contact-inner { position: relative; z-index: 1; }
.contact-section .section-label { color: rgba(103,232,249,0.7); }
.contact-section h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); color: #fff;
  margin-bottom: 1rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
.contact-section p {
  font-size: 1.05rem; color: rgba(255,255,255,0.55);
  margin-bottom: 2.2rem; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--bdr); padding: 1.5rem 0; background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-logo  { height: 24px; width: auto; opacity: 0.65; }
.footer-copy  { font-size: 0.8rem; color: var(--t-3); }
.footer-nav   { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.8rem; color: var(--t-3); transition: color 0.15s; }
.footer-nav a:hover { color: var(--t-2); }

/* ── Reveal on Scroll ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.72s ease, transform 0.72s ease; will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Keyframes ──────────────────────────────────────────────────────── */
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -24px) scale(1.04); }
}
@keyframes pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0   rgba(6,182,212,0.5); }
  50%       { opacity: 0.5; box-shadow: 0 0 0 6px rgba(6,182,212,0);   }
}
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes scrollDrop {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  45%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}
@keyframes scanLine {
  0%   { top: -2px;  opacity: 0; }
  5%   { opacity: 0.2; }
  95%  { opacity: 0.2; }
  100% { top: 100vh; opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .team-grid    { grid-template-columns: repeat(3, 1fr); }
  .br-hide      { display: none; }
}
@media (max-width: 860px) {
  .benefits-grid    { grid-template-columns: 1fr; }
  .benefits-divider { display: none; }
}
@media (max-width: 768px) {
  .section-block { padding: 4.5rem 0; }
  .menu-toggle   { display: flex; }
  nav#nav-links  {
    display: none; position: fixed;
    top: 0; right: 0; bottom: 0; width: min(78vw, 290px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--bdr);
    flex-direction: column; padding: 5.5rem 1.25rem 2rem;
    gap: 0.2rem; z-index: 180;
    box-shadow: -4px 0 32px rgba(0,0,0,0.1);
  }
  nav#nav-links.open { display: flex; }
  nav#nav-links a { font-size: 0.95rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); color: var(--t-2); }
  nav#nav-links a.nav-cta { margin-left: 0; margin-top: 0.5rem; color: #fff; }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
  .awards-grid  { grid-template-columns: 1fr; max-width: 420px; }
  .proof-inner  { flex-direction: column; gap: 0.85rem; text-align: center; }
  .proof-sep    { width: 36px; height: 1px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav   { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.1rem; }
  .hero-actions    { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-section::after { display: none; }
  .orb, .badge-pulse, .hero-scroll-line, .gradient-text { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
