/**
 * Appily Fortysix — Company Nexus (new layout)
 * Centered hero · story split · category filmstrip · promise cards · dark registry
 */

@keyframes co-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -10px) scale(1.04); }
}
@keyframes co-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(174, 213, 129, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(174, 213, 129, 0); }
}
@keyframes co-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes co-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes co-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes co-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.page-company-nexus {
  --co-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --co-display: 'Syne', var(--font-display), Georgia, serif;
  --co-lime: #AED581;
  --co-coral: #FF7043;
  --co-green: #558B2F;
  --co-teal: #26A69A;
  --co-ink: #263238;
  --co-shadow: 0 22px 55px rgba(38, 50, 56, 0.11);
  --co-shadow-sm: 0 8px 26px rgba(38, 50, 56, 0.07);
  background: #eef2ef;
}
.page-company-nexus .page-main { padding-top: 0; }
.co-nexus { padding-bottom: 3rem; }

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

/* ── Hero ── */
.co-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
  text-align: center;
}
.co-hero-bg {
  position: absolute;
  inset: 0;
  background: #0f1f14;
  pointer-events: none;
  overflow: hidden;
}
.co-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(174, 213, 129, 0.3), transparent 42%),
    radial-gradient(circle at 78% 75%, rgba(255, 112, 67, 0.22), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(38, 166, 154, 0.12), transparent 48%),
    linear-gradient(160deg, #1b3a1f, #0f1f14 58%, #152820);
}
.co-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: co-blob 12s ease-in-out infinite;
}
.co-blob--1 { width: 260px; height: 260px; top: -40px; right: 10%; background: rgba(255, 111, 0, 0.28); }
.co-blob--2 { width: 200px; height: 200px; bottom: -20px; left: 6%; background: rgba(174, 213, 129, 0.26); animation-delay: -4s; }
.co-blob--3 { width: 140px; height: 140px; top: 38%; left: 52%; background: rgba(38, 166, 154, 0.2); animation-delay: -7s; }

.co-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}
.co-crumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.co-crumb a {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.co-crumb a:hover { color: var(--co-lime) !important; }
.co-crumb span[aria-hidden="true"] { opacity: 0.35; }
.co-crumb [aria-current="page"] { color: rgba(255, 255, 255, 0.85); }

.co-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.co-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--co-lime);
  animation: co-pulse 2.4s ease-out infinite;
}
.co-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}
.co-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--co-display);
  font-size: clamp(1.85rem, 4.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.co-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--co-lime), var(--fg-yellow, #FFD54F));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.co-tagline {
  margin: 0 auto 1.25rem;
  max-width: 48ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

/* Brand orb */
.co-brand-orb {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 31, 20, 0.75);
  border: 2px solid rgba(174, 213, 129, 0.35);
  animation: co-float 4s ease-in-out infinite;
}
.co-brand-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(174, 213, 129, 0.25);
  animation: co-orbit 36s linear infinite;
}
.co-brand-orb span:first-of-type { font-size: 1.75rem; line-height: 1; }
.co-brand-orb strong {
  font-family: var(--co-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--co-lime);
  margin-top: 0.15rem;
}
.co-brand-orb small {
  font-size: 0.55rem;
  opacity: 0.5;
  letter-spacing: 0.08em;
}

.co-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.co-stats li {
  padding: 0.55rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}
.co-stats strong {
  display: block;
  font-family: var(--co-display);
  font-size: 1.15rem;
  line-height: 1.1;
}
.co-stats span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── Story split ── */
.co-stage { padding-top: 0.75rem; }

.co-story-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 300px);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
  margin-bottom: 1.25rem;
}
.co-story {
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: var(--co-shadow-sm);
  padding: 1.35rem 1.5rem;
}
.co-story-badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--co-green);
}
.co-story h2 {
  margin: 0 0 0.85rem;
  font-family: var(--co-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--co-ink);
}
.co-story p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--fg-muted, #607D8B);
}
.co-story p:last-child { margin-bottom: 0; }
.co-story-muted { opacity: 0.85; font-style: italic; }

.co-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: sticky;
  top: 1rem;
}
.co-metric {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  background: linear-gradient(165deg, #1a2e1c, #0f1f14);
  color: #fff;
  border: 1px solid rgba(174, 213, 129, 0.12);
  box-shadow: var(--co-shadow-sm);
  animation: co-card-in 0.5s var(--co-ease) both;
  animation-delay: calc(var(--co-i, 0) * 0.08s);
}
.co-metric-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.25rem;
}
.co-metric strong {
  display: block;
  font-family: var(--co-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--co-lime);
  line-height: 1.1;
}
.co-metric span:last-child {
  display: block;
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 0.2rem;
}

