/* ============================================
   Night-Liner Group — Stylesheet
   Dark trucker theme with orange accent
============================================ */

:root {
  --bg-1: #0a0d14;
  --bg-2: #11151f;
  --bg-3: #1a1f2c;
  --surface: #161a25;
  --border: #232838;
  --text: #e6e9f0;
  --text-dim: #aab0bd;
  --text-muted: #7a8090;
  --accent: #00d0ff;
  --accent-2: #00d0ff;
  --accent-glow: #00d0ff;
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0; }
h4 { font-size: 1.05rem; margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: 'Montserrat', sans-serif; font-weight: 700; }

p { color: var(--text-dim); }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.btn svg {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px var(--accent-glow);
  color: #fff;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.74rem;
  line-height: 1;
  border-radius: 999px;
}
.btn-discord:hover {
  background: #4752c4;
  color: #fff;
  transform: translateY(-2px);
}
.btn-discord svg {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  width: 18px;
  height: 18px;
}

/* ============= HEADER ============= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 13, 20, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 4px 0;
  gap: 24px;
  max-width: 100%;
  width: 100%;
  min-height: 110px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-right: auto;
  padding-left: 0;
}
.brand-logo {
  width: auto;
  height: 100px;
  max-width: 460px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav > ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 8px 0;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '▾';
  margin-left: 6px;
  font-size: 0.7em;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 180px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-lg);
  display: block;
}
.dropdown li { display: block; }
.dropdown a {
  display: block;
  padding: 10px 16px;
  border-radius: 4px;
}
.dropdown a:hover {
  background: rgba(0,208,255,0.12);
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============= HERO ============= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 110px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,20,0.7) 0%, rgba(10,13,20,0.4) 30%, rgba(10,13,20,0.95) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(0,208,255,0.18), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero .lead {
  font-size: 1.15rem;
  max-width: 720px;
  margin-bottom: 1rem;
  color: #d6dae3;
}
.hero .tagline {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  z-index: 2;
}
.scroll-indicator span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============= SECTIONS ============= */
.section {
  padding: 100px 0;
  position: relative;
}

.intro {
  background: var(--bg-2);
  text-align: center;
}
.intro h2 { max-width: 900px; margin: 0 auto 1.5rem; }
.intro p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ============= PILLARS ============= */
.pillars {
  background: var(--bg-1);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(0,208,255,0.08), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0,208,255,0.06), transparent 50%);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.pillar {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(0,208,255,0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,208,255,0.2);
}
.pillar:hover::before {
  transform: scaleX(1);
}
.pillar-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,208,255,0.15), rgba(255,166,77,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid rgba(0,208,255,0.3);
  transition: all var(--transition);
}
.pillar:hover .pillar-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  transform: scale(1.05);
}
.pillar-icon svg { width: 32px; height: 32px; }

.pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
}
.pill-list li {
  list-style: none;
  padding: 0;
}
.pill-list a {
  display: block;
  background: rgba(0,208,255,0.08);
  color: var(--accent-2);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(0,208,255,0.3);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pill-list a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.pill-list a:hover {
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,208,255,0.35);
}
.pill-list a:hover::before {
  opacity: 1;
}

/* ============= CONVOY ============= */
.convoy {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.convoy .overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,13,20,0.95) 0%, rgba(10,13,20,0.7) 60%, rgba(10,13,20,0.5) 100%);
}
.convoy-content {
  position: relative;
  z-index: 2;
}
.convoy-text { max-width: 640px; }
.convoy-text h2 { margin-bottom: 1.4rem; }
.convoy-text p { font-size: 1.05rem; margin-bottom: 1rem; }
.convoy-text p.strong {
  color: #fff;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ============= PARTNERSHIP ============= */
.partnership {
  background: var(--bg-2);
}
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.partnership-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.partnership-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,208,255,0.15), transparent 60%);
  pointer-events: none;
}
.partnership-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.partnership-img:hover img { transform: scale(1.05); }
.partnership-text p { font-size: 1.05rem; }

