/* ==========================================================================
   BlockCloak — Plain Vanilla CSS Stylesheet
   Strict Monochrome Minimalist Cybersecurity & DevOps Architecture
   Zero dependencies · Zero build tools
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-card: #090909;
  --bg-glass: rgba(0, 0, 0, 0.85);
  --border-subtle: #171717;
  --border-light: #262626;
  --text-white: #ffffff;
  --text-primary: #fafafa;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--text-white);
  color: var(--bg-black);
}

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

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Page Layout: Header, Main (Centered Content), Marquee, Footer */
.site-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-black);
}

/* ==========================================================================
   1. Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.brand-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-fallback-icon {
  width: 20px;
  height: 20px;
  color: #000000;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.btn-login:hover {
  color: var(--text-white);
}

.btn-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-launch:hover {
  background-color: #e5e5e5;
  transform: translateY(-1px);
}

.btn-launch svg {
  width: 14px;
  height: 14px;
}

.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-muted);
}

.mobile-menu-toggle:hover {
  color: var(--text-white);
}

/* ==========================================================================
   2. Centered 'COMING SOON' Section
   ========================================================================== */
.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Ambient Radial Glow & Grid Pattern */
.ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
}

.grid-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 32px 32px;
  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);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  opacity: 0.6;
}

.scanline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
  transform: translateY(-50%);
}

/* Dominating Typography Wrapper */
.coming-soon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
  cursor: default;
}

.coming-soon-title {
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 11vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-white);
  white-space: nowrap;
  position: relative;
  display: inline-block;
  will-change: filter, transform;
}

/* When decrypted, trigger continuous breathing glow pulse */
.coming-soon-title.decrypted {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Terminal Cryptographic Cursor */
.terminal-cursor {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.15em;
  font-size: 0.85em;
  display: inline-block;
  vertical-align: baseline;
  animation: cursor-blink 0.75s step-start infinite;
}

.terminal-cursor.hidden {
  display: none;
}

/* Micro-Glitch Ghost Layer */
.glitch-ghost {
  position: absolute;
  inset: 0;
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 11vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: #737373;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

/* Glitch Trigger Class */
.is-glitching .glitch-ghost {
  opacity: 0.45;
  animation: ghost-flicker 0.2s ease forwards;
}

.is-glitching .coming-soon-title {
  animation: title-jitter 0.2s ease forwards;
}

/* ==========================================================================
   3. Partner Logos Infinite Marquee
   ========================================================================== */
.marquee-section {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-black);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.marquee-mask {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  flex-shrink: 0;
}

.logo-item {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
  user-select: none;
  font-size: 0.875rem;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.logo-item svg {
  height: 18px;
  width: auto;
}

.logo-text {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   4. Minimalist Footer (Socials + Copyright)
   ========================================================================== */
.footer {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-black);
  padding: 1.75rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-link:hover {
  color: var(--text-white);
  transform: translateY(-1px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link.stroke-icon svg {
  fill: none;
  stroke: currentColor;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
}

/* ==========================================================================
   5. Keyframe Animations
   ========================================================================== */
@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.32)) drop-shadow(0 0 65px rgba(255, 255, 255, 0.15));
  }
}

@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes title-jitter {
  0% { transform: translate(0, 0); opacity: 1; }
  25% { transform: translate(-2px, 1px); opacity: 0.88; }
  50% { transform: translate(3px, -1px); opacity: 0.95; }
  75% { transform: translate(-1px, 0); opacity: 0.9; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@keyframes ghost-flicker {
  0% { transform: translate(0, 0); opacity: 0; filter: blur(0); }
  30% { transform: translate(-3px, -1px); opacity: 0.45; filter: blur(1px); }
  60% { transform: translate(4px, 1px); opacity: 0.35; filter: blur(2px); }
  100% { transform: translate(0, 0); opacity: 0; filter: blur(0); }
}

/* ==========================================================================
   6. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-login {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-center {
    min-height: calc(100vh - 200px);
    padding: 5rem 1rem 2rem;
  }

  .marquee-section {
    padding: 2rem 0;
  }

  .marquee-group {
    gap: 2.25rem;
    padding-right: 2.25rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .coming-soon-title {
    font-size: clamp(2.4rem, 13vw, 4.5rem);
  }
}
