@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #e2e5ec;
  --primary-glow: rgba(226, 229, 236, 0.45);
  --primary-dim: rgba(226, 229, 236, 0.12);
  --bg: #0b0e12;
  --bg-elevated: rgba(15, 18, 22, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(226, 229, 236, 0.28);
  --text: #ffffff;
  --text-dim: #888888;
  --text-muted: rgba(226, 229, 236, 0.55);
  --green: #22c55e;
  --red: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 14% 8%, rgba(225, 230, 236, 0.09), transparent 42%),
    radial-gradient(ellipse at 88% 92%, rgba(185, 192, 202, 0.07), transparent 46%),
    linear-gradient(145deg, #101215 0%, #090b0e 52%, #111316 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

.page-main {
  position: relative;
  z-index: 2;
}

.page-main-padded {
  padding-top: calc(var(--nav-h) + 32px);
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
}

.section-head-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-dim) 0%, transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.35s var(--ease);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-nav.scrolled {
  background: rgba(9, 11, 14, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.brand span {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-dim);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s,
    background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 24px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(226, 229, 236, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--primary);
}

.btn-discord {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.35);
  color: #c7cdff;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.28);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 56px) 0 80px;
}

.hero-home {
  padding-bottom: 48px;
}

.hero-home .container {
  width: min(1240px, calc(100% - 40px));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 40px;
  align-items: center;
}

.hero-home .hero-visual {
  min-width: 0;
}

.hero-home .app-frame {
  padding: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.eyebrow .pill {
  background: var(--primary-dim);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 229, 236, 0.18);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.stat {
  min-width: 120px;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
}

.app-frame {
  background: linear-gradient(155deg, rgba(18, 22, 28, 0.95), rgba(10, 12, 15, 0.92));
  border: 1px solid rgba(226, 229, 236, 0.12);
  border-radius: 18px;
  padding: 12px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(226, 229, 236, 0.05) inset;
  transform: perspective(900px) rotateY(-5deg) rotateX(3deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.app-frame:hover {
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(226, 229, 236, 0.06);
}

.app-frame-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.app-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.app-frame-bar span:first-child {
  background: #ff5f57;
}

.app-frame-bar span:nth-child(2) {
  background: #febc2e;
}

.app-frame-bar span:nth-child(3) {
  background: #28c840;
}

.app-frame .app-preview {
  border-radius: 12px;
  width: 100%;
  min-height: 520px;
}

.app-frame img {
  border-radius: 12px;
  width: 100%;
}

.hero-glow {
  position: absolute;
  inset: 10% -10% -20%;
  background: radial-gradient(circle, var(--primary-dim), transparent 65%);
  z-index: -1;
  filter: blur(8px);
}

/* Sections */
section {
  padding: 72px 0;
  scroll-margin-top: var(--nav-h);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.35s var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card.featured {
  border-color: rgba(226, 229, 236, 0.22);
  box-shadow: 0 0 40px rgba(226, 229, 236, 0.06);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #000;
}

.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-dim);
  border: 1px solid rgba(226, 229, 236, 0.15);
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.plan-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 20px;
}

.plan-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.plan-block {
  margin-bottom: 18px;
}

.plan-block h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-list li {
  font-size: 0.9rem;
  color: #c8cdd5;
  padding-left: 22px;
  position: relative;
}

.plan-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.plan-list.results li::before {
  content: '✓';
  color: var(--primary);
}

.plan-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pay-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Showcase */
.showcase-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.showcase-features .feature-mini {
  height: 100%;
  min-height: 0;
}

.video-shell {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0e12;
  position: relative;
  isolation: isolate;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0b0e12;
  text-decoration: none;
  color: inherit;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.25s var(--ease), transform 0.5s var(--ease);
}

.video-facade:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(226, 229, 236, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #0b0e12;
}

.video-facade:hover .video-play {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(226, 229, 236, 0.25);
}

.video-facade-label {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(226, 229, 236, 0.22);
  pointer-events: none;
}

.feature-mini {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-mini-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-dim);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.feature-mini p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.feature-mini strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

/* Changelog */
.changelog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.changelog-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.version-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(226, 229, 236, 0.2);
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-list li {
  font-size: 0.88rem;
  color: #c8cdd5;
  padding-left: 20px;
  position: relative;
}

.changelog-list li.add::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.changelog-list li.remove::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* Team — tiered layout */
.team-page {
  padding-bottom: 64px;
}

.team-tier {
  margin-bottom: 40px;
}

.team-tier-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.team-tier-label-muted {
  color: var(--text-muted);
}

.team-tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.team-tier-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.team-directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.team-director-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
}

.team-director-link:hover {
  transform: translateY(-6px);
}

.team-director-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.team-director-link-static {
  cursor: default;
}

.team-director-link-static:hover {
  transform: none;
}

.team-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.team-management-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
  opacity: 0.72;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 229, 236, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
}

.team-management-grid::-webkit-scrollbar {
  height: 6px;
}

.team-management-grid::-webkit-scrollbar-thumb {
  background: rgba(226, 229, 236, 0.2);
  border-radius: 999px;
}

.team-management-grid .team-card-management {
  flex: 0 0 auto;
  width: 132px;
  min-width: 132px;
}

.team-dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.team-watermark {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  line-height: 1;
}

