/* ==========================================================================
   Gigdost – Landing page styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
  --primary: #F74244;
  --primary-dark: #D9383A;
  --primary-light: #FC9A9C;
  --surface: #FFFFFF;
  --background-alt: #FFF5F5;
  --background-dark: #1F1B24;
  --on-primary: #FFFFFF;
  --on-surface: #1F1B24;
  --on-surface-variant: #5C5962;
  --outline: rgba(0,0,0,0.08);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 14px;
  /* Illustration palette */
  --alegria-teal: #20B8B0;
  --alegria-yellow: #FFC53D;
  --alegria-blue: #4D7CFE;
  --alegria-skin-a: #FFD7C2;
  --alegria-skin-b: #C9B8E3;
  --alegria-skin-c: #A8D4E0;
  --alegria-pants: #2B2D42;
}

/* --------------------------------------------------------------------------
   Base & layout
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.logo {
  height: 36px;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 64px 24px 72px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--on-primary);
  box-shadow: inset 0 -4px 20px rgba(0,0,0,0.08);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: left;
}

.hero-content {
  flex: 1 1 320px;
  max-width: 520px;
}

.hero-content h1,
.hero-content p { margin-left: 0; margin-right: 0; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  font-size: 19px;
  opacity: 0.95;
  max-width: 540px;
}

.hero-illustration {
  flex: 0 1 380px;
  max-width: 100%;
  min-height: 280px;
}

.hero .btn-download {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  margin-top: 24px;
}

.hero .btn-download:hover {
  background: #f8f8f8;
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content h1,
  .hero-content p { margin-left: auto; margin-right: auto; }
}

/* --------------------------------------------------------------------------
   Bands (section backgrounds)
   -------------------------------------------------------------------------- */
.band {
  padding: 56px 0;
}

.band--white { background: var(--surface); }
.band--gray { background: #F8F8F9; }
.band--tint { background: var(--background-alt); }
.band--primary {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--on-primary);
}

.band h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.band .subtitle {
  margin: 0 0 32px;
  font-size: 17px;
  opacity: 0.9;
  max-width: 560px;
}

.band--primary h2,
.band--primary .subtitle { color: #fff; opacity: 0.92; }

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--outline);
  transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.band--tint .card,
.band--gray .card { background: var(--surface); }

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.card p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.55;
}

.card-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  animation: float 5s ease-in-out infinite;
}

.card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.card:nth-child(3) .card-icon { animation-delay: 1s; }

/* --------------------------------------------------------------------------
   Steps grid
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--primary-dark);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  animation: pulse-soft 3s ease-in-out infinite;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Stats (CTA band)
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  margin-top: 40px;
}

.stats-item .num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  animation: pulse-soft 4s ease-in-out infinite;
}

.stats-item .label {
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(247,66,68,0.4);
  transition: background 0.2s, transform 0.1s;
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 40px 24px 24px;
  background: var(--background-dark);
  color: rgba(255,255,255,0.88);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.2fr auto auto;
  align-items: start;
}

.footer .brand {
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  opacity: 0.75;
  text-align: center;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(-4px) rotate(1deg); }
  50% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero-content .reveal { animation: fade-in-up 0.7s ease-out forwards; }
.hero-content .reveal-1 { animation-delay: 0.1s; opacity: 0; }
.hero-content .reveal-2 { animation-delay: 0.25s; opacity: 0; }
.hero-content .reveal-3 { animation-delay: 0.4s; opacity: 0; }
.hero-illustration.reveal.reveal-4 { animation: fade-in-up 0.7s ease-out 0.55s forwards; opacity: 0; }

.hero-illustration svg { width: 100%; height: auto; }
.hero-illustration .alegria-float { animation: float 4s ease-in-out infinite; }
.hero-illustration .alegria-float-delay {
  animation: float-delay 4.5s ease-in-out infinite;
  transform-origin: 190px 245px;
}

.band .cards .card {
  animation: fade-in-up 0.6s ease-out backwards;
}
.band .cards .card:nth-child(1) { animation-delay: 0.1s; }
.band .cards .card:nth-child(2) { animation-delay: 0.25s; }
.band .cards .card:nth-child(3) { animation-delay: 0.4s; }

.band .steps .step {
  animation: fade-in-up 0.6s ease-out backwards;
}
.band .steps .step:nth-child(1) { animation-delay: 0.1s; }
.band .steps .step:nth-child(2) { animation-delay: 0.25s; }
.band .steps .step:nth-child(3) { animation-delay: 0.4s; }

.band--primary .stats-item {
  animation: fade-in-up 0.6s ease-out backwards;
}
.band--primary .stats-item:nth-child(1) { animation-delay: 0.2s; }
.band--primary .stats-item:nth-child(2) { animation-delay: 0.35s; }
.band--primary .stats-item:nth-child(3) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .alegria-float, .alegria-float-delay, .card-icon, .step-icon,
  .band--primary .stats-item .num { animation: none; }
  .hero-content .reveal, .hero-illustration.reveal,
  .band .cards .card, .band .steps .step, .band--primary .stats-item {
    animation: none;
    opacity: 1;
  }
}
