/* Home Page */
.home {
  width: 100%;
  padding: 4px;
}

.home-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

.home-blocks {
  width: 100%;
  min-height: 400px;
  border-radius: 5px;
}

/* ── Block 1 ── */
.block-1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 24px 28px;
  /* background: linear-gradient(145deg, #06091e 0%, #0d1535 55%, #080d28 100%); */
  border-radius: 5px;
  gap: 0;
  min-height: 540px;
}

.block-1-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.block-1-title {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: rgba(200, 215, 255, 0.4);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.block-1-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
  background: var(--gradient-secondary-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-1-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 96px;
  height: auto;
}

.block-1-tagline {
  font-size: 15px;
  color: rgba(200, 215, 255, 0.55);
  font-weight: 400;
  letter-spacing: -0.25px;
  text-align: center;
}

.block-1-name {
  font-size: clamp(72px, 22vw, 108px);
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -7px;
  text-align: center;
  background: linear-gradient(160deg, #c8d8ff 0%, #7fb3ff 45%, #4a8dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 30px;
}

.block-1-images {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.block-1-img-item {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(107, 158, 255, 0.2);
  background: rgba(0, 9, 26, 0.6);
  flex-shrink: 0;
}

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

/* ── Block 2 ── */
.block-2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* border-radius: var(--radius-3xl); */
  overflow: hidden;
  border: 0.5px solid rgba(107, 158, 255, 0.15);
  /* border: 1.5px solid rgba(180, 30, 30, 0.25); */
  min-height: 540px;
}

.block-2-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 24px 16px;
  /* background: rgba(10, 5, 5, 0.6); */
}

.block-2-title {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: rgba(255, 180, 180, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.block-2-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
  background: var(--gradient-secondary-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-2-grid-section {
  flex: 1;
  /* background: radial-gradient(
    ellipse at center,
    #8b0000 0%,
    #3d0000 50%,
    #1a0000 100%
  ); */
  padding: 20px 16px;
}

.block-2-grid {
  --home-book-tab-width: calc((100% - 16px) / 3);
  --home-book-tab-height: 136px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.block-2-grid-item {
  width: var(--home-book-tab-width);
  height: var(--home-book-tab-height);
  border-radius: 4px;
  overflow: hidden;
  border: 0.5px solid rgba(107, 158, 255, 0.28);
  background: linear-gradient(
    145deg,
    rgba(8, 14, 38, 0.62),
    rgba(16, 27, 62, 0.62)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.block-2-book-slot {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.block-2-book-slot:active {
  transform: scale(0.96);
  border-color: rgba(133, 185, 255, 0.62);
  box-shadow: 0 0 12px rgba(70, 130, 220, 0.24);
}

.block-2-grid-item-empty {
  background: transparent;
  border: 0.3px solid rgba(107, 158, 255, 0.35);
}

.block-2-more-slot {
  cursor: pointer;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.block-2-more-slot:active {
  transform: scale(0.96);
  border-color: rgba(133, 185, 255, 0.62);
}

.block-2-more-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(168, 200, 255, 0.45);
  color: rgba(225, 236, 255, 0.92);
  font-size: 24px;
  line-height: 1;
}

.block-2-more-text {
  font-size: 11px;
  color: rgba(200, 215, 255, 0.78);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.block-2-grid-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-2-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 28px;
  /* background: rgba(10, 5, 5, 0.6); */
}

.block-2-tagline {
  font-size: 12px;
  color: rgba(200, 215, 255, 0.55);
  font-weight: 400;
  letter-spacing: -0.25px;
}

.block-2-name {
  font-size: 64px;
  font-weight: 500;
  line-height: 0.7;
  letter-spacing: -4px;
  background: linear-gradient(160deg, #ffffff 0%, #d4d4d4 50%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 20px;
}

/* ── Block 3 — Apps ── */
.block-3 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 24px 28px;
  background: linear-gradient(145deg, #06091e 0%, #0d1535 55%, #080d28 100%);
  border: 0.5px solid rgba(107, 158, 255, 0.15);
  border-radius: 5px;
  gap: 0;
  min-height: 540px;
}

.block-3-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 120px;
}

.block-3-title {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: rgba(200, 215, 255, 0.4);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.block-3-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
  background: var(--gradient-secondary-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-3-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.block-3-tagline {
  font-size: 15px;
  color: rgba(200, 215, 255, 0.55);
  font-weight: 400;
  letter-spacing: -0.25px;
  text-align: center;
}

.block-3-name {
  font-size: clamp(72px, 22vw, 108px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -10px;
  text-align: center;
  background: linear-gradient(160deg, #e8e8e8 0%, #b8b8b8 50%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 20px;
  padding-right: 10px;
}

.block-3-icons {
  /* --home-app-card-width: calc((100% - 8px) / 2); */
  --home-app-card-width: 84px;
  --home-app-card-height: 84px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 12px;
}

.block-3-icon-item {
  width: var(--home-app-card-width);
  height: var(--home-app-card-height);
  border-radius: 5px;
  overflow: hidden;
  border: 0.5px solid rgba(107, 158, 255, 0.22);
  background: linear-gradient(
    145deg,
    rgba(8, 14, 38, 0.62),
    rgba(16, 27, 62, 0.62)
  );
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.block-3-app-slot {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.block-3-app-slot:active {
  transform: scale(0.96);
  border-color: rgba(133, 185, 255, 0.62);
  box-shadow: 0 0 12px rgba(70, 130, 220, 0.24);
}

.block-3-more-slot {
  cursor: pointer;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.block-3-more-slot:active {
  transform: scale(0.96);
  border-color: rgba(133, 185, 255, 0.62);
}

.block-3-more-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(168, 200, 255, 0.45);
  color: rgba(225, 236, 255, 0.92);
  font-size: 24px;
  line-height: 1;
}

.block-3-more-text {
  font-size: 10px;
  color: rgba(200, 215, 255, 0.78);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.block-3-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-item {
  aspect-ratio: 1;
  background-color: #222;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.app-item:active {
  transform: scale(0.96);
}

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

/* ── Block 4 — Circle ── */
.block-4 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 5px;
  overflow: hidden;
  min-height: 540px;
  border: 0.5px solid rgba(107, 158, 255, 0.15);
  position: relative;
  background-size: cover;
  background-position: center;
}

.block-4-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 24px 16px;
  position: relative;
  z-index: 2;
}

.block-4-title {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: rgba(255, 160, 160, 0.45);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.block-4-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
  background: var(--gradient-secondary-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-4-visual {
  flex: 1;
  min-height: 300px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blue fade edge at top */
.block-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 70, 0.9) 0%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Blue fade edge at bottom */
.block-4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to top,
    rgba(10, 20, 70, 0.9) 0%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.block-4-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(140, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.block-4-stat {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.block-4-number {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(160deg, #ff9090 0%, #ff4040 60%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-4-stat-label {
  font-size: var(--font-size-base);
  color: rgba(255, 200, 200, 0.75);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
}

.block-4-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 24px 26px;
  position: relative;
  z-index: 2;
}

.block-4-tagline {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
}

.block-4-name {
  font-size: 64px;
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -4px;
  background: linear-gradient(160deg, #ffffff 0%, #d0d0d0 50%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 5px;
}

.block-4-cta {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
  margin-top: 2px;
}

/* ── Block 5 — Subscribe ── */
.block-5 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 24px 32px;
  /* background: linear-gradient(145deg, #0a0820 0%, #14103a 50%, #0c0a2a 100%);
  border: 0.5px solid rgba(107, 158, 255, 0.15); */
  border-radius: 5px;
  gap: 0;
  min-height: 540px;
}

.block-5-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 72px;
}

.block-5-title {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: rgba(200, 215, 255, 0.4);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.block-5-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-normal);
  background: var(--gradient-secondary-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.block-5-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}

.block-5-tagline {
  font-size: 15px;
  color: rgba(200, 215, 255, 0.55);
  font-weight: 400;
  letter-spacing: -0.25px;
}

.block-5-name {
  font-size: clamp(52px, 16vw, 80px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -4px;
  background: linear-gradient(160deg, #e8e8e8 0%, #b8b8b8 50%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 10px;
}

.block-5-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.block-5-input {
  width: 100%;
  padding: 20px 20px;
  font-size: var(--font-size-md);
  border: 0.5px solid rgba(107, 158, 255, 0.18);
  outline: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(200, 215, 255, 0.7);
  font-family: "Gellix", sans-serif;
  box-sizing: border-box;
  transition: var(--transition-fast);
  backdrop-filter: var(--glass-blur-md);
}

.block-5-input:focus {
  border-color: var(--border-color-medium);
  background: rgba(0, 9, 26, 0.7);
  box-shadow: var(--shadow-glow-sm);
  color: var(--color-accent-light);
}

.block-5-input::placeholder {
  color: rgba(200, 215, 255, 0.3);
}

.block-5-btn {
  width: 100%;
  background: rgba(0, 9, 26, 0.6);
  color: rgba(200, 215, 255, 0.85);
  border: none;
  padding: 20px 20px;
  border-radius: 5px;
  font-size: var(--font-size-md);
  font-weight: 500;
  letter-spacing: var(--letter-spacing-normal);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: "Gellix", sans-serif;
  backdrop-filter: var(--glass-blur-md);
}

.block-5-btn:active {
  background: rgba(107, 158, 255, 0.12);
  border-color: var(--border-color-medium);
  box-shadow: var(--shadow-glow-sm);
}

/* ── Responsive — Tablet (768px+) ── */
@media (min-width: 768px) {
  .home-wrapper {
    padding: 0 32px;
    max-width: 900px;
    margin: 0 auto;
  }

  .block-1-name,
  .block-3-name {
    font-size: clamp(72px, 14vw, 120px);
  }

  .block-2-name {
    font-size: 80px;
  }
}

/* ── Responsive — Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .home {
    padding: 8px;
  }

  .home-wrapper {
    padding: 0 48px;
    max-width: 1100px;
  }

  .home-blocks {
    min-height: 480px;
  }

  .block-1,
  .block-3 {
    min-height: 480px;
  }

  .block-1-main {
    margin-top: 80px;
  }

  .block-3-header {
    margin-bottom: 80px;
  }

  .block-1-name,
  .block-3-name {
    font-size: clamp(80px, 10vw, 140px);
    letter-spacing: -10px;
  }

  .block-2-name {
    font-size: 96px;
    letter-spacing: -6px;
  }
}