.team-card-director {
  position: relative;
  text-align: center;
  padding: 38px 26px 34px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(20, 24, 30, 0.96), rgba(10, 12, 16, 0.94)) padding-box,
    linear-gradient(135deg, rgba(226, 229, 236, 0.45), rgba(226, 229, 236, 0.06) 45%, rgba(120, 128, 140, 0.2)) border-box;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(226, 229, 236, 0.06);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s;
}

.team-director-link:hover .team-card-director {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(226, 229, 236, 0.14);
}

.team-card-director-lead {
  background:
    linear-gradient(160deg, rgba(24, 28, 36, 0.98), rgba(12, 14, 18, 0.95)) padding-box,
    linear-gradient(135deg, rgba(226, 229, 236, 0.55), rgba(88, 101, 242, 0.15) 50%, rgba(226, 229, 236, 0.2)) border-box;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 56px rgba(226, 229, 236, 0.1);
}

.team-card-shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(226, 229, 236, 0.07) 50%,
    transparent 58%
  );
  transform: translateX(-30%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.team-director-link:hover .team-card-shine {
  transform: translateX(30%);
}

.team-discord-hint {
  display: block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.team-director-link:hover .team-discord-hint {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary);
}

.team-avatar-director {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 3px solid rgba(226, 229, 236, 0.4);
  box-shadow:
    0 0 0 4px rgba(226, 229, 236, 0.06),
    0 0 44px var(--primary-glow);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.team-director-link:hover .team-avatar-director {
  transform: scale(1.04);
  box-shadow:
    0 0 0 6px rgba(226, 229, 236, 0.1),
    0 0 56px rgba(226, 229, 236, 0.35);
}

.team-card-director-lead .team-avatar-director {
  width: 132px;
  height: 132px;
}

.team-rank-line {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.team-card-director-lead .team-rank-line {
  color: var(--primary);
}

.team-name-director {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin-bottom: 14px;
}

.team-card-management {
  position: relative;
  text-align: center;
  padding: 12px 10px 11px;
  transform: scale(0.96);
  opacity: 0.82;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(10, 12, 15, 0.65);
}

.team-card-management .team-watermark {
  font-size: 2rem;
  right: 8px;
  bottom: 6px;
}

.team-avatar-management {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-name-management {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: lowercase;
  margin-bottom: 2px;
  color: #b0b5bd;
}

.team-card-management .team-subtitle {
  font-size: 0.68rem;
  margin-bottom: 6px;
  color: #666;
}

.team-card-management .team-pill {
  font-size: 0.58rem;
  padding: 3px 8px;
  letter-spacing: 0.08em;
}

.team-card-dev {
  position: relative;
  text-align: center;
  padding: 28px 20px 24px;
}

.team-avatar-dev {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid rgba(226, 229, 236, 0.2);
  box-shadow: 0 0 20px rgba(226, 229, 236, 0.12);
}

.team-name-dev {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 4px;
}

.team-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.team-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.team-pill-director {
  background: rgba(226, 229, 236, 0.14);
  color: var(--primary);
  border-color: rgba(226, 229, 236, 0.28);
}

.team-pill-management {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
}

.team-pill-dev {
  background: rgba(88, 101, 242, 0.16);
  color: #b8c0ff;
  border-color: rgba(88, 101, 242, 0.35);
}

.team-empty {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 24px;
  text-align: center;
  grid-column: 1 / -1;
}

.team-empty-sm {
  font-size: 0.82rem;
  padding: 12px;
}

.team-skeleton-lg {
  min-height: 220px;
}

.team-page-cta {
  text-align: center;
  margin-top: 24px;
}

/* Legacy team grid (unused) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.team-card {
  text-align: center;
  padding: 28px 20px;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 2px solid rgba(226, 229, 236, 0.25);
  object-fit: cover;
  box-shadow: 0 0 24px var(--primary-glow);
}

.team-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.team-role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.team-role.owner {
  background: rgba(226, 229, 236, 0.18);
  color: var(--primary);
}

.team-role.director {
  background: rgba(226, 229, 236, 0.12);
  color: #d4d8e0;
  border: 1px solid rgba(226, 229, 236, 0.22);
}

.team-role.management {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.team-sync-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 20px;
}

.team-skeleton {
  animation: pulse 1.4s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  min-height: 180px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

/* Terms */
.terms-card {
  max-width: 720px;
  margin: 0 auto;
}

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.terms-list li {
  font-size: 0.92rem;
  color: #c8cdd5;
  padding: 14px 16px 14px 44px;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.terms-list li::before {
  content: '§';
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--primary);
  font-weight: 700;
}

/* Footer mega */
.site-footer-mega {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-mega-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-blurb {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 320px;
}

.footer-discord-btn {
  width: fit-content;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: #c8cdd5;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Home trust & reviews */
.trust-band {
  padding: 8px 0 56px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trust-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.trust-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.trust-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 8px 0 10px;
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.reviews-section {
  padding: 24px 0 64px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 22px;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card p {
  font-size: 0.9rem;
  color: #c8cdd5;
  margin-bottom: 14px;
  line-height: 1.55;
}

.review-author {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.reviews-footnote {
  text-align: center;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.home-cta {
  padding: 24px 0 72px;
}

.home-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.home-cta-inner h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.home-cta-inner p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer (legacy compact) */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .showcase-features,
  .plans-grid,
  .changelog-grid,
  .trust-grid,
  .reviews-grid,
  .footer-mega-grid {
    grid-template-columns: 1fr;
  }

  .team-card-management {
    transform: none;
  }

  .app-frame {
    transform: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: rgba(9, 11, 14, 0.95);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-cta .btn {
    width: 100%;
  }
}
