/* ── Reset / Base ──────────────────────────────────────────────── */

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

html, body {
  overflow-x: hidden;
}

body {
  background-color: #050505;
  color: #f5f5f5;
  font-family: 'Inter', -apple-system, sans-serif;
  margin: 0;
  min-height: 100vh;
}

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

/* ── Animated Background ───────────────────────────────────────── */

.network-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.network-lines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.45;
}

.line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,1), transparent);
  box-shadow: 0 0 12px rgba(255,255,255,0.8);
  animation: networkMove linear infinite;
}
.line-1 { width: 500px; top: 18%; left: -20%; --rotate: 12deg;  animation-duration: 8s; }
.line-2 { width: 700px; top: 52%; left: -30%; --rotate: -8deg;  animation-duration: 11s; }
.line-3 { width: 450px; top: 70%; left:  10%; --rotate: 20deg;  animation-duration: 9s; }
.line-4 { width: 600px; top: 35%; left:  40%; --rotate: -18deg; animation-duration: 10s; }

@keyframes networkMove {
  0%   { transform: translateX(0)     rotate(var(--rotate)); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(500px) rotate(var(--rotate)); opacity: 0; }
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 16px rgba(255,255,255,0.5);
  animation: twinkle infinite ease-in-out;
}
.star::before, .star::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: rgba(255,255,255,0.8);
  transform: translate(-50%, -50%);
}
.star::before { width: 12px; height: 1px; }
.star::after  { width: 1px;  height: 12px; }

.s1 { top: 12%; left: 15%; animation-duration: 2s; }
.s2 { top: 28%; left: 75%; animation-duration: 3s; }
.s3 { top: 68%; left: 22%; animation-duration: 2.5s; }
.s4 { top: 48%; left: 84%; animation-duration: 4s; }
.s5 { top: 36%; left: 50%; animation-duration: 3.5s; }
.s6 { top: 82%; left: 60%; animation-duration: 2.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.5); }
}

.gem-nodes {
  position: fixed;
  inset: 0;
  z-index: 1;
  filter: blur(45px);
  opacity: 0.7;
  pointer-events: none;
}

.node {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
  animation: nodeMove 10s infinite alternate ease-in-out;
  will-change: transform;
}
.node-1 { top: -10%;  left: -10%; animation-delay: 0s; }
.node-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, rgba(120,180,255,0.35) 0%, transparent 70%); animation-delay: -5s; }
.node-3 { top: 45%; left: 45%; width: 30vw; height: 30vw; animation-duration: 14s; animation-delay: -10s; }

@keyframes nodeMove {
  0%   { transform: translate(0,   0)    scale(1); }
  50%  { transform: translate(18%, 20%)  scale(1.12); }
  100% { transform: translate(-15%,-12%) scale(0.88); }
}

/* ── Shimmer ───────────────────────────────────────────────────── */

