/* ============================================================
   CALMUREVIA.COM — HOME.CSS
   Home page specific styles
   ============================================================ */

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 13, 24, 0.55) 0%,
    rgba(6, 13, 24, 0.35) 50%,
    rgba(6, 13, 24, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
  padding-block: var(--space-3xl);
}

.hero__text {
  max-width: 580px;
}

.hero__badge {
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-style: italic;
  background: var(--gradient-text-teal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(14, 207, 207, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-teal);
  animation: scroll-bounce 2s ease infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── Wave Tide Meter Widget ── */
.tide-meter {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tide-meter__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tide-meter__icon {
  font-size: 1.5rem;
}

.tide-meter__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 600;
}

.tide-meter__sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.tide-meter__moods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.tide-mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  background: rgba(14, 207, 207, 0.04);
}

.tide-mood:hover {
  background: rgba(14, 207, 207, 0.08);
  transform: translateY(-2px);
}

.tide-mood.selected {
  background: rgba(14, 207, 207, 0.12);
  border-color: var(--color-teal);
}

.tide-mood__emoji {
  font-size: 1.4rem;
}

.tide-mood__label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.tide-mood.selected .tide-mood__label {
  color: var(--color-teal);
}

.tide-meter__slider-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tide-meter__slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.tide-meter__slider-label span:last-child {
  color: var(--color-teal);
  font-weight: 600;
}

#tide-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(14, 207, 207, 0.15);
  outline: none;
  cursor: pointer;
  position: relative;
}

#tide-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-teal);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(14, 207, 207, 0.5);
  border: 2px solid rgba(255,255,255,0.2);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

#tide-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(14, 207, 207, 0.7);
  transform: scale(1.15);
}

#tide-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-teal);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(14, 207, 207, 0.5);
  border: 2px solid rgba(255,255,255,0.2);
}

.tide-meter__balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(14, 207, 207, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 207, 207, 0.12);
}

.tide-balance__label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.tide-balance__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-heading);
}

.tide-balance__unit {
  font-size: 0.72rem;
  color: var(--color-text-dim);
}

/* ── Daily Bonus Section ── */
.bonus-section {
  background: linear-gradient(160deg, #060d18 0%, #071525 50%, #060d18 100%);
  position: relative;
  overflow: hidden;
}

.bonus-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 207, 207, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bonus-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(240, 192, 96, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.bonus__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.bonus__header .section-title {
  max-width: 520px;
}

.bonus__header p {
  max-width: 480px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Shell Nodes Row ── */
.shells-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-3xl);
  padding: var(--space-xl) var(--space-md);
  position: relative;
  flex-wrap: wrap;
}

.shells-connector {
  flex: 1;
  height: 2px;
  background: rgba(14, 207, 207, 0.15);
  min-width: 16px;
  max-width: 48px;
  position: relative;
}

.shells-connector.completed {
  background: linear-gradient(90deg, rgba(14, 207, 207, 0.5), rgba(14, 207, 207, 0.5));
}

.shell-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.shell-node__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 2px solid rgba(14, 207, 207, 0.2);
  background: rgba(10, 22, 40, 0.8);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.shell-node--completed .shell-node__circle {
  border-color: rgba(14, 207, 207, 0.5);
  background: rgba(14, 207, 207, 0.08);
}

.shell-node--completed .shell-node__circle::after {
  content: '✓';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-bg);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell-node--active .shell-node__circle {
  border-color: var(--color-gold);
  background: rgba(240, 192, 96, 0.1);
  box-shadow: 0 0 20px rgba(240, 192, 96, 0.3), 0 0 40px rgba(240, 192, 96, 0.1);
  animation: pulse-gold 2.5s ease infinite;
  cursor: pointer;
}

.shell-node--locked .shell-node__circle {
  opacity: 0.4;
  filter: grayscale(0.6);
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 20px rgba(240, 192, 96, 0.3); }
  50%       { box-shadow: 0 0 35px rgba(240, 192, 96, 0.5), 0 0 60px rgba(240, 192, 96, 0.2); }
}

.shell-node__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.shell-node--active .shell-node__label {
  color: var(--color-gold);
}

.shell-node--completed .shell-node__label {
  color: var(--color-teal);
}

.shell-node__reward {
  font-size: 0.68rem;
  color: var(--color-text-dim);
}

