/* Public site + portal navigation — mobile-first, iPhone-safe areas */

.gf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(12, 10, 28, 0.92);
  backdrop-filter: blur(12px);
}

.gf-site-header-inner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.5rem 1rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gf-site-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  object-position: left center;
}

.gf-nav-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(100, 116, 139, 0.5);
  color: #e2e8f0;
  background: rgba(17, 11, 41, 0.6);
}

@media (min-width: 1024px) {
  .gf-nav-toggle {
    display: none;
  }
}

.gf-site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.75rem 1rem 1rem;
  background: rgba(12, 10, 28, 0.98);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  flex-direction: column;
  gap: 0.25rem;
}

.gf-site-nav.is-open {
  display: flex;
}

@media (min-width: 1024px) {
  .gf-site-nav {
    display: flex !important;
    position: static;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
  }
}

.gf-site-nav a {
  display: block;
  padding: 0.65rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
}

.gf-site-nav a:hover,
.gf-site-nav a.is-active {
  color: #ea7e5d;
}

.gf-site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gf-nav-investor {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
}

.gf-nav-investor:hover {
  color: #ea7e5d;
}

@media (min-width: 640px) {
  .gf-nav-investor {
    display: inline-block;
  }
}

.gf-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #ea7e5d;
  color: #0c0a1c;
  text-decoration: none;
}

.gf-nav-cta:hover {
  filter: brightness(1.08);
}

.gf-nav-team {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fbbf24;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 0.5rem;
}

.gf-nav-team:hover {
  background: rgba(251, 191, 36, 0.08);
}

/* —— Portal hub (sticky top + iPhone bottom dock) —— */

.gf-portal-page {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

/* Team tab: skip decorative hero so console fills the phone screen */
.gf-portal-team-focus .gf-portal-hero,
.gf-portal-team-focus .gf-portal-hub-intro,
.gf-portal-team-focus .gf-portal-retail,
.gf-portal-team-focus .gf-portal-investor {
  display: none;
}

.gf-portal-team-focus .gf-portal-main {
  padding-top: 0.75rem;
}

@media (min-width: 768px) {
  .gf-portal-page {
    padding-bottom: 0;
  }
}

.gf-portal-topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
  background: rgba(12, 10, 28, 0.96);
  backdrop-filter: blur(12px);
}

.gf-portal-topnav-inner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.gf-portal-topnav a.gf-portal-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  min-height: 2.75rem;
}

.gf-portal-topnav img {
  height: 2.25rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

.gf-portal-topnav-links {
  display: none;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

@media (min-width: 768px) {
  .gf-portal-topnav-links {
    display: flex;
  }
}

.gf-portal-topnav-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
}

.gf-portal-topnav-links a:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.35);
}

.gf-portal-topnav-links a.is-active {
  color: #0c0a1c;
  background: #ea7e5d;
}

.gf-portal-topnav-links a.gf-tab-team.is-active {
  color: #0c0a1c;
  background: #fbbf24;
}

.gf-portal-topnav-links a.gf-tab-team {
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.gf-portal-topnav-links a.gf-tab-team:hover {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.gf-portal-topnav .gf-to-main {
  margin-left: auto;
  font-size: 0.75rem;
  color: #64748b;
  text-decoration: none;
  padding: 0.5rem;
}

.gf-portal-dock-team {
  grid-template-columns: repeat(4, 1fr);
}

.gf-portal-dock-team a {
  font-size: 0.5625rem;
  letter-spacing: 0.02em;
}

.gf-team-tabs,
.gf-team-preview-stages {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
  margin-bottom: 0.5rem;
}

.gf-team-tabs a,
.gf-team-preview-stages a {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
}

.gf-team-tabs a.is-active,
.gf-team-preview-stages a.is-active {
  color: #0c0a1c;
  background: #fbbf24;
  border-color: #fbbf24;
}

.gf-team-tabs a.gf-team-tab-soon {
  opacity: 0.85;
}

.gf-team-top-tabs {
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 767px) {
  .gf-team-top-tabs {
    display: none;
  }
}

.gf-team-preview-frame {
  overflow-x: auto;
}

.gf-dock-soon:not(.is-active) {
  opacity: 0.75;
}

.gf-portal-page.gf-portal-team-only .gf-portal-main {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.gf-portal-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 10, 28, 0.97);
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  backdrop-filter: blur(14px);
}

@media (min-width: 768px) {
  .gf-portal-dock {
    display: none;
  }
}

.gf-portal-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.25rem;
  padding: 0.25rem 0.15rem;
  border-radius: 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.gf-portal-dock a span.gf-dock-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.gf-portal-dock a.is-active {
  color: #0c0a1c;
  background: #ea7e5d;
}

.gf-portal-dock a.gf-dock-team.is-active {
  background: #fbbf24;
}

.gf-portal-dock a.gf-dock-team:not(.is-active) {
  color: #fbbf24;
}

.gf-portal-hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 640px) {
  .gf-portal-hero-actions {
    grid-template-columns: repeat(3, 1fr);
    max-width: 42rem;
  }
}

.gf-portal-hero-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
}

.gf-btn-retail {
  background: #ea7e5d;
  color: #0c0a1c;
}

.gf-btn-investor {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(12, 10, 28, 0.45);
}

.gf-btn-team {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

/* Team console — touch-friendly on phones */
.gf-team-console .gf-touch-btn,
.gf-team-console button[type="submit"],
.gf-team-console a.rounded-lg {
  min-height: 2.75rem;
}

@media (max-width: 767px) {
  .gf-team-console table {
    font-size: 0.6875rem;
  }

  .gf-team-console .gf-team-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .gf-team-console .gf-team-quick a,
  .gf-team-console .gf-team-quick button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