.shimmer {
  background: linear-gradient(90deg, #777 0%, #fff 50%, #777 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* ── Layout ────────────────────────────────────────────────────── */

.egem-container {
  max-width: 1152px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* ── Nav ───────────────────────────────────────────────────────── */

/* Override layout_start nav wrapper */
nav.navbar { display: none !important; }

.egem-nav {
  position: relative;
  z-index: 100;
  padding: 40px 0;              /* py-10 */
}

.egem-nav .egem-container {
  display: flex;
  align-items: center;
  justify-content: center;      /* justify-center on mobile */
}

.egem-brand {
  font-size: 1.25rem;           /* text-xl */
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #ffffff;
}

.egem-brand-sub { color: #a3a3a3; }

/* ── Hero ──────────────────────────────────────────────────────── */

.egem-hero {
  position: relative;
  z-index: 10;
  padding: 40px 0 48px;              /* py-12 */
}

.egem-hero .egem-container {
  max-width: 896px;             /* max-w-4xl */
  padding-top: 0;
  padding-bottom: 0;
}

.egem-h1 {
  font-size: 2.25rem;           /* text-4xl */
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;    /* tracking-tight */
  line-height: 1.25;
  margin: 0 0 32px;             /* mb-8 */
}

.egem-lead {
  font-size: 1.125rem;          /* text-lg */
  color: #d4d4d4;
  line-height: 1.625;
  max-width: 672px;             /* max-w-2xl */
  margin: 0 auto 48px;         /* mb-12 */
}

.egem-cta {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #ffffff;
  padding: 16px 20px;           /* py-4 px-10 */
  font-size: 0.875rem;          /* text-sm */
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.5s;
  cursor: pointer;
}

.egem-cta:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ── Two-column ────────────────────────────────────────────────── */

.egem-two-col {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 64px 0;              /* py-16 */
}

.egem-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.egem-section-label {
  color: #ffffff;
  font-size: 0.875rem;          /* text-sm */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 16px;             /* mb-4 */
}

.egem-body-text {
  color: #d4d4d4;
  line-height: 1.625;
  margin: 0;
}

/* ── Glass Section ─────────────────────────────────────────────── */

.egem-glass-section {
  position: relative;
  z-index: 10;
  padding: 64px 0 100px;         /* py-16 mb-12 */
}

.glass-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px;                /* p-10 */
  text-align: center;
  overflow: hidden;
}

.egem-protocol-label {
  font-size: 0.625rem;          /* text-[10px] */
  font-weight: 700;
  color: #a3a3a3;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 0 0 48px;             /* mb-12 */
}

.egem-marketplaces {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0.8;
  margin-bottom: 48px;
}

.egem-marketplaces span {
  font-size: 1.25rem;           /* text-xl */
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.egem-protocol-sub {
  font-size: 0.75rem;           /* text-xs */
  color: #a3a3a3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  max-width: 384px;             /* max-w-sm */
  margin: 0 auto;
  line-height: 1.625;
}

/* ── Signal Bar ────────────────────────────────────────────────── */

.egem-signal-spacer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 100px;
  text-align: center;
}

.egem-signal-status {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin: 0 0 20px;
}

.egem-signal-cta {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5);
  color: #ffffff;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.egem-signal-cta:hover {
  background: #ffffff;
  color: #000000;
}

.egem-signal-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 16px 0 0;
}

/* ── Footer ────────────────────────────────────────────────────── */

footer.egem-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 24px;           /* py-12 */
}

.egem-footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.egem-footer-copy {
  font-size: 0.75rem;           /* text-xs */
  color: #d4d4d4;
  order: 2;
}

.egem-footer-tag {
  font-size: 0.625rem;          /* text-[10px] */
  color: #a3a3a3;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  order: 1;
}

/* ── Modal ─────────────────────────────────────────────────────── */

.egem-modal-content {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: #f5f5f5;
}

.egem-modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px 28px 20px;
}

.egem-modal-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.egem-modal-body {
  padding: 28px;
}

.egem-form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin-bottom: 8px;
  display: block;
}

.egem-form-control {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  color: #f5f5f5 !important;
  font-size: 0.9rem;
  padding: 12px 14px;
  transition: border-color 0.3s;
}

.egem-form-control::placeholder {
  color: rgba(255,255,255,0.3);
}

.egem-form-control:focus {
  outline: none;
  box-shadow: none !important;
  border-color: rgba(255,255,255,0.4) !important;
  background: rgba(255,255,255,0.06) !important;
}

.egem-form-submit {
  display: block;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #ffffff;
  padding: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  border-radius: 0;
  margin-top: 8px;
}

.egem-form-submit:hover {
  background: #ffffff;
  color: #000000;
}

.egem-form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.form-status.success {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}

.form-status.error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .egem-nav { padding: 64px 0; }          /* md:py-16 */
  .egem-nav .egem-container { justify-content: flex-start; } /* md:justify-start */
  .egem-hero { padding: 60px 0 80px; }         /* md:py-20 */
  .egem-h1 { font-size: 4.5rem; }         /* md:text-7xl */
  .egem-lead { font-size: 1.25rem; }      /* md:text-xl */
  .egem-two-col { padding: 96px 0; }      /* md:py-24 */
  .egem-grid-2 { grid-template-columns: 1fr 1fr; gap: 96px; }
  .egem-glass-section { padding: 64px 0 120px; }
  .glass-panel { padding: 64px; }         /* md:p-16 */
  .egem-marketplaces { flex-direction: row; gap: 80px; }
  .egem-marketplaces span { font-size: 1.5rem; } /* md:text-2xl */
  .egem-footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .egem-footer-copy { order: 1; }
  .egem-footer-tag { order: 2; }
}
