/* Home page CSS migrated from inline styles. */
.overflow-x-hidden {
  overflow-x: hidden;
}

.hero-stage {
  position: relative;
  height: 100dvh;
}

.svg-defs-hidden {
  position: absolute;
  width: 0;
  height: 0;
}

.grain-filter {
  filter: url(#grain);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-lockup img {
  width: 44px;
  height: 44px;
}

.brand-wordmark {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .brand-lockup img {
    width: 28px;
    height: 28px;
  }

  .brand-wordmark {
    font-size: 0.85rem;
  }
}

.live-counter {
  text-align: right;
  font-family: monospace;
  color: var(--accent);
  font-size: 0.7rem;
}

.hero-bottom-layout {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-footnote {
  font-family: var(--font-inter), sans-serif;
  font-size: 0.85rem;
  max-width: 420px;
  line-height: 1.6;
  opacity: 0.7;
}

.cta-button-inline {
  pointer-events: auto;
  background: var(--silver);
  color: var(--bg);
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
  transition: 0.3s;
}

.input-full {
  width: 100%;
}

:root {
  --bg: #0a0a0a;
  --silver: #e0e0e0;
  --accent: #ff3c00;
  --grain-opacity: 0.15;
}

.halide-body {
  position: relative;
  background-color: var(--bg);
  color: var(--silver);
  font-family: var(--font-syncopate), 'Syncopate', sans-serif;
  overflow: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halide-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
}

.viewport {
  perspective: 2000px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.canvas-3d {
  position: relative;
  width: min(800px, 90vw);
  height: min(500px, 60vh);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(224, 224, 224, 0.1);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.layer-1 {
  background-image: url('/bgimg.webp');
  filter: grayscale(1) contrast(1.2) brightness(0.5);
}

.layer-2 {
  background-image: url('/bgimg.webp');
  filter: grayscale(1) contrast(1.1) brightness(0.7);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.layer-3 {
  background-image: url('/bgimg.webp');
  filter: grayscale(1) contrast(1.3) brightness(0.8);
  opacity: 0.4;
  mix-blend-mode: overlay;
}

.contours {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 40px, rgba(255, 255, 255, 0.05) 41px, transparent 42px);
  transform: translateZ(120px);
  pointer-events: none;
}

.interface-grid {
  position: absolute;
  inset: 0;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .interface-grid {
    padding: 1.5rem;
  }

  .hero-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: flex-start !important;
  }

  .hero-bottom .cta-button {
    font-size: 0.85rem !important;
    padding: 0.75rem 1.5rem !important;
  }
}

.hero-title {
  grid-column: 1 / -1;
  align-self: center;
  mix-blend-mode: difference;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-display), var(--font-inter), sans-serif;
}

.hero-title .hero-headline {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--font-display), sans-serif;
  margin: 0;
}

.hero-title .hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.75;
  margin: 0;
}

.hero-points {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.hero-point {
  flex: 1;
}

.hero-point-title {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
  color: #ff3c00;
}

.hero-point-text {
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  line-height: 1.55;
  opacity: 0.6;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-points {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .interface-grid {
    padding: 1rem;
  }

  .hero-title .hero-headline {
    font-size: 1.3rem;
  }

  .hero-title .hero-sub {
    font-size: 0.85rem;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--silver), transparent);
  animation: flow 2s infinite ease-in-out;
}

@keyframes flow {
  0%,
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

.logo-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.logo-card {
  min-width: 0;
  width: 100%;
  height: 76px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  filter: none;
  opacity: 1;
}

.logo-card-img {
  width: 100%;
  max-width: 148px;
  max-height: 38px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .logo-card {
    height: 64px;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
  }

  .logo-card-img {
    max-height: 30px;
  }
}

.portal-link {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  margin-top: 1.5rem;
}

.cta-button:focus-visible {
  outline: 2px solid #ff6a33;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .canvas-3d {
    transition: none !important;
  }

  .layer {
    transition: none !important;
  }

  .scroll-hint {
    animation: none;
  }
}
