/* ==========================================================================
   BULLION — Coming Soon / Waitlist Stylesheet
   Typography: "ivyjournal", sans-serif; weight: 700; style: normal;
   ========================================================================== */

:root {
  --color-forge-red: #d14332;
  --color-forge-red-bright: #e74c3c;
  --color-forge-red-dark: #9e2a1d;
  --color-forge-glow: rgba(209, 67, 50, 0.45);
  --color-amber-glow: rgba(255, 120, 40, 0.35);
  
  --color-bg-base: #0a0b0e;
  --color-bg-surface: #12151b;
  --color-bg-input: #101318;
  --color-border-subtle: #232731;
  --color-border-glow: #d14332;
  
  --color-text-white: #ffffff;
  --color-text-subtle: #cccccc;
  --color-text-muted: #7d8492;
  
  --font-headline: "ivyjournal", "Cinzel", Georgia, serif;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Mono", monospace, monospace;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-bg-base);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Background & Atmospheric Layers
   ========================================================================== */

.viewport-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-image-layer {
  position: absolute;
  inset: 0;
  background: url('../assets/background_image.jpg') no-repeat center bottom;
  background-size: cover;
  opacity: 0.95;
  filter: contrast(1.05) brightness(0.95);
}

/* Master Statue Overlay */
.statue-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.2s ease-out;
}

.statue-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  transform: scale(0.9);
  transform-origin: left bottom;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.95))
          drop-shadow(0 0 25px rgba(209, 67, 50, 0.25));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle blueprint grid overlay */
.blueprint-grid-layer {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  background-position: center center;
  mask-image: radial-gradient(circle at center, black 40%, rgba(0, 0, 0, 0.6) 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, rgba(0, 0, 0, 0.6) 80%, transparent 100%);
}

/* Dynamic forge ambient glow */
.glow-layer {
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(ellipse at bottom center, rgba(209, 67, 50, 0.28) 0%, rgba(180, 40, 20, 0.12) 45%, transparent 75%);
  filter: blur(50px);
  animation: forgePulse 6s ease-in-out infinite alternate;
}

@keyframes forgePulse {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08) translateY(-10px); }
  100% { opacity: 0.8; transform: scale(0.95); }
}

#sparks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   HUD Overlay & Crosshairs
   ========================================================================== */

.hud-overlay {
  position: fixed;
  inset: 20px;
  pointer-events: none;
  z-index: 3;
}

.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.18);
  border-style: solid;
}

.hud-corner.top-left {
  top: 0;
  left: 0;
  border-width: 1.5px 0 0 1.5px;
}

.hud-corner.top-right {
  top: 0;
  right: 0;
  border-width: 1.5px 1.5px 0 0;
}

.hud-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 1.5px 1.5px;
}

.hud-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 1.5px 1.5px 0;
}

.hud-crosshair {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.25;
}

.hud-crosshair::before,
.hud-crosshair::after {
  content: '';
  position: absolute;
  background-color: #ffffff;
}

.hud-crosshair::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 1px;
}

.hud-crosshair::after {
  top: 0;
  left: 5px;
  width: 1px;
  height: 12px;
}

.hud-crosshair.ch-1 {
  top: 15%;
  right: 25%;
}

.hud-crosshair.ch-2 {
  top: 48%;
  left: 45%;
}

.hud-crosshair.ch-3 {
  bottom: 12%;
  left: 8%;
}

/* ==========================================================================
   Main Layout Structure
   ========================================================================== */

.main-wrapper {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 60px 25px 60px;
  max-width: 1800px;
  margin: 0 auto;
}

/* ==========================================================================
   Header, Logo & Technical Side Markers
   ========================================================================== */

.forge-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 0;
  margin-top: 2px;
  margin-bottom: 10px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  margin-bottom: 8px;
}

.logo-side-marker {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0.8;
}

.marker-line {
  display: inline-block;
  width: 58px;
  height: 1.5px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5));
}

.logo-side-marker.right .marker-line {
  background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.5));
}

.marker-block {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: #a8b0c0;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.logo-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(209, 67, 50, 0.55) 0%, rgba(209, 67, 50, 0.2) 50%, transparent 75%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 1;
}

/* Refined Balanced Bullion Logo */
.brand-logo {
  width: clamp(220px, 16vw, 310px) !important;
  height: auto !important;
  max-width: 85vw;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 22px rgba(209, 67, 50, 0.65))
          drop-shadow(0 3px 12px rgba(0, 0, 0, 0.85));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo:hover {
  transform: scale(1.025);
}

.tagline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #a4abb8;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  font-weight: 500;
  text-transform: uppercase;
}

.technical-line {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.35);
}

.technical-line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background-color: rgba(255, 255, 255, 0.6);
}

.technical-line.left::after {
  left: 0;
}

.technical-line.right::after {
  right: 0;
}

.tagline-text {
  user-select: none;
  opacity: 0.9;
}

/* ==========================================================================
   Hero Content (Split Stage)
   ========================================================================== */

.forge-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  position: relative;
  min-height: calc(100vh - 180px);
}

/* --- Left Hero Spacer --- */
.hero-spacer {
  position: relative;
  height: 100%;
  min-height: 480px;
  pointer-events: none;
}

/* --- Right Hero Editorial --- */
.hero-editorial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 30px;
  padding-right: 40px;
  z-index: 5;
}