/* ============= STATS ============= */
.stats {
  background: var(--bg-1);
  position: relative;
  background-image:
    radial-gradient(ellipse at center top, rgba(0,208,255,0.1), transparent 60%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.stat {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, var(--surface), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.stat:hover {
  border-color: rgba(0,208,255,0.4);
  transform: translateY(-4px);
}
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ============= PARTNERS ============= */
.partners {
  background: var(--bg-2);
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.partner-logo {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  min-width: 280px;
}
.partner-logo:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
.partner-logo img {
  max-height: 80px;
  width: auto;
  filter: brightness(1.1);
}

/* ============= FOOTER ============= */
.site-footer {
  background: #06080d;
  border-top: 1px solid var(--border);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-col .brand { margin-bottom: 18px; }
.footer-col h4 { color: #fff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.socials {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: visible;
}
.social {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  overflow: visible;
}
.social svg,
.social-icon {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  flex-shrink: 0;
}
.social:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
}
/* Tooltip Text */
.social::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  background: #0b0e15;
  color: #ffffff;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 50;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
/* Tooltip Pfeil */
.social::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(6px);
  border: 6px solid transparent;
  border-top-color: #0b0e15;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 51;
}
.social:hover::after,
.social:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============= LEGAL PAGES ============= */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10,13,20,0.85), rgba(10,13,20,1)),
    radial-gradient(ellipse at center, rgba(0,208,255,0.2), transparent 60%);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.page-content {
  padding: 60px 0 100px;
  max-width: 860px;
  margin: 0 auto;
}
.page-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
.page-content h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
  color: #fff;
}
.page-content p, .page-content li {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}
.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 1rem;
}
.page-content ul li { list-style: disc; }
.page-content ol li { list-style: decimal; }

/* career */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.career-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 26px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.career-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.career-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}
.cta-box {
  background: linear-gradient(135deg, rgba(0,208,255,0.15), rgba(255,166,77,0.05));
  border: 1px solid rgba(0,208,255,0.4);
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  margin-top: 50px;
}
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { margin-bottom: 1.6rem; }

/* requirements list */
.req-list {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
  margin: 30px 0;
}
.req-list ul { padding-left: 20px; }
.req-list li {
  margin-bottom: 8px;
  position: relative;
}

/* about page */
.about-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 80px 0;
}
.about-feature.reverse { direction: rtl; }
.about-feature.reverse > * { direction: ltr; }
.about-feature img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-feature h2 { font-size: 2rem; margin-bottom: 1rem; }

