/* ============================================
   4D COIN — Design System
   Dark mode, neon accents, glassmorphism
   ============================================ */

/* Fonts loaded via <link> in HTML head — no @import needed */

/* --- CSS Variables --- */
:root {
  --bg-primary: #06060f;
  --bg-secondary: #0c0c1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #f0f0f5;
  --text-secondary: #8888aa;
  --text-muted: #555577;

  --gold: #ffd700;
  --gold-dark: #b8860b;
  --gold-light: #fff8dc;

  --neon-cyan: #f39c12; /* Switched to Orange */
  --neon-purple: #e67e22;
  --neon-pink: #d35400;

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(243, 156, 18, 0.2);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  
  --font-main: var(--font-body);
  --text-color: var(--text-primary);
  --accent-color: #f39c12;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow-cyan: none;
  --shadow-glow-gold: none;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  color: var(--accent-color);
}



/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-color);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--text-color);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
}
.nav-cta::after {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem 2rem;
  z-index: 1;
}



.hero-text {
  text-align: center;
  margin-top: 2rem;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 10px;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.3s ease;
  text-transform: uppercase;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: rgba(243, 156, 18, 0.25);
  border-color: rgba(243, 156, 18, 0.6);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--neon-cyan);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow-cyan);
  color: var(--neon-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Info Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-cyan);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--neon-cyan);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Showcase Container --- */
.showcase-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Token Section --- */
.token-section {
  text-align: center;
}

.token-address-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 100%;
  overflow: hidden;
}

.token-address-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.token-address {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--gold);
  word-break: break-all;
  user-select: all;
}

.token-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.15), rgba(0, 240, 255, 0.15));
  border: 1px solid rgba(153, 69, 255, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neon-purple);
  margin-bottom: 1rem;
}



.token-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* --- GIF Export Bar --- */
.gif-bar {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}



.gif-progress {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--neon-cyan);
}
.gif-progress.active {
  display: flex;
}

.gif-progress-bar {
  width: 100px;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}
.gif-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer a {
  color: var(--text-secondary);
}

/* --- Coming Soon (create.html) --- */
.coming-soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.coming-soon-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
}

.coming-soon h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coming-soon p {
  color: var(--text-secondary);
  max-width: 450px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 6, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 80px 1rem 2rem;
  }



  .section {
    padding: 3rem 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .token-address-wrap {
    flex-direction: column;
    text-align: center;
  }

  .gif-bar {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══ Cube Loading Spinner ═══ */
.cube-loader {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  z-index: 20;
  background: #0a0c0b;
  transition: opacity 0.4s ease;
}

.cube-loader span {
  font: 600 0.8rem 'Roboto Mono', monospace;
  letter-spacing: 3px;
  color: rgba(243, 156, 18, 0.6);
}

.cube-loader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(243, 156, 18, 0.1);
  border-top-color: #f39c12;
  border-radius: 50%;
  animation: cubeLoaderSpin 0.8s linear infinite;
}

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

/* ═══ Cube Overlay UI (4dimension.app inspired) ═══ */
.cube-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: calc(100% - 80px);
  pointer-events: none;
  z-index: 10;
  box-sizing: border-box;
}

.cube-stage-heading {
  position: absolute;
  top: 20px; left: 20px; right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.cube-micro {
  font: 0.875rem 'Roboto Mono', monospace;
  letter-spacing: 1.5px;
  color: #c9cec3;
}

.cube-status-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #f39c12;
  margin-right: 8px;
  font-style: normal;
  vertical-align: middle;
}

.cube-tag {
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 3px;
  font: 0.875rem 'Roboto Mono', monospace;
  letter-spacing: 1px;
  padding: 5px 8px;
  color: #f39c12;
}

.cube-stage-readout {
  position: absolute;
  top: 50px; left: 34px;
  display: flex;
  gap: 13px;
  color: #727e73;
  font: 0.8rem 'Roboto Mono', monospace;
  letter-spacing: 0.4px;
  pointer-events: none;
}

.cube-stage-bottom {
  position: absolute;
  bottom: 16px; left: 20px; right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: auto;
}

.cube-hint {
  font: 0.8rem 'Roboto Mono', monospace;
  letter-spacing: 1px;
  color: #a1aaa0;
}

.cube-stage-actions {
  display: flex;
  gap: 7px;
}

.cube-icon-btn,
.cube-orbit-btn {
  background: rgba(20, 25, 21, 0.85);
  border: 1px solid rgba(243, 156, 18, 0.2);
  border-radius: 5px;
  height: 31px;
  color: #bcc7b8;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
}

.cube-icon-btn {
  width: 31px;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
}

.cube-orbit-btn {
  padding: 0 10px;
  font-size: 0.875rem;
}

.cube-orbit-btn span {
  font-size: 1.1rem;
  vertical-align: -1px;
  margin-right: 6px;
}

.cube-icon-btn:hover,
.cube-orbit-btn:hover {
  border-color: rgba(243, 156, 18, 0.5);
  color: #fff;
}

.cube-orbit-btn.selected {
  color: #f39c12;
  border-color: rgba(243, 156, 18, 0.5);
}

/* ═══ Cube Timeline ═══ */
.cube-timeline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 20px 14px;
  background: rgba(21, 25, 20, 0.92);
  border-top: 1px solid rgba(243, 156, 18, 0.1);
  z-index: 11;
  backdrop-filter: blur(8px);
}

.cube-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 15px;
}

.cube-timeline-title {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cube-axis-btns {
  display: flex;
  gap: 2px;
}

.axis-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #727e73;
  font: 700 0.75rem 'Roboto Mono', monospace;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 3px 7px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.axis-btn:hover {
  color: #c9cec3;
}

.axis-btn.active {
  color: #f0f0dd;
  background: rgba(243, 156, 18, 0.12);
  border-color: rgba(243, 156, 18, 0.25);
}

.cube-timecode {
  font: 0.875rem 'Roboto Mono', monospace;
  color: #f39c12;
  white-space: nowrap;
}

.cube-timecode span {
  color: #727e73;
}

.cube-timeline-track {
  position: relative;
}

/* ─── Custom Slider Range (Sleek Video Scrubber style) ─── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  background: transparent;
  margin: 0;
  padding: 0;
  display: block;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  margin-top: -5px;
  box-shadow: 0 0 6px rgba(243, 156, 18, 0.5);
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  border: none;
}

input[type=range]::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(243, 156, 18, 0.5);
}

input[type=range]:focus {
  outline: none;
}
