/* Work Wingman design tokens */
:root {
  --bg: #f2efe9;
  --panel: #faf8f4;
  --card: #ffffff;
  --ink: #1c1a17;
  --mut: rgba(28, 26, 23, 0.72);
  --faint: rgba(28, 26, 23, 0.64);
  --line: rgba(28, 26, 23, 0.12);
  --ctrlline: rgba(28, 26, 23, 0.5);
  --acc: #2b6e58;
  --warn: #a05c2b;
  --btn: #1c1a17;
  --btntext: #fff;
  --brand: #e8a04d;
  --brandtext: #a05c2b;
  --logo-tile: #1c1a17;
  --logo-a: #e8a04d;
  --logo-b: #a05c2b;
  --logo-c: #63bd97;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151310;
    --panel: #1b1915;
    --card: #232019;
    --ink: #ece7dd;
    --mut: rgba(236, 231, 221, 0.62);
    --faint: rgba(236, 231, 221, 0.52);
    --line: rgba(236, 231, 221, 0.14);
    --ctrlline: rgba(236, 231, 221, 0.42);
    --acc: #63bd97;
    --warn: #dba064;
    --btn: #ece7dd;
    --btntext: #1c1a17;
    --brand: #e8a04d;
    --brandtext: #e8a04d;
    --logo-tile: #ece7dd;
    --logo-a: #e8a04d;
    --logo-b: #c9762f;
    --logo-c: #63bd97;
  }
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-top: 70px; /* Space for sticky nav */
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Nav Bar */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.nav-brand svg {
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  font-weight: 500;
  font-size: 15px;
}

.nav-item > a {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item:hover .dropdown {
  display: flex;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 0;
  flex-direction: column;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown a {
  padding: 8px 16px;
  font-size: 14px;
}
.dropdown a:hover {
  background: var(--panel);
}

.btn-open-app {
  background: var(--brand);
  color: var(--btntext);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.btn-open-app:hover {
  opacity: 0.9;
}

/* Base elements */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', serif;
  margin-top: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

/* Index Page specific */
.hero {
  text-align: center;
  padding: 60px 0;
}
.hero-mark svg {
  margin: 0 auto;
}
.wordmark {
  font-size: 48px;
  margin: 24px 0 16px;
  color: var(--ink);
}
.taglines-container {
  height: 40px;
  position: relative;
  overflow: hidden;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--brandtext);
  margin-bottom: 24px;
}
.tagline {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: rotateTaglines 5.2s infinite;
}
.taglines-container:hover .tagline {
  animation-play-state: paused;
}
.t1 { animation-delay: 0s; }
.t2 { animation-delay: 2.6s; }

@keyframes rotateTaglines {
  0% { opacity: 0; transform: translateY(10px); }
  5% { opacity: 1; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.helper-subtitle {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 18px;
  color: var(--mut);
}
.helper-abbr {
  text-decoration-style: dotted;
  text-decoration-line: underline;
  text-decoration-color: var(--brandline);
  cursor: help;
  font-weight: 600;
  color: var(--ink);
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  background: var(--panel);
}

.big-3 {
  display: flex;
  gap: 24px;
  margin: 60px 0;
}
.pillar-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  cursor: default;
}
.pillar-card:hover {
  border-color: var(--brandline);
  box-shadow: 0 4px 12px rgba(232, 160, 77, 0.1);
}
.pillar-content {
  margin-bottom: 12px;
}
.pillar-content .lead {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.pillar-content .sub {
  color: var(--mut);
  font-size: 15px;
}
.pillar-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s;
  color: var(--faint);
  font-size: 14px;
}
.pillar-card:hover .pillar-detail {
  max-height: 100px;
  opacity: 1;
}

.mission-vision-container {
  display: flex;
  gap: 24px;
  margin: 60px 0;
}
.mv-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mv-header {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: system-ui;
}
.mv-header.teal { color: var(--acc); }
.mv-header.amber { color: var(--brand); }

.mv-body {
  color: var(--mut);
  font-size: 16px;
}
.mv-full {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s;
  margin-top: 12px;
}
.mv-card:hover .mv-full {
  max-height: 150px;
  opacity: 1;
}

.spotlights {
  margin: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.statement-spotlight, .team-spotlight {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.stmt-cycle, .team-cycle {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stmt, .t-stmt {
  position: absolute;
  width: 100%;
  opacity: 0;
  animation-duration: 9s; /* 3 items, 3s each */
  animation-iteration-count: infinite;
}
.statement-spotlight:hover .stmt, .team-spotlight:hover .t-stmt {
  animation-play-state: paused;
}
/* Stmt animations - 3 items */
.stmt1 { animation-name: rot3; animation-delay: 0s; }
.stmt2 { animation-name: rot3; animation-delay: 3s; }
.stmt3 { animation-name: rot3; animation-delay: 6s; }

@keyframes rot3 {
  0% { opacity: 0; }
  5% { opacity: 1; }
  28% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}

.stmt h3 {
  margin-bottom: 12px;
  color: var(--ink);
}
.stmt p {
  color: var(--mut);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Team animations - 2 items for MVP */
.t-stmt1 { animation-name: rot2; animation-delay: 0s; }
.t-stmt2 { animation-name: rot2; animation-delay: 4s; }

@keyframes rot2 {
  0% { opacity: 0; }
  5% { opacity: 1; }
  45% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}
.team-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brandline);
}
.team-teaser {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.team-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s;
  color: var(--faint);
  margin-top: 8px;
}
.team-spotlight:hover .team-detail {
  max-height: 60px;
  opacity: 1;
}

.badges {
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  margin: 60px 0 20px;
}

/* Team Page */
.team-page {
  padding: 24px 0;
}
.mission-sentence {
  font-size: 18px;
  color: var(--mut);
  margin-bottom: 40px;
  max-width: 700px;
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.roster-member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.roster-member .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.roster-member .ai-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}
.member-info h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-family: system-ui;
}
.member-info .title {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.4;
}
.mut { color: var(--mut); }

/* Docs Page */
.docs-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.doc-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.doc-cat.locked {
  cursor: not-allowed;
  opacity: 0.8;
}
.doc-cat .icon {
  font-size: 24px;
}

@media (max-width: 768px) {
  .big-3, .mission-vision-container {
    flex-direction: column;
  }
}