/* ===================================================
   Giovanni Canuto — Design System
   Dark mode only | Mobile-first | Glassmorphism
   =================================================== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #FFFFFF;
  background: #060A1A;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* --- Orbs (Background) --- */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}

.orb--gold {
  width: 280px;
  height: 280px;
  background: #C8A24E;
  top: -60px;
  left: -80px;
  animation: orbFloat1 22s ease-in-out infinite;
}

.orb--teal {
  width: 320px;
  height: 320px;
  background: #00B4D8;
  bottom: 10%;
  right: -100px;
  animation: orbFloat2 26s ease-in-out infinite;
}

.orb--purple {
  width: 220px;
  height: 220px;
  background: #7B5EA7;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(60px, 40px); }
  50% { transform: translate(20px, 80px); }
  75% { transform: translate(-30px, 30px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-50px, -30px); }
  50% { transform: translate(-20px, -70px); }
  75% { transform: translate(40px, -20px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateX(-50%) translate(0, 0); }
  33% { transform: translateX(-50%) translate(40px, -50px); }
  66% { transform: translateX(-50%) translate(-40px, 30px); }
}

/* --- Container --- */
.container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 44px 16px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 481px) {
  .container {
    padding: 56px 20px 88px;
  }
}

/* --- Fade Up Animation (Scroll Reveal) --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: calc(var(--i, 0) * 0.04s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Title --- */
.section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 16px;
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-bottom: 12px;
  background: #0a0a0a;
  flex-shrink: 0;
}

@media (min-width: 481px) {
  .avatar {
    width: 130px;
    height: 130px;
  }
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200, 162, 78, 0.3), rgba(0, 180, 216, 0.3));
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.hero__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero__tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 16px;
}

.hero__bio {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.55;
  max-width: 380px;
}

.hero__tags {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 10px;
}

/* --- Social Icons Row --- */
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
  margin-bottom: 20px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.52);
  transition: fill 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.115);
  border-color: rgba(255, 255, 255, 0.22);
}

.social-icon:hover svg {
  fill: rgba(255, 255, 255, 0.85);
}

.social-icon:focus-visible {
  outline: 2px solid #00B4D8;
  outline-offset: 2px;
}

/* --- Glass Card Base --- */
.glass-card {
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
  cursor: pointer;
  display: block;
}

.glass-card:hover {
  transform: translateY(-5px) scale(1.008);
  background: rgba(255, 255, 255, 0.115);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.08),
    0 2px 64px rgba(0, 0, 0, 0.04);
}

.glass-card:focus-visible {
  outline: 2px solid #00B4D8;
  outline-offset: 2px;
}

/* --- Bento Grid (Channels) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bento-item {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 88px;
}

.bento-item--wide {
  grid-column: span 2;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
  padding: 16px 20px;
}

.bento-item--full-width {
  grid-column: span 3;
  flex-direction: row;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
  padding: 16px 20px;
}

.bento-item--wide .bento-item__text,
.bento-item--full-width .bento-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-item__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-item__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.bento-item__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bento-item__followers {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.2;
}

.bento-item__label {
  font-size: 0.625rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Personal channels are more prominent */
.bento-item--personal .bento-item__icon {
  width: 32px;
  height: 32px;
}

/* Business channels are subtler */
.bento-item--business {
  opacity: 0.75;
}

.bento-item--business:hover {
  opacity: 1;
}

/* --- Product Cards --- */
.products-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.products-group__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  line-height: 1.4;
}

.products-group__name {
  font-weight: 700;
  color: #FFFFFF;
}

.products-group__sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 2px;
}

.products-group__subtitle {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
}

.products-group + .products-group {
  margin-top: 28px;
}

.saas-card + .products-group {
  margin-top: 28px;
}

.product-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.product-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.5;
}

.product-card__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.32);
  transition: color 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-card__arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(2px);
}

/* Featured Product — Gradient Border */
.product-card--featured {
  position: relative;
  background: transparent;
  border: none;
}

.product-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, #C8A24E, #00B4D8);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-card--featured::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: -1;
}

.product-card--featured:hover::after {
  background: rgba(255, 255, 255, 0.115);
}

.product-card--featured .product-card__name {
  background: linear-gradient(135deg, #C8A24E, #00B4D8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card--featured .product-card__arrow {
  color: #00B4D8;
}

/* Featured Large Product (Desafio) — like SaaS card */
.product-card--featured-large {
  position: relative;
  background: transparent;
  border: none;
  padding: 24px 20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.product-card--featured-large::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, #C8A24E, #00B4D8);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-card--featured-large::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: -1;
}

.product-card--featured-large:hover::after {
  background: rgba(255, 255, 255, 0.115);
}

.product-card--featured-large .product-card__info {
  gap: 8px;
}

.product-card--featured-large .product-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #C8A24E, #00B4D8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card--featured-large .product-card__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.6;
}

.product-card--featured-large .product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #00B4D8;
  margin-top: 4px;
  transition: gap 0.3s ease;
}

.product-card--featured-large:hover .product-card__cta {
  gap: 10px;
}

.product-card--featured-large .product-card__cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- SaaS Card --- */
.saas-card {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.saas-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saas-card__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00B4D8, #0096B7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.saas-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.saas-card__subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.3;
}

.saas-card__desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.6;
}

.saas-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #00B4D8;
  margin-top: 4px;
  transition: gap 0.3s ease;
}

.saas-card:hover .saas-card__cta {
  gap: 10px;
}

.saas-card__cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- Footer Spacer --- */
.section:last-child {
  padding-bottom: 0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* --- Selection --- */
::selection {
  background: rgba(0, 180, 216, 0.3);
  color: #FFFFFF;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .orb {
    animation: none !important;
  }

  .glass-card,
  .social-icon {
    transition: none;
  }
}