/* team page */
.team-intro {
  padding-top: 190px;
  background:
    linear-gradient(180deg, rgba(17, 21, 31, 0.96), rgba(10, 13, 20, 1)),
    radial-gradient(circle at top left, rgba(0, 208, 255, 0.14), transparent 42%);
}
.team-intro-copy {
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}
.team-intro-copy p {
  font-size: 1.05rem;
}
.team-meta {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-section {
  background:
    radial-gradient(ellipse at top, rgba(0, 208, 255, 0.08), transparent 55%),
    var(--bg-2);
}
.gallery-intro-copy {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 42px;
}
.gallery-meta {
  font-size: 1rem;
  color: var(--text-dim);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.gallery-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 208, 255, 0.4);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 208, 255, 0.14);
}
.gallery-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(0, 208, 255, 0.25), transparent 52%),
    linear-gradient(180deg, #101522, #0a0d14);
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-card:hover .gallery-card-media img {
  transform: scale(1.06);
}
.gallery-card-body {
  padding: 22px 22px 24px;
}
.gallery-card-body h3 {
  margin-bottom: 0.5rem;
}
.gallery-card-body p {
  font-size: 0.96rem;
}
.gallery-card--placeholder .gallery-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-tree-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 208, 255, 0.1), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(0, 208, 255, 0.08), transparent 28%),
    var(--bg-1);
}
.team-tree {
  max-width: 1280px;
  margin: 0 auto;
}
.team-org-chart {
  display: grid;
  gap: 40px;
  justify-items: center;
}
.team-chain {
  position: relative;
  display: grid;
  gap: 30px;
  justify-items: center;
}
.team-chain-node {
  position: relative;
}
.team-chain-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 30px;
  transform: translateX(-50%);
  background: rgba(0, 208, 255, 0.82);
}
.team-pairs {
  position: relative;
  display: grid;
  gap: 26px;
  width: min(100%, 940px);
  padding-top: 26px;
}
.team-pairs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 26px;
  transform: translateX(-50%);
  background: rgba(0, 208, 255, 0.82);
}
.team-pair-row {
  position: relative;
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  gap: 52px;
  align-items: start;
}
.team-pair-row::after {
  content: "";
  position: absolute;
  top: -26px;
  left: calc((var(--team-left-width) / 2) + var(--team-left-shift, 0px));
  right: calc((var(--team-right-width) / 2) - var(--team-right-shift, 0px));
  height: 2px;
  background: rgba(0, 208, 255, 0.82);
}
.team-pair-card {
  position: relative;
  display: flex;
  justify-content: center;
  width: var(--team-card-width);
  transform: translateX(var(--team-card-shift, 0px));
}
.team-pair-card::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 2px;
  height: 26px;
  transform: translateX(-50%);
  background: rgba(0, 208, 255, 0.82);
}
.team-role {
  display: grid;
  gap: 14px;
  width: var(--team-role-width, 250px);
  min-width: 250px;
  max-width: 760px;
  padding: 18px 18px;
  border: 1px solid rgba(0, 208, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(22, 26, 37, 0.96), rgba(10, 13, 20, 0.98)),
    var(--surface);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.team-role:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 208, 255, 0.34);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 208, 255, 0.12);
}
.team-role--compact {
  min-width: 260px;
}
.team-role--wide {
  min-width: 360px;
}
.team-role--xwide {
  min-width: 430px;
}
.team-role-header {
  text-align: center;
}
.team-role-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.05;
}
.team-members {
  display: grid;
  grid-template-columns: repeat(var(--team-cols, 1), minmax(150px, 1fr));
  gap: 10px;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: auto;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  text-align: center;
  justify-content: flex-start;
}
.team-member:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 208, 255, 0.35);
  background: rgba(0, 208, 255, 0.06);
}
.team-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 208, 255, 0.3), rgba(0, 208, 255, 0.08));
  border: 1px solid rgba(0, 208, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-member-copy {
  min-width: 0;
}
.team-member-copy h3 {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: #fff;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.team-empty,
.team-state {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 208, 255, 0.3);
  background: rgba(0, 208, 255, 0.05);
  color: var(--text-dim);
  text-align: center;
}
.team-state {
  max-width: 980px;
  margin: 0 auto;
}
.team-state code {
  color: #fff;
}

/* ============= REVEAL ANIMATIONS ============= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .partnership-grid, .about-feature { grid-template-columns: 1fr; gap: 40px; }
  .about-feature.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header-inner { min-height: 80px; }
  .brand-logo { height: 64px; max-width: 220px; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 90px 30px 30px;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    transition: right var(--transition);
    overflow-y: auto;
    gap: 0;
  }
  .main-nav.open { right: 0; }
  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
  }
  .main-nav a {
    padding: 14px 0;
    display: block;
    font-size: 1.05rem;
  }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding-left: 16px;
    padding-bottom: 8px;
  }
  .has-dropdown:hover .dropdown { transform: none; }
  .btn-discord { margin-top: 20px; align-self: flex-start; }

  .convoy { background-attachment: scroll; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 70px 0; }
  .hero { min-height: 90vh; }
  .pillars-grid { grid-template-columns: 1fr; }
  .team-tree {
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .team-tree::-webkit-scrollbar {
    height: 8px;
  }
  .team-tree::-webkit-scrollbar-thumb {
    background: rgba(0, 208, 255, 0.3);
    border-radius: 999px;
  }
  .team-pairs {
    width: max-content;
    min-width: 100%;
  }
  .team-pair-row {
    gap: 28px;
  }
  .team-role {
    width: 220px;
    min-width: 220px;
    max-width: none;
  }
  .team-role--compact {
    min-width: 240px;
  }
  .team-role--wide {
    min-width: 300px;
  }
  .team-role--xwide {
    min-width: 360px;
  }
  .team-members {
    grid-template-columns: repeat(var(--team-cols, 1), minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 8px 16px 8px 0; min-height: 70px; }
  .brand-logo { height: 54px; max-width: 180px; }
  .brand-name { font-size: 1.1rem; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }
  .team-intro {
    padding-top: 140px;
  }
  .team-org-chart {
    justify-items: start;
  }
  .team-role {
    width: 180px;
    min-width: 180px;
    padding: 16px 12px;
  }
  .team-role--compact {
    min-width: 210px;
  }
  .team-role--wide {
    min-width: 250px;
  }
  .team-role--xwide {
    min-width: 290px;
  }
  .team-pair-row {
    gap: 18px;
  }
  .team-members {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
  .team-member {
    padding: 12px 10px;
  }
}
