/* SolCon Worldwide — clean minimal landing */
:root {
  --void: #0a0b0f;
  --ink: #f4f7ff;
  --muted: rgba(210, 218, 235, 0.78);
  --cyan: #00f5d4;
  --magenta: #dc3cff;
  --blue: #38bdf8;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

#glcanvas,
#inkcanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#glcanvas {
  z-index: 0;
}

#inkcanvas {
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.88;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    90% 70% at 50% 42%,
    transparent 0%,
    rgba(10, 11, 15, 0.2) 52%,
    rgba(5, 5, 8, 0.72) 100%
  );
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

html.no-webgl body {
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(0, 245, 212, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 45% at 75% 60%, rgba(220, 60, 255, 0.12), transparent 50%),
    var(--void);
}

html.no-webgl #glcanvas,
html.no-webgl #inkcanvas {
  display: none;
}

/* Header — simple, no glass */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  animation: fadeIn 0.8s var(--ease) both;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-brand img {
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 12px rgba(0, 245, 212, 0.35));
}

.topbar-brand span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.topbar-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  transition: color 0.15s;
}

.topbar-x:hover {
  color: var(--ink);
}

/* Center stage — no card, open over fractal */
.stage {
  position: relative;
  z-index: 10;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 96px 24px 48px;
  text-align: center;
}

.mark {
  width: 96px;
  height: 96px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: markIn 1s var(--ease) both;
}

/* Floating mark — transparent, no square plate */
.mark.logo-float {
  width: min(220px, 48vw);
  height: min(220px, 48vw);
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  filter:
    drop-shadow(0 0 28px rgba(0, 245, 212, 0.35))
    drop-shadow(0 0 56px rgba(220, 60, 255, 0.18))
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.4));
  margin-bottom: 2px;
}

.kinetic-word {
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  white-space: nowrap;
  filter: drop-shadow(0 12px 48px rgba(0, 0, 0, 0.55));
  transition: filter 0.6s ease, letter-spacing 0.8s ease;
  animation: fadeUp 0.9s var(--ease) both 0.08s;
  margin-top: 2px;
}

.kinetic-word.liquid {
  filter: url(#goo) drop-shadow(0 0 28px rgba(0, 245, 212, 0.35));
  letter-spacing: 0.02em;
}

.kinetic-word.liquid .glyph {
  background: linear-gradient(135deg, #e8fff9 0%, var(--cyan) 35%, #7dd3fc 55%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

.glyph {
  display: inline-block;
  color: var(--ink);
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0);
  white-space: pre;
  user-select: none;
}

.glyph.accent {
  color: var(--cyan);
  text-shadow: 0 0 32px rgba(0, 245, 212, 0.55);
}

.kinetic-word.liquid .glyph.accent {
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.sub {
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f2f5ff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 20px rgba(0, 0, 0, 0.7);
  animation: fadeUp 0.9s var(--ease) both 0.16s;
}

.year-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 245, 212, 0.4);
  animation: fadeUp 0.9s var(--ease) both 0.2s;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #041018;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 48%, #a78bfa);
  box-shadow: 0 12px 40px rgba(0, 245, 212, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease) both 0.26s;
}

.btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 44px rgba(0, 245, 212, 0.38);
}

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

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  transition: color 0.15s;
  animation: fadeUp 0.9s var(--ease) both 0.32s;
}

.x-link:hover {
  color: var(--ink);
}

.x-ico {
  opacity: 0.9;
  flex-shrink: 0;
}

@keyframes markIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Bottom-left backing credit */
.backed-by {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(340px, calc(100vw - 200px));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
  animation: fadeIn 1s var(--ease) both 0.4s;
  pointer-events: none;
}

.backed-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 210, 230, 0.55);
  width: 100%;
}

.backed-main {
  font-weight: 700;
  font-size: 13px;
  color: #f0f4ff;
  letter-spacing: 0.01em;
}

.backed-sep {
  opacity: 0.4;
}

.backed-founders {
  font-weight: 500;
  font-size: 12px;
  color: rgba(220, 228, 245, 0.78);
}

/* Promo popup cards */
#promo-stack {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: min(180px, calc(100vw - 28px));
}

.promo-toast {
  pointer-events: auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 245, 212, 0.08);
  background: #0a0b10;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
  cursor: pointer;
}

.promo-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.promo-toast.hide {
  transform: translateX(110%);
  opacity: 0;
}

.promo-toast img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.promo-toast .promo-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.85;
}

.promo-toast .promo-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.75);
}

@media (max-width: 720px) {
  .backed-by {
    left: 12px;
    bottom: 12px;
    max-width: min(220px, calc(100vw - 160px));
  }

  .backed-founders {
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  #promo-stack {
    right: 10px;
    bottom: 10px;
    max-width: min(140px, calc(100vw - 20px));
  }

  .backed-by {
    max-width: min(180px, calc(100vw - 160px));
    font-size: 11px;
  }

  .backed-main {
    font-size: 12px;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  position: relative;
  width: min(380px, 100%);
  padding: 32px 28px;
  border-radius: 20px;
  background: #0e1018;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.28s var(--ease);
}

.prank-card {
  text-align: center;
  border-color: transparent;
  background:
    linear-gradient(#0e1018, #0e1018) padding-box,
    linear-gradient(135deg, var(--cyan), var(--magenta)) border-box;
  border: 1px solid transparent;
}

.prank-emoji {
  font-size: 44px;
  margin-bottom: 10px;
  animation: bounce 0.55s ease infinite alternate;
}

.prank-card h2 {
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prank-lmao {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.prank-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark,
  .kinetic-word,
  .sub,
  .year-tag,
  .btn,
  .x-link,
  .topbar,
  .prank-emoji {
    animation: none;
  }
}