/* ── Bonus Mini Cards ── */
.bonus-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.bonus-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bonus-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.bonus-card__label {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bonus-card__value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-gold);
  font-weight: 600;
}

.bonus-card__sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.bonus-claim-wrap {
  display: flex;
  justify-content: center;
}

/* ── Reviews Section ── */
.reviews-section {
  background: linear-gradient(160deg, #071525 0%, #060d18 100%);
}

.reviews__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.reviews__stats {
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  flex-shrink: 0;
}

.reviews__avg {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.reviews__stars {
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
}

.reviews__count {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ── Review Slider ── */
.review-slider {
  position: relative;
}

.review-slide {
  display: none;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid var(--color-border);
}

.review-slide.active {
  display: block;
}

.review-slide__stars {
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: var(--space-md);
}

.review-slide__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.review-slide__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.review-slide__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.review-slide__author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.review-slide__name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.review-slide__city {
  font-size: 0.78rem;
  color: var(--color-text-dim);
}

.review-slide__game {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  background: rgba(14, 207, 207, 0.08);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-teal);
}

.review-slider__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: center;
}

.review-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(10, 22, 40, 0.6);
  color: var(--color-text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.review-btn:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: var(--color-teal-glow);
}

.review-dots {
  display: flex;
  gap: 0.4rem;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14, 207, 207, 0.2);
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}

.review-dot.active {
  background: var(--color-teal);
  transform: scale(1.3);
}

/* ── Mobile Section ── */
.mobile-section {
  background: linear-gradient(160deg, #060d18 0%, #081830 50%, #060d18 100%);
}

.mobile__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.mobile__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(14, 207, 207, 0.04);
  border: 1px solid rgba(14, 207, 207, 0.08);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.mobile__feature:hover {
  background: rgba(14, 207, 207, 0.08);
  border-color: var(--color-border);
}

.mobile__feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.mobile__feature-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.mobile__feature-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.mobile__phone-card {
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.mobile__phone-visual {
  width: 200px;
  height: 280px;
  border-radius: 28px;
  border: 2px solid var(--color-border);
  background: linear-gradient(160deg, #0d1f38 0%, #081428 100%);
  position: relative;
  box-shadow: 0 0 40px rgba(14, 207, 207, 0.15), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transform: rotate(-5deg);
  overflow: hidden;
}

.mobile__phone-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(14, 207, 207, 0.06) 0%, transparent 100%);
}

.mobile__phone-notch {
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  position: absolute;
  top: 14px;
}

.mobile__phone-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.mobile__phone-text {
  font-size: 0.75rem;
  color: var(--color-teal);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.mobile__phone-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(0deg, rgba(14, 207, 207, 0.08) 0%, transparent 100%);
}

/* ── Values Section ── */
.values-section {
  background: var(--color-bg);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.value-card {
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-teal);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(14, 207, 207, 0.08);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-sm);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
  font-weight: 600;
}

.value-card__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Games Preview ── */
.games-preview {
  background: linear-gradient(160deg, #071525 0%, #060d18 100%);
}

.games-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3xl);
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.games-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.preview-game-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
}

.preview-game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-teal);
  border-color: rgba(14, 207, 207, 0.4);
}

.preview-game-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.preview-game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.preview-game-card:hover .preview-game-card__img {
  transform: scale(1.06);
}

.preview-game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 24, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.preview-game-card:hover .preview-game-card__overlay {
  opacity: 1;
}

.preview-game-card__play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 0 24px rgba(14, 207, 207, 0.5);
}

.preview-game-card__body {
  padding: var(--space-md);
}

.preview-game-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.preview-game-card__cat {
  font-size: 0.75rem;
  color: var(--color-teal);
  font-weight: 500;
}

.games-preview__cta {
  display: flex;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr 360px;
    gap: var(--space-2xl);
  }

  .bonus-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .games-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .tide-meter {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .mobile__phone-card {
    display: none;
  }

  .reviews__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .bonus-cards {
    grid-template-columns: 1fr;
  }

  .shells-row {
    gap: 0;
    justify-content: space-between;
    padding-inline: 0;
  }

  .shell-node__circle {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .shells-connector {
    min-width: 8px;
    max-width: 20px;
  }

  .games-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .games-preview__grid {
    grid-template-columns: 1fr;
  }
}
