/* ======================================================================
   1️⃣  Variables – Professional Bitcoin palette
   ====================================================================== */
:root {
  /* Refined Bitcoin colors */
  --primary: #F7931A;
  --primary-light: #FFB347;
  --primary-dark: #E6841A;
  --secondary: #2C3E50;
  --secondary-light: #34495E;
  --accent: #1A1A1A;
  --accent-light: #333333;

  /* Bitcoin-inspired gradients */
  --bg-gradient: linear-gradient(135deg, #FFF8E7 0%, #FFF3D3 50%, #FFECB3 100%);
  --card-gradient: linear-gradient(145deg, rgba(247,147,26,0.08) 0%, rgba(247,147,26,0.04) 100%);
  --button-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --hero-gradient: linear-gradient(135deg, rgba(247,147,26,0.15) 0%, rgba(247,147,26,0.08) 100%);

  /* Text colors */
  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-light: #2C3E50;
  --text-muted: #7F8C8D;

  /* Shadows & effects */
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-button: 0 4px 15px rgba(247,147,26,0.4);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-small: 8px;

    /* tamanhos de fonte responsivos (em rem) */
  --logo-size:   3.5rem;
  --title-size:  3rem;
}

/* ======================================================================
   2️⃣  Global styles
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  background: var(--bg-gradient);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(247,147,26,0.05) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(247,147,26,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* ======================================================================
   3️⃣  Layout
   ====================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;


}

header {
  padding: 2rem 0;
  position: relative;
  z-index: 10;
  /* Centraliza tudo dentro do header */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;  
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: var(--logo-size);
  font-weight: 700;
  text-decoration: none;
}

.logo::before {
  content: '₿';
  font-size: var(--title-size);
  color: var(--primary);
  text-shadow: 0 0 20px rgba(247,147,26,0.5);
}

/* === Texto do meio (opcional, sem estilos extras)  === */
.logo-text {
  margin: 0 1rem;          /* separa do logo à esquerda */
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--title-size);
  text-decoration: none;
}

main {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

/* ======================================================================
   4️⃣  Hero section
   ====================================================================== */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 5;
  padding: 0 1rem;
}

.hero-background {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--hero-gradient);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0;
  animation: heroGlow 2s ease-out 0.5s forwards;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out 0.2s forwards;
  word-break: break-word;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: 2px;
  opacity: 0;
  animation: slideUp 1s ease-out 0.8s forwards;
}

.hero .subheading {
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease-out 0.4s forwards;
  padding: 0 1rem;
  line-height: 1.5;
}

/* ======================================================================
   5️⃣  Features grid
   ====================================================================== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}

.feature {
  background: var(--card-gradient);
  border: 1px solid rgba(247,147,26,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease-out forwards;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 280px;
}

.feature:nth-child(1) { animation-delay: 0.6s; }
.feature:nth-child(2) { animation-delay: 0.7s; }
.feature:nth-child(3) { animation-delay: 0.8s; }
.feature:nth-child(4) { animation-delay: 0.9s; }

.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--button-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(247,147,26,0.3);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(247,147,26,0.3));
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ======================================================================
   6️⃣  CTA section
   ====================================================================== */
.cta {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out 1.2s forwards;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.form-group {
  position: relative;
}

.signup-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(247,147,26,0.2);
  border-radius: var(--radius-small);
  background: rgba(255,255,255,0.8);
  color: var(--text-primary);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.signup-form input::placeholder {
  color: var(--text-secondary);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247,147,26,0.2);
  background: rgba(255,255,255,0.95);
}

.signup-form button {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-small);
  background: var(--button-gradient);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-button);
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247,147,26,0.6);
}

.signup-form button:active {
  transform: translateY(0);
}

.signup-form button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.signup-form button:hover::before {
  left: 100%;
}

/* ======================================================================
   7️⃣  Footer
   ====================================================================== */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(247,147,26,0.2);
  margin-top: 4rem;
}

/* ======================================================================
   8️⃣  Animations
   ====================================================================== */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroGlow {
  to {
    opacity: 0.6;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Floating animation for logo */
.logo::before { animation: float 3s ease-in-out infinite; }

/* ======================================================================
   9️⃣  Responsive design
   ====================================================================== */

/* Tablet (≤1024px) – reduz tamanhos de fonte e espaçamento */
@media (max-width: 1024px) {
  :root {
    --logo-size: 3.5rem;
    --title-size: 2.5rem;
  }

  header {
    padding: 1.5rem 0;
    gap: 0.75rem;
  }

  .logo::before {
    font-size: 1.8rem;
  }
}


/* Mobile (≤768px) – empilha os itens e centraliza */
@media (max-width: 768px) {
  header {
    flex-direction: column;        /* logos + texto em coluna */
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .logo-text {
    margin: 0;                    /* remove margem lateral */
  }

  /* Ajuste de fonte menor */
  :root {
    --logo-size: 1.2rem;
    --title-size: 1rem;
  }
}

/* Pequenos dispositivos (≤480px) – fontes ainda menores */
@media (max-width: 480px) {
  :root {
    --logo-size: 1rem;
    --title-size: 0.9rem;
  }

  .logo::before {
    font-size: 1.4rem;
  }

  header {
    padding: 0.75rem 0;
  }
}


@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  main { padding: 2rem 0; }

  .hero { margin-bottom: 3rem; padding: 0 0.5rem; }

  .hero h1 {
    font-size: clamp(1.8rem, 10vw, 3rem);
    margin-bottom: 0.75rem;
  }

  .hero .subheading {
    font-size: clamp(0.95rem, 5vw, 1.2rem);
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .features { flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }

  .feature { max-width: 100%; min-width: unset; padding: 1.5rem; }

  .signup-form { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding: 0 0.25rem; }

  .hero h1 {
    font-size: clamp(1.5rem, 12vw, 2.5rem);
    line-height: 1.2;
  }

  .hero .subheading {
    font-size: clamp(0.9rem, 6vw, 1.1rem);
    padding: 0 0.25rem;
    line-height: 1.4;
  }

  .feature { padding: 1.25rem; }

  .cta h2 { font-size: 1.5rem; }
}

/* ======================================================================
   🔟  Accessibility improvements
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}