/* Category filmstrip */
.co-cats {
  margin-bottom: 1.25rem;
  background: #fff;
  border-radius: 28px;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: var(--co-shadow-sm);
  padding: 1.25rem 0 1.25rem 1.35rem;
  overflow: hidden;
}
.co-cats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-right: 1.35rem;
  margin-bottom: 0.85rem;
}
.co-cats-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--co-green);
}
.co-cats-head h2 {
  margin: 0;
  font-family: var(--co-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--co-ink);
}
.co-cats-hint {
  font-size: 0.72rem;
  color: var(--fg-muted, #607D8B);
  white-space: nowrap;
}
.co-cats-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-right: 1.35rem;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.co-cats-scroll::-webkit-scrollbar { height: 6px; }
.co-cats-scroll::-webkit-scrollbar-thumb { background: rgba(38, 50, 56, 0.15); border-radius: 999px; }

.co-cat-tile {
  flex: 0 0 130px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(174, 213, 129, 0.15), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(38, 50, 56, 0.06);
  text-decoration: none !important;
  color: var(--co-ink) !important;
  text-align: center;
  transition: transform 0.3s var(--co-ease), box-shadow 0.3s;
  animation: co-card-in 0.5s var(--co-ease) both;
  animation-delay: calc(var(--co-i, 0) * 0.05s);
}
.co-cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--co-shadow-sm);
}
.co-cat-icon { font-size: 1.75rem; line-height: 1; }
.co-cat-tile span:last-child {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Promise cards */
.co-promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.co-promise {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: var(--co-shadow-sm);
  animation: co-card-in 0.5s var(--co-ease) both;
  animation-delay: calc(var(--co-i, 0) * 0.07s);
  transition: transform 0.3s var(--co-ease), box-shadow 0.3s;
}
.co-promise:hover {
  transform: translateY(-3px);
  box-shadow: var(--co-shadow);
}
.co-promise-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(174, 213, 129, 0.35), rgba(85, 139, 47, 0.12));
  font-family: var(--co-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--co-green);
}
.co-promise span:last-child {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--co-ink);
  font-weight: 500;
}

/* Registry panel */
.co-registry {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #1a2e1c 0%, #0f1f14 55%, #152820 100%);
  color: #fff;
  border: 1px solid rgba(174, 213, 129, 0.15);
  box-shadow: var(--co-shadow);
  margin-bottom: 1.25rem;
}
.co-registry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(174, 213, 129, 0.06);
}
.co-registry-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--co-lime);
}
.co-registry-head h2 {
  margin: 0;
  font-family: var(--co-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.co-registry-code {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: rgba(174, 213, 129, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--co-lime);
}
.co-registry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
}
.co-reg-cell {
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.co-reg-cell:nth-child(even) { border-right: 0; }
.co-reg-cell.is-wide {
  grid-column: 1 / -1;
  border-right: 0;
}
.co-reg-cell dt {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
.co-reg-cell dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Contact strip */
.co-contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.co-contact-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(38, 50, 56, 0.06);
  box-shadow: var(--co-shadow-sm);
  transition: transform 0.3s var(--co-ease);
}
.co-contact-card:hover { transform: translateY(-2px); }
.co-contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(174, 213, 129, 0.2);
  font-size: 1.1rem;
}
.co-contact-card strong {
  display: block;
  font-family: var(--co-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--co-ink);
  margin-bottom: 0.15rem;
}
.co-contact-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--fg-muted, #607D8B);
  word-break: break-word;
}
.co-contact-card a {
  color: var(--co-green) !important;
  text-decoration: none !important;
  font-weight: 600;
}
.co-contact-card a:hover { text-decoration: underline !important; }

/* Actions */
.co-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding-top: 0.25rem;
}
.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  border: 2px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s var(--co-ease), filter 0.25s, border-color 0.25s;
}
.co-btn--primary {
  background: linear-gradient(135deg, var(--co-green), #33691E);
  color: #fff !important;
  background-size: 200% auto;
}
.co-btn--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  animation: co-shimmer 2s linear infinite;
  background-image: linear-gradient(135deg, var(--co-green), #33691E, var(--co-lime), var(--co-green));
}
.co-btn--ghost {
  background: #fff;
  border-color: var(--fg-border, #ECEFF1);
  color: var(--co-ink) !important;
}
.co-btn--ghost:hover {
  border-color: var(--co-coral);
  color: var(--co-coral) !important;
  transform: translateY(-2px);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .co-story-split { grid-template-columns: 1fr; }
  .co-metrics { position: static; flex-direction: row; flex-wrap: wrap; }
  .co-metric { flex: 1 1 140px; }
}

@media (max-width: 640px) {
  .co-registry-grid { grid-template-columns: 1fr; }
  .co-reg-cell { border-right: 0 !important; }
  .co-actions { flex-direction: column; }
  .co-actions .co-btn { width: 100%; }
  .co-cats-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .co-reveal { transition: none; opacity: 1; transform: none; }
  .co-blob, .co-badge-dot, .co-brand-orb, .co-brand-ring,
  .co-promise, .co-cat-tile, .co-metric { animation: none !important; }
  .co-btn--primary:hover { animation: none; }
  .co-cat-tile:hover, .co-promise:hover, .co-contact-card:hover { transform: none; }
}
