/* Fonts: Playfair Display (headings), Manrope (body), Cinzel (decorative) */
:root {
  --bg: #0A0A0A; /* Dark Charcoal */
  --bg-accent: #121212;
  --primary: #B22222; /* Deep Red */
  --primary-2: #FFB84D; /* Golden Glow */
  --accent: #FFD700; /* Gold */
  --text: #F5F5F5; /* Off-White */
  --muted: #cfcfcf;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(1200px 800px at 70% 20%, #1a1a1a 0%, var(--bg) 60%),
              radial-gradient(900px 600px at 20% 80%, #151515 0%, var(--bg) 70%);
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  overflow-x: hidden;
  overflow-y: auto; /* allow scroll on small screens */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* Fixed X (Twitter) button */
.x-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.6));
  text-decoration: none;
  font-weight: 700;
  font-family: Cinzel, Manrope, system-ui, sans-serif;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease, border-color 0.25s ease;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--press, 1));
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  overflow: hidden;
  will-change: transform;
}
.x-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), var(--accent), var(--primary), var(--primary-2), var(--accent));
  filter: blur(10px);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.x-btn:hover::after { opacity: 0.22; animation: spin 12s linear infinite; }
.x-btn:hover { filter: saturate(1.05); }
.x-btn:active { filter: saturate(0.98); }
.x-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26,26,26,0.9), 0 0 0 4px rgba(255, 215, 0, 0.35), 0 10px 28px rgba(255, 215, 0, 0.16), 0 4px 14px rgba(0,0,0,0.35);
  border-color: rgba(255, 215, 0, 0.45);
}

@media (max-width: 420px) { .x-btn { padding: 10px 14px; } }

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px clamp(16px, 4vw, 48px);
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.brand { text-align: center; margin-bottom: 8px; }
/* Title logo */
.title-logo {
  display: block;
  width: clamp(140px, 36vw, 340px);
  height: auto;
  margin: 0 auto 2px;
  filter: drop-shadow(0 6px 26px rgba(255, 215, 0, 0.15)) drop-shadow(0 4px 16px rgba(178, 34, 34, 0.2));
}

.title {
  margin: 6px 0 4px;
  font: 0/0 a;
  color: transparent;
  background: none;
}

.tagline {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  font-family: Playfair Display, Manrope, system-ui, sans-serif;
  letter-spacing: 0.02em;
  font-size: clamp(12px, 1.8vw, 16px);
}

.intro {
  max-width: 800px;
  text-align: center;
  color: rgba(245,245,245,0.9);
  background: radial-gradient(120% 140% at 30% 10%, rgba(255, 215, 0, 0.12), rgba(178, 34, 34, 0.06)),
              rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  margin-top: 6px;
  backdrop-filter: blur(10px) saturate(120%);
}
/* stronger heading tone */
.intro strong { color: #ffeaa6; text-shadow: 0 1px 8px rgba(255, 215, 0, 0.18); }

.coming-soon { margin-top: 12px; text-align: center; }
.typing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.6));
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px) saturate(120%);
  font-family: Playfair Display, Manrope, system-ui, sans-serif;
  font-size: clamp(22px, 6.5vw, 56px);
  letter-spacing: 0.04em;
}
#typing { color: var(--text); }
.caret {
  width: 1px;
  height: 1em;
  background: linear-gradient(180deg, #ffeaa6, #ffd700);
  display: inline-block;
  transform: translateY(2px);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .x-btn, .typing, .intro { animation: none !important; transition: none !important; }
}

.footer {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
  opacity: 0.85;
  padding-bottom: env(safe-area-inset-bottom);
}
.footer .bg-logo {
  display: block;
  margin: 12px auto 10px;
  width: min(220px, 50vw);
  opacity: 0.18;
  filter: saturate(0.8) contrast(1.1) drop-shadow(0 0 24px rgba(255, 215, 0, 0.08));
}

/* Subtle animated glow borders */
.typing, .intro {
  position: relative;
}
.typing::after, .intro::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), var(--accent), var(--primary), var(--primary-2), var(--accent));
  filter: blur(10px);
  opacity: 0.18;
  z-index: -1;
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin {
  to { --angle: 360deg; }
}
.typing::after, .intro::after { animation: spin 12s linear infinite; }

/* Responsive small heights */
/* Keep intro visible even on short screens; rely on scrolling + smaller sizes */

/* Mobile responsiveness */
@media (max-width: 540px) {
  .page { padding: 20px 16px; align-content: start; }
  .title-logo { width: clamp(120px, 52vw, 260px); }
  .intro { margin-top: 4px; padding: 12px 14px; font-size: 14px; }
  .coming-soon { margin-top: 10px; }
  .typing { gap: 8px; padding: 12px 14px; font-size: clamp(18px, 8vw, 34px); }
}

@media (max-width: 360px) {
  .title-logo { width: clamp(100px, 58vw, 200px); }
  .typing { gap: 6px; font-size: clamp(16px, 10vw, 28px); }
}


