/* Wingwork AI — About Us */

:root {
  --cream: #F5EEE1;
  --cream-deep: #EDE2CC;
  --cream-shadow: #E3D4B6;
  --navy: #1E2A44;
  --navy-soft: #2C3A5A;
  --rust: #C85A3E;
  --rust-deep: #A84428;
  --sky: #7FB5D5;
  --sky-deep: #5A94B8;
  --ink: #2B2B2B;
  --muted: #6B6458;
  --line: #D8C9AC;

  --serif: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;

  --max: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--ink); font-family: var(--sans); }
html { scroll-behavior: smooth; }
body { font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 225, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding .25s ease, border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); padding: 4px 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
  transition: padding .25s ease;
}
.nav.scrolled .nav-inner { padding: 10px 32px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo-mark-img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.footer .logo-mark-img { filter: brightness(1); }

/* --- CHATBOT DEMO --- */
.chatbot-section {
  padding: 120px 0;
  background: var(--cream);
}
.chat-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
}
.chat-placeholder { position: relative; }
.chat-frame {
  background: var(--cream-deep);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: 12px 12px 0 var(--rust);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
}
.chat-head {
  background: var(--navy);
  color: var(--cream);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-head-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(245,238,225,0.3); }
.chat-head-dot:first-child { background: var(--rust); }
.chat-head-title { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.chat-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.chat-bubble { display: flex; gap: 10px; max-width: 82%; align-items: flex-start; }
.chat-bubble.user { margin-left: auto; flex-direction: row-reverse; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--rust); color: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.chat-text { background: var(--cream); border: 1.5px solid var(--navy); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.45; color: var(--navy); }
.chat-bubble.user .chat-text { background: var(--sky); border-color: var(--sky-deep); }
.chat-text.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.chat-text.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); opacity: 0.4; animation: typing 1.3s infinite; }
.chat-text.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-text.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--cream); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.chat-send { width: 32px; height: 32px; border-radius: 50%; background: var(--rust); color: var(--cream); display: grid; place-items: center; font-weight: 700; }
.chat-placeholder-overlay { position: absolute; top: 12px; right: 12px; background: var(--cream); border: 1px dashed var(--navy); border-radius: 6px; padding: 6px 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--navy); text-align: right; z-index: 2; }
.chat-placeholder-tag { font-weight: 700; }
.chat-placeholder-note { font-size: 8px; color: var(--muted); margin-top: 2px; text-transform: uppercase; }
@media (max-width: 820px) {
  .chat-grid { grid-template-columns: 1fr; gap: 40px; }
  .chatbot-section { padding: 80px 0; }
}

.logo-mark--hidden-legacy {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  font-style: italic;
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--rust);
  transition: right .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--pill);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-rust {
  background: var(--rust);
  color: var(--cream);
  box-shadow: 0 2px 0 var(--rust-deep), 0 8px 20px -8px rgba(200, 90, 62, 0.5);
}
.btn-rust:hover { background: var(--rust-deep); box-shadow: 0 2px 0 var(--rust-deep), 0 12px 24px -8px rgba(200, 90, 62, 0.6); }
.btn-sky {
  background: var(--sky);
  color: var(--navy);
  box-shadow: 0 2px 0 var(--sky-deep), 0 8px 20px -8px rgba(127, 181, 213, 0.5);
}
.btn-sky:hover { background: var(--sky-deep); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Mobile menu */
.nav-toggle { display: none; }

/* --- HERO --- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
h1.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(42px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}
h1.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 22px auto 0;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Agent lineup */
.agents {
  margin-top: 72px;
  position: relative;
}
.agents-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.agent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .3s cubic-bezier(.3,1.4,.5,1);
  cursor: default;
}
.agent:hover { transform: translateY(-6px) rotate(-1deg); }
.agent:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }

.agent-fig {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--cream-deep);
  border: 2px solid var(--navy);
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--navy);
  transition: box-shadow .25s ease, transform .25s ease;
}
.agent:hover .agent-fig { box-shadow: 8px 8px 0 var(--rust); }

.agent-fig::before {
  /* striped placeholder fill */
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 10px,
    rgba(30, 42, 68, 0.04) 10px 20px
  );
}

.agent-body {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6%;
}
.agent-glyph { width: 100%; height: 100%; }
.agent-glyph svg { width: 100%; height: 100%; display: block; }