.copy-block {
  margin-bottom: 38px;
}

/* User specified font configuration */
.main-headline {
  font-family: "ivyjournal", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.headline-white {
  display: inline;
  color: #ffffff;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.headline-accent {
  display: inline;
  color: #d14332;
  text-shadow: 0 0 30px rgba(209, 67, 50, 0.5),
               0 2px 12px rgba(0, 0, 0, 0.7);
}

.sub-headline {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  color: #f0f2f5;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

/* ==========================================================================
   Waitlist Form & Interactive Button
   ========================================================================== */

.form-wrapper {
  max-width: 540px;
  width: 100%;
}

.forge-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  align-items: stretch;
  background: transparent;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.forge-input {
  flex: 1;
  background-color: #12151b;
  border: 1px solid #282d38;
  border-right: none;
  border-radius: 2px 0 0 2px;
  outline: none;
  padding: 15px 20px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within .forge-input {
  border-color: rgba(209, 67, 50, 0.8);
  box-shadow: 0 0 15px rgba(209, 67, 50, 0.25);
}

.forge-input::placeholder {
  color: #5d6472;
  font-style: normal;
  font-family: var(--font-sans);
}

/* Forged 3D Beveled Button with Chamfered Bottom-Right Corner */
.forge-btn {
  position: relative;
  min-width: 175px;
  padding: 0 28px;
  min-height: 48px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
  transition: transform 0.15s ease, filter 0.15s ease;
}

/* Outer 3D Bevel Frame with 45-degree chamfer cut */
.forge-btn .btn-bevel-border {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f05a48 0%, #e24937 35%, #7a1d13 60%, #4e1008 100%);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%
  );
  pointer-events: none;
  transition: background 0.2s ease;
}

/* 1px Black Contour Border */
.forge-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: #000000;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%
  );
  z-index: -1;
}

/* Inner Raised Plate Face */
.forge-btn .btn-face {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 4px;
  bottom: 4px;
  background-color: #d14332;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  transition: background-color 0.2s ease;
}

.btn-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* Hover State */
.forge-btn:hover {
  filter: drop-shadow(0 0 20px rgba(209, 67, 50, 0.6))
          drop-shadow(0 5px 14px rgba(0, 0, 0, 0.85));
}

.forge-btn:hover .btn-face {
  background-color: #dc4836;
}

.forge-btn:hover .btn-bevel-border {
  background: linear-gradient(135deg, #ff6c58 0%, #ea523f 35%, #8c2116 60%, #5e140a 100%);
}

/* Active / Pressed State */
.forge-btn:active {
  transform: translate(1px, 2px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.forge-btn:active .btn-bevel-border {
  background: linear-gradient(135deg, #4e1008 0%, #7a1d13 35%, #e24937 60%, #f05a48 100%);
}

.btn-face {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-text {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* Spinner during submission */
.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.forge-btn.loading .btn-spinner {
  display: inline-block;
}

.forge-btn.loading .btn-text {
  opacity: 0.8;
}

.forge-btn.loading {
  pointer-events: none;
  filter: brightness(0.9);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-hint {
  font-size: 0.84rem;
  color: #7b8190;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

/* Feedback alert container */
.form-alert {
  display: none;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 12px 16px;
  border-radius: 2px;
  margin-top: 8px;
  animation: fadeInAlert 0.35s ease forwards;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-alert.success {
  display: block;
  background-color: rgba(30, 70, 45, 0.45);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #a3e9c4;
}

.form-alert.error {
  display: block;
  background-color: rgba(90, 25, 25, 0.45);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #ffb8b0;
}

.form-alert.info {
  display: block;
  background-color: rgba(35, 45, 65, 0.45);
  border: 1px solid rgba(52, 152, 219, 0.5);
  color: #b0d8ff;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #141820;
  color: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-left: 4px solid var(--color-forge-red);
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-size: 0.88rem;
  max-width: 360px;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1200px) {
  .main-wrapper {
    padding: 12px 30px 20px 30px;
  }
  
  .forge-content {
    grid-template-columns: 0.9fr 1.1fr;
  }
  
  .hero-editorial {
    padding-left: 20px;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  .main-wrapper {
    padding: 10px 16px 20px 16px;
  }
  
  .forge-content {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
  }
  
  .hero-spacer {
    display: none;
  }
  
  .statue-bg-img {
    object-position: 10% bottom;
    transform: scale(0.8);
    transform-origin: left bottom;
    opacity: 0.35;
  }
  
  .hero-editorial {
    padding: 30px 15px;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(10, 11, 14, 0.88) 0%, rgba(10, 11, 14, 0.65) 80%, transparent 100%);
    border-radius: 4px;
    backdrop-filter: blur(2px);
  }
  
  .form-wrapper {
    margin: 0 auto;
  }
  
  .input-group {
    flex-direction: column;
    border-radius: 4px;
  }
  
  .forge-btn {
    padding: 15px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: clamp(190px, 65vw, 250px) !important;
    height: auto !important;
  }
  
  .logo-side-marker {
    display: none;
  }
  
  .tagline-container {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    gap: 10px;
  }
  
  .technical-line {
    width: 24px;
  }
  
  .main-headline {
    font-size: 2.1rem;
  }
}
