/*
 * Style sheet for the Unconscious Coin landing page.
 *
 * This design follows a minimalist layout with a dark, dreamy palette.
 * It uses subtle neon accents, sacred‑geometry inspired gradients and
 * micro‑interaction hover effects to enliven the interface. A fog
 * animation veils the contract address until the project is ready to
 * reveal it.
 */

/* Root variables for easy theming */
:root {
  --bg-color: #050512;         /* Deep midnight background */
  --primary: #a654ff;          /* Vibrant purple accent */
  --accent: #00f7ff;           /* Soft cyan accent */
  --text-color: #ffffff;       /* Primary text colour */
  --muted-text: rgba(255,255,255,0.8); /* Secondary text */

  /* Warm sunset gradient for text, flowing from a soft orange to a rich pink */
  --grad-start: #ff9966;
  --grad-end: #ff5e62;

  /* Rune flame colours for the fire icons. These correspond to each
     social link in the rune links row. */
  --rune-red: #ff6666;
  --rune-orange: #ff9966;
  --rune-blue: #66ccff;
  --rune-purple: #cc66ff;
}

/* Global resets and typography */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  /* Use Quicksand as the primary font for a fluid, contemporary feel */
  font-family: 'Quicksand', Arial, sans-serif;
  overflow-x: hidden;
}

/* Background geometry creates a sense of depth using radial gradients. */
.background-geometry {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  /* Use the sacred geometry background image first, with gradients layered on top. */
  background-image:
    url("images/bg_user.png"),
    radial-gradient(circle at 25% 40%, rgba(166, 84, 255, 0.25), transparent 60%),
    radial-gradient(circle at 75% 60%, rgba(0, 247, 255, 0.2), transparent 70%),
    radial-gradient(circle at 50% 20%, rgba(166, 84, 255, 0.15), transparent 80%),
    radial-gradient(circle at 50% 80%, rgba(0, 247, 255, 0.1), transparent 90%);
  background-size: cover;
  background-position: center;
  /* Remove drifting animation to lock the background image in place. */
  /* animation: drift 80s linear infinite; */
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-15%, 5%);
  }
}

/* Main content wrapper */
.content {
  position: relative;
  text-align: center;
  padding: 12vh 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

h1 {
  font-size: 3.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.1;
  /* Distinctive font for the title using Audiowide for a futuristic feel */
  font-family: 'Audiowide', 'Quicksand', sans-serif;
}

.tagline {
  font-size: 1.2rem;
  margin: 0 0 2rem;
  /* Colour will be applied via the .gradient-text helper. Setting the
     colour explicitly to transparent ensures gradient text appears on all
     browsers */
  color: transparent;
}

/* Sub‑tagline styling: slightly smaller than the tagline and spaced below
   the CTA. It inherits the gradient text styling via the .gradient-text class. */
.subtagline {
  font-size: 1rem;
  margin: 1.5rem 0 2rem;
}

/* Call‑to‑action button */
/* Call‑to‑action button: simplified styling with only an outline. The gradient
   colour is applied via the .gradient-text class. */
.cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--grad-start);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.cta:hover {
  transform: scale(1.06);
  text-shadow: 0 0 8px var(--grad-end);
}

/* Rune links row: displays social links using runic characters that glow like flames. */
.rune-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.rune-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.rune-link:hover {
  transform: scale(1.15);
}

/* Base rune styling. Each rune uses a specific colour and text-shadow to
   create a glowing flame effect. */
.rune {
  font-size: 2rem;
  line-height: 1;
}

.rune-red {
  color: var(--rune-red);
  text-shadow:
    0 0 6px #ff3300,
    0 0 12px #ff6600,
    0 0 18px #ff9966;
}

.rune-orange {
  color: var(--rune-orange);
  text-shadow:
    0 0 6px #ff6600,
    0 0 12px #ff9966,
    0 0 18px #ffcc99;
}

.rune-blue {
  color: var(--rune-blue);
  text-shadow:
    0 0 6px #3399ff,
    0 0 12px #66ccff,
    0 0 18px #99ddff;
}

.rune-purple {
  color: var(--rune-purple);
  text-shadow:
    0 0 6px #9933ff,
    0 0 12px #cc66ff,
    0 0 18px #dd99ff;
}

/* Contract address section */
.contract {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  /* Remove border and background for a cleaner appearance */
  border: none;
  background: transparent;
  position: relative;
  overflow: visible;
}

.contract h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  /* Colour will be applied via the .gradient-text helper */
  color: inherit;
}

/* Fog overlay to conceal the contract address. A blurred gradient slowly moves
   across the section to resemble drifting fog. */
.fog {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(255,255,255,0.04), transparent 60%),
              radial-gradient(circle at 50% 20%, rgba(255,255,255,0.03), transparent 70%);
  filter: blur(40px);
  animation: fogMove 60s linear infinite;
  z-index: 0;
}

@keyframes fogMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

/* Placeholder contract text sits above the fog */
.ca-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.1rem;
  /* Make the placeholder stand out without a background */
  color: inherit;
}

/* Donation section is centered and spaced from the contract section */


/* Ensure interactive elements do not inherit any background fill. Without this,
   some browsers may apply a default background colour or highlight. */
.cta,
.social-link,
.contract,
header {
  background: none;
}

/* Matrix rune effect canvas */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  /* Make sure the canvas sits above the background but below the content */
  /* content uses z-index:1, background uses z-index:-1 */
  /* No additional styling needed; the matrix effect script will draw onto it. */
}

/* Gradient text helper: applies a warm linear gradient to text. Use
   background-clip to fill the text and make the fill transparent so
   the gradient shows through. */
.gradient-text {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* For non-webkit browsers */
  background-clip: text;
  color: transparent;
}

/* Phases section styles */
.phases {
  margin-top: 4rem;
  padding: 2rem 1rem;
}

.phases-title {
  margin: 0 0 2rem;
  font-size: 1.6rem;
  text-align: center;
}

.phase-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.phase-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.phase-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.phase-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-text);
}

@media (min-width: 768px) {
  .phase-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .phase-card {
    flex: 1 1 calc(50% - 1rem);
  }
}