/* Each agent gets a stylized geometric "character" — intentionally abstract, not a cartoon */
.agent-glyph {
  width: 100%;
  height: 100%;
  position: relative;
}

.agent-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 4px;
  position: absolute;
  top: 10px; left: 10px;
  border: 1px solid var(--line);
}

.agent-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}
.agent-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
}
.agent-role {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* --- OUR STORY --- */
.section { padding: 120px 0; }
.section-rule {
  width: 64px;
  height: 4px;
  background: var(--sky);
  border-radius: 2px;
  margin-bottom: 24px;
}
.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 16px;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
h2.section-title em { font-style: italic; font-weight: 400; color: var(--rust); }

.story {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: center;
}

.founder-fig {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--cream-deep);
  border: 2px solid var(--navy);
  position: relative;
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--sky);
}
.founder-fig .founder-shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.founder-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  border-radius: 6px;
}
.founder-caption {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: var(--cream);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  text-transform: uppercase;
}

.story-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 20px;
  text-wrap: pretty;
}
.story-body p:first-of-type { margin-top: 28px; }
.story-body .drop {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--navy);
  font-style: italic;
}
.story-sig {
  margin-top: 32px;
  display: flex; align-items: center; gap: 16px;
}
.sig-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
}
.sig-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* --- TRUST ROW --- */
.trust {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 0;
  position: relative;
}
.trust h2.section-title { color: var(--cream); text-align: center; margin-bottom: 56px; }
.trust .section-rule { background: var(--rust); margin: 0 auto 24px; }
.trust .section-kicker { color: var(--sky); text-align: center; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}
.trust-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 28px;
  position: relative;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 8px rgba(245, 238, 225, 0.1);
}
.trust-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.trust-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 238, 225, 0.72);
  max-width: 280px;
  text-wrap: pretty;
}

/* --- SOCIAL PROOF WALL --- */
.proof {
  background: var(--cream);
  padding: 120px 0 120px;
  overflow: hidden;
}
.proof-head {
  max-width: var(--max);
  margin: 0 auto 56px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.proof-head-copy { max-width: 560px; }
.proof-stats {
  display: flex; gap: 32px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee + .marquee { margin-top: 24px; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 75s; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.win-card {
  flex: 0 0 320px;
  height: 320px;
  background: var(--cream);
  border: 2px solid var(--rust);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.win-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--navy); }
.win-card.sky { border-color: var(--sky-deep); }
.win-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.win-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  white-space: nowrap;
}
.win-card.sky .win-badge { color: var(--sky-deep); }
.win-metric {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.win-metric sub {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  vertical-align: baseline;
  margin-left: 4px;
}
.win-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 10px;
  text-wrap: pretty;
}
.win-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.win-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
}
.win-card.sky .win-avatar { background: var(--sky-deep); }
.win-who-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
}
.win-who-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 238, 225, 0.14);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14px; color: rgba(245, 238, 225, 0.78); transition: color .2s; }
.footer a:hover { color: var(--cream); }
.footer .logo { color: var(--cream); margin-bottom: 14px; }
.footer .logo-mark { background: var(--cream); color: var(--navy); }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(245, 238, 225, 0.75);
  max-width: 320px;
  line-height: 1.5;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 238, 225, 0.5);
  text-transform: uppercase;
}

/* --- TWEAKS PANEL --- */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 300px;
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 8px 8px 0 var(--navy);
  z-index: 100;
  font-family: var(--sans);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tweaks-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
.tweaks-close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-size: 14px;
}
.tweak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink);
}
.tweak-row label { font-weight: 500; }
.tweak-row select, .tweak-row input[type="text"] {
  font-family: var(--sans);
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream-deep);
  color: var(--navy);
  max-width: 140px;
}
.switch {
  width: 38px; height: 22px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: var(--cream);
  border-radius: 50%;
  transition: left .2s;
}
.switch.on { background: var(--rust); }
.switch.on::after { left: 18px; }

/* --- RESPONSIVE --- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--cream);
  }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 24px; }
  .agents-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .agents-row .agent:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
  .agent-name { font-size: 18px; }
  .story {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .founder-fig { max-width: 420px; margin: 0 auto; }
  .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust { padding: 72px 0; }
  .proof { padding: 80px 0; }
  .proof-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .tweaks-panel { right: 12px; left: 12px; width: auto; bottom: 12px; }
}

@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; width: 100%; padding: 0 16px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .container, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .win-card { flex: 0 0 280px; height: 300px; }
}
